Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo", uses=false) Using package ConPNlib with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo) Running command: "" <> buildModelFMU(ConPNlib.Examples.Test4,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test4,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.00548/0.00548, allocations: 1.361 MB / 16.61 MB, free: 5.152 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.951e-05/1.975e-05, allocations: 0 / 23.76 MB, free: 3.719 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0008408/0.0008828, allocations: 359.4 kB / 24.11 MB, free: 3.379 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test4): time 0.001268/0.002159, allocations: 1.275 MB / 25.38 MB, free: 2.105 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.003375, allocations: 0.8023 MB / 26.19 MB, free: 1.305 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.003539, allocations: 9.188 kB / 26.19 MB, free: 1.297 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0002537/0.003801, allocations: 91.38 kB / 26.28 MB, free: 1.207 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0006717/0.00448, allocations: 265.8 kB / 26.54 MB, free: 0.9492 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001206/0.004611, allocations: 55.94 kB / 26.6 MB, free: 0.8945 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0004271/0.005047, allocations: 482.6 kB / 27.07 MB, free: 432 kB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003164/0.005375, allocations: 236.2 kB / 27.3 MB, free: 188 kB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001423/0.005524, allocations: 186.8 kB / 27.48 MB, free: 0 / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.005841, allocations: 198.8 kB / 27.68 MB, free: 4.445 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 4.684e-05/0.005898, allocations: 20 kB / 27.7 MB, free: 4.426 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003685/0.006272, allocations: 219.5 kB / 27.91 MB, free: 4.215 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.0001626/0.006446, allocations: 115.5 kB / 28.02 MB, free: 4.102 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.000225/0.006681, allocations: 202.5 kB / 28.22 MB, free: 3.902 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.000801/0.007492, allocations: 0.6465 MB / 28.87 MB, free: 3.254 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.007511, allocations: 4 kB / 28.87 MB, free: 3.25 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.252e-06/0.007519, allocations: 3.938 kB / 28.88 MB, free: 3.246 MB / 18.57 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.007533, allocations: 0 / 28.88 MB, free: 3.246 MB / 18.57 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.001046/0.008586, allocations: 0.736 MB / 29.61 MB, free: 2.449 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.008651, allocations: 15.5 kB / 29.63 MB, free: 2.438 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001582/0.008819, allocations: 118.7 kB / 29.74 MB, free: 2.312 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/0.00899, allocations: 64.19 kB / 29.8 MB, free: 2.25 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005685/0.009568, allocations: 364.1 kB / 30.16 MB, free: 1.855 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.699e-05/0.009645, allocations: 53.69 kB / 30.21 MB, free: 1.801 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.009784, allocations: 76.34 kB / 30.29 MB, free: 1.727 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.01149, allocations: 0.9421 MB / 31.23 MB, free: 0.7656 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.01152, allocations: 0 / 31.23 MB, free: 0.7656 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.802e-05/0.01159, allocations: 27.98 kB / 31.26 MB, free: 0.7383 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.304e-05/0.01169, allocations: 61.27 kB / 31.32 MB, free: 0.6797 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.01277, allocations: 0.6726 MB / 31.99 MB, free: 4 kB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009704/0.02248, allocations: 1.773 MB / 33.76 MB, free: 6.535 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006647/0.02321, allocations: 479.1 kB / 34.23 MB, free: 6.27 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003177/0.02354, allocations: 286.5 kB / 34.51 MB, free: 6.133 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004792/0.02403, allocations: 0.858 MB / 35.37 MB, free: 5.16 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.02406, allocations: 41.97 kB / 35.41 MB, free: 5.117 MB / 18.57 MB Notification: Performance of pre-optimization done (n=33): time 3.757e-06/0.02407, allocations: 0 / 35.41 MB, free: 5.117 MB / 18.57 MB Notification: Performance of matching and sorting (n=33): time 0.002082/0.02616, allocations: 1.151 MB / 36.56 MB, free: 4.199 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.005e-05/0.02624, allocations: 178.2 kB / 36.73 MB, free: 3.988 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001997/0.02645, allocations: 267.8 kB / 37 MB, free: 3.715 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.02648, allocations: 40.98 kB / 37.04 MB, free: 3.672 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.02661, allocations: 275.1 kB / 37.3 MB, free: 3.406 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 7.374e-05/0.02669, allocations: 110.2 kB / 37.41 MB, free: 3.301 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.975e-05/0.02677, allocations: 69.69 kB / 37.48 MB, free: 3.227 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 7.967e-05/0.02685, allocations: 338.8 kB / 37.81 MB, free: 2.887 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/0.02716, allocations: 244.7 kB / 38.05 MB, free: 2.645 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/0.02756, allocations: 356.5 kB / 38.4 MB, free: 2.25 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006641/0.02823, allocations: 0.6371 MB / 39.03 MB, free: 1.551 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.02825, allocations: 0 / 39.03 MB, free: 1.551 MB / 18.57 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001069/0.02932, allocations: 0.8646 MB / 39.9 MB, free: 0.6719 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 6.182e-05/0.0294, allocations: 83.38 kB / 39.98 MB, free: 0.5781 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.02941, allocations: 0 / 39.98 MB, free: 0.5781 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.03059, allocations: 300.8 kB / 40.27 MB, free: 288 kB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.03076, allocations: 59.91 kB / 40.33 MB, free: 228 kB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009031/0.0398, allocations: 0.7342 MB / 41.07 MB, free: 5.934 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004256/0.04027, allocations: 64.77 kB / 41.13 MB, free: 5.934 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.187e-05/0.04035, allocations: 27.22 kB / 41.16 MB, free: 5.934 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 (P1.emptying,$PRE.P1.fireOut[1],P2.outTransition[1].arcType,P1.outTransition[1].arcType,T1.activation.fed[1],T2.activation.arcType[1],T1.activation.arcType[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,T2.activation.fed[1],P2.fireOut[1],$PRE.P2.fireOut[1],P2.fireIn[1],$PRE.P2.fireIn[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T1.activation.emptied[1],P1.fireOut[1],T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005349/0.0409, allocations: 340.2 kB / 41.49 MB, free: 5.754 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.04104, allocations: 34.67 kB / 41.52 MB, free: 5.754 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001383/0.04242, allocations: 0.8251 MB / 42.35 MB, free: 5.633 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.556e-05/0.04246, allocations: 7.562 kB / 42.36 MB, free: 5.633 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.04247, allocations: 0 / 42.36 MB, free: 5.633 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.04249, allocations: 6.141 kB / 42.36 MB, free: 5.633 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001754/0.04425, allocations: 1.368 MB / 43.73 MB, free: 4.895 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.04427, allocations: 3.406 kB / 43.73 MB, free: 4.895 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.04441, allocations: 27.64 kB / 43.76 MB, free: 4.871 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007517/0.04517, allocations: 264.1 kB / 44.02 MB, free: 4.621 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/0.04522, allocations: 21.47 kB / 44.04 MB, free: 4.602 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004829/0.04571, allocations: 0.7669 MB / 44.81 MB, free: 3.824 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.04572, allocations: 4.031 kB / 44.81 MB, free: 3.82 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001372/0.0471, allocations: 1.149 MB / 45.96 MB, free: 2.66 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 4.868e-05/0.04716, allocations: 107.6 kB / 46.06 MB, free: 2.555 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.219e-05/0.04723, allocations: 27.28 kB / 46.09 MB, free: 2.535 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/0.04741, allocations: 31.97 kB / 46.12 MB, free: 2.504 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.04759, allocations: 83.91 kB / 46.2 MB, free: 2.422 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/0.04764, allocations: 19.98 kB / 46.22 MB, free: 2.402 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0001256/0.04777, allocations: 164.1 kB / 46.38 MB, free: 2.238 MB / 18.57 MB Notification: Performance of sort global known variables: time 1.31e-07/0.04778, allocations: 7.906 kB / 46.39 MB, free: 2.234 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0006049/0.04839, allocations: 196.3 kB / 46.58 MB, free: 2.066 MB / 18.57 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (P1.t_,P2.t_) * Number of discrete variables: 11 (P1.fireOut[1],P1.emptying,T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],P2.fireIn[1],P2.fireOut[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1]) * Number of discrete states: 8 (P1.fireOut[1],P2.fireIn[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,P2.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001795/0.05019, allocations: 1.793 MB / 48.38 MB, free: 272 kB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.009245/0.05945, allocations: 0.7565 MB / 49.13 MB, free: 6.102 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.0595, allocations: 3.188 kB / 49.14 MB, free: 6.102 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0006889/0.06019, allocations: 457.2 kB / 49.58 MB, free: 5.973 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004946/0.0607, allocations: 43.72 kB / 49.63 MB, free: 5.965 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0065/0.06721, allocations: 4.799 MB / 54.42 MB, free: 2.371 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.0677, allocations: 0.9405 MB / 55.36 MB, free: 1.406 MB / 18.57 MB Notification: Performance of simCode: alias equations: time 0.0002738/0.06799, allocations: 92.33 kB / 55.45 MB, free: 1.32 MB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.0682, allocations: 155.4 kB / 55.61 MB, free: 1.168 MB / 18.57 MB Notification: Performance of SimCode: time 7.31e-07/0.06821, allocations: 3.938 kB / 55.61 MB, free: 1.164 MB / 18.57 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03149/0.09971, allocations: 10 MB / 65.61 MB, free: 4.066 MB / 24.77 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002956/0.1001, allocations: 190.6 kB / 65.8 MB, free: 3.812 MB / 24.77 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.194/2.294, allocations: 0 / 65.8 MB, free: 3.812 MB / 24.77 MB (rm -f ConPNlib_ConPNlib.Examples.Test4.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test4.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test4.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test4_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test4.fmu > ConPNlib_ConPNlib.Examples.Test4.pipe 2>&1)