Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test9.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.Test9,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test9",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test9,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test9",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.009243/0.009242, allocations: 1.331 MB / 13.89 MB, free: 1.414 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.753e-05/1.781e-05, allocations: 0 / 19.33 MB, free: 1.992 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0006207/0.0006797, allocations: 361.9 kB / 19.68 MB, free: 1.656 MB / 13.93 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.01589/0.01659, allocations: 4.023 MB / 23.7 MB, free: 2.758 MB / 13.93 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001411/0.01678, allocations: 49.92 kB / 23.75 MB, free: 2.738 MB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 0.05608/0.07288, allocations: 10.75 MB / 34.5 MB, free: 2.32 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.824e-06/0.07293, allocations: 0 / 34.5 MB, free: 2.32 MB / 18.57 MB Notification: Performance of Transformations before backend: time 3.987e-05/0.07298, allocations: 17 kB / 34.52 MB, free: 2.32 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.001675/0.07467, allocations: 0.8614 MB / 35.38 MB, free: 1.738 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.07473, allocations: 10.34 kB / 35.39 MB, free: 1.738 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003/0.07504, allocations: 144.6 kB / 35.53 MB, free: 1.699 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002054/0.07526, allocations: 82.48 kB / 35.61 MB, free: 1.66 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.07629, allocations: 455.8 kB / 36.06 MB, free: 1.426 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.145e-05/0.07639, allocations: 71.03 kB / 36.12 MB, free: 1.422 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/0.07658, allocations: 92.89 kB / 36.22 MB, free: 1.422 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002538/0.07913, allocations: 1.142 MB / 37.36 MB, free: 1.312 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.498e-05/0.07922, allocations: 0 / 37.36 MB, free: 1.312 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/0.07935, allocations: 45.98 kB / 37.4 MB, free: 1.293 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001513/0.07951, allocations: 56.72 kB / 37.46 MB, free: 1.281 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003143/0.08269, allocations: 0.7788 MB / 38.24 MB, free: 0.9453 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01838/0.1011, allocations: 2.062 MB / 40.3 MB, free: 1.047 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009646/0.1021, allocations: 0.5733 MB / 40.87 MB, free: 0.832 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006269/0.1028, allocations: 338.1 kB / 41.2 MB, free: 0.8242 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001221/0.104, allocations: 1.027 MB / 42.23 MB, free: 5.91 MB / 24.79 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.1041, allocations: 40.94 kB / 42.27 MB, free: 5.871 MB / 24.79 MB Notification: Performance of pre-optimization done (n=42): time 4.258e-06/0.1041, allocations: 3.719 kB / 42.27 MB, free: 5.871 MB / 24.79 MB Notification: Performance of matching and sorting (n=42): time 0.001766/0.1059, allocations: 0.6811 MB / 42.95 MB, free: 5.766 MB / 24.79 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001594/0.1061, allocations: 209.6 kB / 43.16 MB, free: 5.547 MB / 24.79 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004233/0.1065, allocations: 289.7 kB / 43.44 MB, free: 5.438 MB / 24.79 MB Notification: Performance of collectPreVariables (initialization): time 7.831e-05/0.1066, allocations: 37.94 kB / 43.48 MB, free: 5.406 MB / 24.79 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002551/0.1069, allocations: 335.3 kB / 43.81 MB, free: 5.23 MB / 24.79 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.107, allocations: 141.2 kB / 43.94 MB, free: 5.156 MB / 24.79 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.314e-05/0.1071, allocations: 15.22 kB / 43.96 MB, free: 5.156 MB / 24.79 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.1073, allocations: 345.3 kB / 44.3 MB, free: 4.844 MB / 24.79 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000667/0.1079, allocations: 273 kB / 44.56 MB, free: 4.84 MB / 24.79 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007441/0.1087, allocations: 433.8 kB / 44.99 MB, free: 4.656 MB / 24.79 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006541/0.1094, allocations: 349 kB / 45.33 MB, free: 4.59 MB / 24.79 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/0.1094, allocations: 10.22 kB / 45.34 MB, free: 4.59 MB / 24.79 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001914/0.1113, allocations: 0.8733 MB / 46.21 MB, free: 4.438 MB / 24.79 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.1114, allocations: 86.39 kB / 46.29 MB, free: 4.363 MB / 24.79 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.1115, allocations: 4.156 kB / 46.3 MB, free: 4.363 MB / 24.79 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00361/0.1151, allocations: 443.4 kB / 46.73 MB, free: 4.328 MB / 24.79 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004689/0.1156, allocations: 78.48 kB / 46.81 MB, free: 4.316 MB / 24.79 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.1167, allocations: 0.7857 MB / 47.59 MB, free: 3.727 MB / 24.79 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005925/0.1173, allocations: 91.36 kB / 47.68 MB, free: 3.688 MB / 24.79 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.1175, allocations: 40.64 kB / 47.72 MB, free: 3.68 MB / 24.79 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.P1.fireOut[1],P1.emptying,$PRE.P3.fireIn[1],P3.feeding,P1.feeding,P1.outTransition[1].arcType,P2.outTransition[1].arcType,P3.emptying,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],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],T2.activation.emptied[1],T2.activation.arcType[1],T1.activation.arcType[1],T1.activation.fed[1],T1.outPlaces[1].enabledByInPlaces,T2.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 55 * 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 {3 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003571/0.1178, allocations: 243.4 kB / 47.96 MB, free: 3.477 MB / 24.79 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.118, allocations: 35.84 kB / 48 MB, free: 3.441 MB / 24.79 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002275/0.1203, allocations: 0.8124 MB / 48.81 MB, free: 2.734 MB / 24.79 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.43e-05/0.1203, allocations: 12.36 kB / 48.82 MB, free: 2.727 MB / 24.79 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.1204, allocations: 0 / 48.82 MB, free: 2.727 MB / 24.79 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.1204, allocations: 4 kB / 48.82 MB, free: 2.723 MB / 24.79 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003216/0.1236, allocations: 1.444 MB / 50.27 MB, free: 1.453 MB / 24.79 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.1237, allocations: 0 / 50.27 MB, free: 1.453 MB / 24.79 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003383/0.124, allocations: 43.12 kB / 50.31 MB, free: 1.418 MB / 24.79 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/0.1259, allocations: 356.6 kB / 50.66 MB, free: 1.152 MB / 24.79 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.126, allocations: 20.86 kB / 50.68 MB, free: 1.141 MB / 24.79 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001153/0.1272, allocations: 0.8047 MB / 51.48 MB, free: 384 kB / 24.79 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.1272, allocations: 2.297 kB / 51.49 MB, free: 384 kB / 24.79 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01731/0.1445, allocations: 1.195 MB / 52.68 MB, free: 6.961 MB / 24.79 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.1447, allocations: 109.7 kB / 52.79 MB, free: 6.867 MB / 24.79 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.1448, allocations: 31.73 kB / 52.82 MB, free: 6.867 MB / 24.79 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004044/0.1452, allocations: 46.81 kB / 52.86 MB, free: 6.867 MB / 24.79 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003173/0.1456, allocations: 114.6 kB / 52.98 MB, free: 6.867 MB / 24.79 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.365e-05/0.1457, allocations: 31.81 kB / 53.01 MB, free: 6.867 MB / 24.79 MB Notification: Performance of sorting global known variables: time 0.0002578/0.1459, allocations: 196.6 kB / 53.2 MB, free: 6.785 MB / 24.79 MB Notification: Performance of sort global known variables: time 1.242e-06/0.1459, allocations: 0 / 53.2 MB, free: 6.785 MB / 24.79 MB Notification: Performance of remove unused functions: time 0.000972/0.1469, allocations: 233.5 kB / 53.43 MB, free: 6.785 MB / 24.79 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (P1.t_,P2.t_,P3.t_) * Number of discrete variables: 14 (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],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P3.feeding) * Number of discrete states: 10 (P3.fireIn[1],P2.fireOut[1],P2.fireIn[1],P1.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active) * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 26 * 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 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003235/0.1502, allocations: 1.873 MB / 55.3 MB, free: 6.047 MB / 24.79 MB Notification: Performance of simCode: created initialization part: time 0.001909/0.1521, allocations: 0.9108 MB / 56.21 MB, free: 5.918 MB / 24.79 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.1522, allocations: 0 / 56.21 MB, free: 5.918 MB / 24.79 MB Notification: Performance of simCode: created simulation system equations: time 0.0009642/0.1532, allocations: 0.5333 MB / 56.74 MB, free: 5.785 MB / 24.79 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004422/0.1536, allocations: 47.22 kB / 56.79 MB, free: 5.773 MB / 24.79 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003232/0.1569, allocations: 1.352 MB / 58.14 MB, free: 5.258 MB / 24.79 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000544/0.1575, allocations: 1.031 MB / 59.17 MB, free: 4.367 MB / 24.79 MB Notification: Performance of simCode: alias equations: time 0.0003837/0.1579, allocations: 95 kB / 59.27 MB, free: 4.316 MB / 24.79 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003183/0.1582, allocations: 212.3 kB / 59.47 MB, free: 4.129 MB / 24.79 MB Notification: Performance of SimCode: time 1.313e-06/0.1582, allocations: 2.844 kB / 59.48 MB, free: 4.129 MB / 24.79 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07408/0.2323, allocations: 12.48 MB / 71.96 MB, free: 2.82 MB / 24.79 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001907/0.2325, allocations: 146.3 kB / 72.1 MB, free: 2.602 MB / 24.79 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.044/3.276, allocations: 1.219 kB / 72.1 MB, free: 2.602 MB / 24.79 MB (rm -f ConPNlib_ConPNlib.Examples.Test9.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test9.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test9.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test9.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test9_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test9.fmu > ConPNlib_ConPNlib.Examples.Test9.pipe 2>&1)