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.01206/0.01206, allocations: 1.337 MB / 8.814 MB, free: 244 kB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 2.044e-05/2.06e-05, allocations: 0 / 13.23 MB, free: 2.273 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0008776/0.0009389, allocations: 357.6 kB / 13.58 MB, free: 2.242 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.006914/0.007879, allocations: 3.356 MB / 16.93 MB, free: 1.793 MB / 10.45 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001625/0.0081, allocations: 47.98 kB / 16.98 MB, free: 1.746 MB / 10.45 MB Notification: Performance of FrontEnd - DAE generated: time 0.06473/0.07285, allocations: 9.098 MB / 26.08 MB, free: 3.758 MB / 14.12 MB Notification: Performance of FrontEnd: time 1.774e-06/0.0729, allocations: 0 / 26.08 MB, free: 3.758 MB / 14.12 MB Notification: Performance of Transformations before backend: time 3.318e-05/0.07295, allocations: 15.03 kB / 26.09 MB, free: 3.758 MB / 14.12 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.001366/0.07433, allocations: 0.7558 MB / 26.85 MB, free: 3.215 MB / 14.12 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.07439, allocations: 9.844 kB / 26.86 MB, free: 3.215 MB / 14.12 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002026/0.0746, allocations: 64.23 kB / 26.92 MB, free: 3.184 MB / 14.12 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008271/0.07546, allocations: 395.1 kB / 27.31 MB, free: 2.953 MB / 14.12 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.942e-05/0.07552, allocations: 22.66 kB / 27.33 MB, free: 2.953 MB / 14.12 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.07567, allocations: 45.12 kB / 27.37 MB, free: 2.953 MB / 14.12 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001335/0.07702, allocations: 0.5708 MB / 27.94 MB, free: 2.953 MB / 14.12 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001886/0.07893, allocations: 0.7946 MB / 28.74 MB, free: 2.602 MB / 14.12 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.079, allocations: 0 / 28.74 MB, free: 2.602 MB / 14.12 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.853e-05/0.0791, allocations: 11.95 kB / 28.75 MB, free: 2.59 MB / 14.12 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000146/0.07926, allocations: 39.88 kB / 28.79 MB, free: 2.559 MB / 14.12 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003627/0.0829, allocations: 1.448 MB / 30.24 MB, free: 1.402 MB / 14.12 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008378/0.0838, allocations: 410.3 kB / 30.64 MB, free: 1.004 MB / 14.12 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005308/0.08435, allocations: 241.4 kB / 30.87 MB, free: 0.7891 MB / 14.12 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01081/0.09517, allocations: 0.8527 MB / 31.73 MB, free: 2.75 MB / 14.12 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.206e-05/0.09526, allocations: 36.78 kB / 31.76 MB, free: 2.711 MB / 14.12 MB Notification: Performance of pre-optimization done (n=33): time 3.717e-06/0.09528, allocations: 1.469 kB / 31.76 MB, free: 2.711 MB / 14.12 MB Notification: Performance of matching and sorting (n=33): time 0.001549/0.09684, allocations: 488.7 kB / 32.24 MB, free: 2.664 MB / 14.12 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.699e-05/0.09696, allocations: 177.3 kB / 32.41 MB, free: 2.477 MB / 14.12 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002815/0.09726, allocations: 209.3 kB / 32.62 MB, free: 2.379 MB / 14.12 MB Notification: Performance of collectPreVariables (initialization): time 5.535e-05/0.09733, allocations: 32.58 kB / 32.65 MB, free: 2.348 MB / 14.12 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002241/0.09756, allocations: 281.8 kB / 32.92 MB, free: 2.199 MB / 14.12 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.0977, allocations: 101.3 kB / 33.02 MB, free: 2.145 MB / 14.12 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.858e-05/0.09775, allocations: 2.062 kB / 33.03 MB, free: 2.145 MB / 14.12 MB Notification: Performance of setup shared object (initialization): time 8.677e-05/0.09785, allocations: 338.7 kB / 33.36 MB, free: 1.832 MB / 14.12 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004656/0.09833, allocations: 197.7 kB / 33.55 MB, free: 1.832 MB / 14.12 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005251/0.09887, allocations: 322.8 kB / 33.86 MB, free: 1.703 MB / 14.12 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006779/0.09956, allocations: 226.3 kB / 34.09 MB, free: 1.699 MB / 14.12 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.09958, allocations: 0 / 34.09 MB, free: 1.699 MB / 14.12 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.00161/0.1012, allocations: 0.6123 MB / 34.7 MB, free: 1.641 MB / 14.12 MB Notification: Performance of prepare postOptimizeDAE: time 9.201e-05/0.1013, allocations: 75.17 kB / 34.77 MB, free: 1.578 MB / 14.12 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.1014, allocations: 6.953 kB / 34.78 MB, free: 1.578 MB / 14.12 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001533/0.1029, allocations: 237.8 kB / 35.01 MB, free: 1.57 MB / 14.12 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003204/0.1032, allocations: 56.52 kB / 35.07 MB, free: 1.57 MB / 14.12 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009921/0.1043, allocations: 0.7813 MB / 35.85 MB, free: 1.043 MB / 14.12 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004285/0.1047, allocations: 58.97 kB / 35.9 MB, free: 1.027 MB / 14.12 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.249e-05/0.1048, allocations: 29.53 kB / 35.93 MB, free: 1.027 MB / 14.12 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: T1.speedSumOut[1]:VARIABLE(protected = true ) "Output speeds of continuous output places" type: Real [1] P2.prelimSpeedIn[1]:VARIABLE(protected = true ) "preliminary speed of input transitions" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.P1.fireOut[1],P1.emptying,P2.outTransition[1].arcType,P1.feeding,P1.outTransition[1].arcType,P1.fireOut[1],T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],$PRE.P2.fireIn[1],P2.fireIn[1],$PRE.P2.fireOut[1],P2.fireOut[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T1.activation.arcType[1],T1.activation.fed[1],T2.activation.arcType[1],T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003084/0.1051, allocations: 217.4 kB / 36.15 MB, free: 0.8516 MB / 14.12 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001309/0.1064, allocations: 0.4976 MB / 36.64 MB, free: 0.6914 MB / 14.12 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.1066, allocations: 29.27 kB / 36.67 MB, free: 0.6641 MB / 14.12 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001691/0.1083, allocations: 0.6243 MB / 37.3 MB, free: 152 kB / 14.12 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.684e-05/0.1084, allocations: 6.438 kB / 37.3 MB, free: 148 kB / 14.12 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1084, allocations: 0 / 37.3 MB, free: 148 kB / 14.12 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.1084, allocations: 3 kB / 37.31 MB, free: 148 kB / 14.12 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01337/0.1218, allocations: 1.037 MB / 38.34 MB, free: 2.285 MB / 14.12 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.1219, allocations: 5.75 kB / 38.35 MB, free: 2.285 MB / 14.12 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000255/0.1221, allocations: 31.42 kB / 38.38 MB, free: 2.285 MB / 14.12 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001126/0.1233, allocations: 253.9 kB / 38.63 MB, free: 2.277 MB / 14.12 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.95e-05/0.1234, allocations: 15.25 kB / 38.64 MB, free: 2.277 MB / 14.12 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001041/0.1244, allocations: 0.8095 MB / 39.45 MB, free: 1.762 MB / 14.12 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.1244, allocations: 2.156 kB / 39.45 MB, free: 1.762 MB / 14.12 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001927/0.1264, allocations: 0.8844 MB / 40.34 MB, free: 1.621 MB / 14.12 MB Notification: Performance of postOpt removeConstants (simulation): time 8.496e-05/0.1265, allocations: 103.5 kB / 40.44 MB, free: 1.527 MB / 14.12 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.1266, allocations: 13.58 kB / 40.45 MB, free: 1.527 MB / 14.12 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003474/0.127, allocations: 32.02 kB / 40.48 MB, free: 1.527 MB / 14.12 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002636/0.1273, allocations: 91.56 kB / 40.57 MB, free: 1.527 MB / 14.12 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.719e-05/0.1274, allocations: 23.48 kB / 40.6 MB, free: 1.527 MB / 14.12 MB Notification: Performance of sorting global known variables: time 0.0001417/0.1275, allocations: 142.9 kB / 40.74 MB, free: 1.449 MB / 14.12 MB Notification: Performance of sort global known variables: time 4.6e-07/0.1275, allocations: 0 / 40.74 MB, free: 1.449 MB / 14.12 MB Notification: Performance of remove unused functions: time 0.0008888/0.1284, allocations: 186.3 kB / 40.92 MB, free: 1.449 MB / 14.12 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 (P2.fireOut[1],P2.fireIn[1],P1.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.active) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.00283/0.1313, allocations: 1.553 MB / 42.47 MB, free: 0.5352 MB / 14.12 MB Notification: Performance of simCode: created initialization part: time 0.001512/0.1329, allocations: 0.7016 MB / 43.17 MB, free: 4.613 MB / 18.85 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.1329, allocations: 3.281 kB / 43.17 MB, free: 4.613 MB / 18.85 MB Notification: Performance of simCode: created simulation system equations: time 0.0008648/0.1338, allocations: 426.1 kB / 43.59 MB, free: 4.215 MB / 18.85 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003895/0.1342, allocations: 29.78 kB / 43.62 MB, free: 4.191 MB / 18.85 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002997/0.1372, allocations: 1.017 MB / 44.64 MB, free: 3.32 MB / 18.85 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007241/0.138, allocations: 0.9427 MB / 45.58 MB, free: 2.449 MB / 18.85 MB Notification: Performance of simCode: alias equations: time 0.0003446/0.1384, allocations: 75.14 kB / 45.65 MB, free: 2.402 MB / 18.85 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003459/0.1387, allocations: 154.2 kB / 45.8 MB, free: 2.266 MB / 18.85 MB Notification: Performance of SimCode: time 1.303e-06/0.1387, allocations: 0 / 45.8 MB, free: 2.266 MB / 18.85 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07829/0.217, allocations: 9.593 MB / 55.4 MB, free: 1.641 MB / 18.85 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000142/0.2172, allocations: 96.34 kB / 55.49 MB, free: 1.547 MB / 18.85 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.71/2.927, allocations: 4 kB / 55.5 MB, free: 1.543 MB / 18.85 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)