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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.01982/0.01981, allocations: 1.333 MB / 8.619 MB, free: 1.66 MB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 0.02592/0.04581, allocations: 4.299 MB / 12.92 MB, free: 1.027 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.001491/0.04736, allocations: 357.7 kB / 13.27 MB, free: 0.6836 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.01197/0.0594, allocations: 3.279 MB / 16.55 MB, free: 484 kB / 7.832 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001871/0.05965, allocations: 51.22 kB / 16.6 MB, free: 436 kB / 7.832 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.05484/0.1145, allocations: 9.659 MB / 26.26 MB, free: 3.117 MB / 13.95 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.1146, allocations: 10.7 kB / 26.27 MB, free: 3.117 MB / 13.95 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000251/0.1149, allocations: 62.19 kB / 26.33 MB, free: 3.086 MB / 13.95 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.1161, allocations: 396.1 kB / 26.71 MB, free: 2.863 MB / 13.95 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.141e-05/0.1162, allocations: 25.78 kB / 26.74 MB, free: 2.859 MB / 13.95 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.1164, allocations: 41.66 kB / 26.78 MB, free: 2.859 MB / 13.95 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002173/0.1186, allocations: 0.599 MB / 27.38 MB, free: 2.855 MB / 13.95 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002266/0.1209, allocations: 0.8178 MB / 28.2 MB, free: 2.703 MB / 13.95 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.817e-05/0.121, allocations: 1 kB / 28.2 MB, free: 2.703 MB / 13.95 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001369/0.1211, allocations: 2.125 kB / 28.2 MB, free: 2.703 MB / 13.95 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000187/0.1213, allocations: 49.59 kB / 28.25 MB, free: 2.695 MB / 13.95 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004816/0.1262, allocations: 1.461 MB / 29.71 MB, free: 1.527 MB / 13.95 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009063/0.1271, allocations: 405.7 kB / 30.1 MB, free: 1.137 MB / 13.95 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005966/0.1278, allocations: 253.3 kB / 30.35 MB, free: 0.9141 MB / 13.95 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006927/0.1347, allocations: 0.8667 MB / 31.22 MB, free: 3.398 MB / 13.95 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.1348, allocations: 34.31 kB / 31.25 MB, free: 3.359 MB / 13.95 MB Notification: Performance of pre-optimization done (n=33): time 4.148e-06/0.1348, allocations: 0 / 31.25 MB, free: 3.359 MB / 13.95 MB Notification: Performance of matching and sorting (n=33): time 0.001761/0.1366, allocations: 493.7 kB / 31.73 MB, free: 3.316 MB / 13.95 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.1368, allocations: 179.8 kB / 31.91 MB, free: 3.129 MB / 13.95 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.1371, allocations: 200.1 kB / 32.11 MB, free: 3.027 MB / 13.95 MB Notification: Performance of collectPreVariables (initialization): time 7.525e-05/0.1372, allocations: 32.14 kB / 32.14 MB, free: 2.996 MB / 13.95 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002362/0.1374, allocations: 280.9 kB / 32.41 MB, free: 2.871 MB / 13.95 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.1376, allocations: 104.6 kB / 32.51 MB, free: 2.809 MB / 13.95 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/0.1377, allocations: 2.5 kB / 32.52 MB, free: 2.809 MB / 13.95 MB Notification: Performance of setup shared object (initialization): time 9.363e-05/0.1378, allocations: 336.8 kB / 32.84 MB, free: 2.496 MB / 13.95 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006922/0.1385, allocations: 206 kB / 33.05 MB, free: 2.496 MB / 13.95 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006122/0.1391, allocations: 327.9 kB / 33.37 MB, free: 2.367 MB / 13.95 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007773/0.1399, allocations: 231.9 kB / 33.59 MB, free: 2.363 MB / 13.95 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/0.1399, allocations: 4.469 kB / 33.6 MB, free: 2.363 MB / 13.95 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001775/0.1417, allocations: 0.6116 MB / 34.21 MB, free: 2.305 MB / 13.95 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.1418, allocations: 5.75 kB / 34.21 MB, free: 2.305 MB / 13.95 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.1418, allocations: 6.312 kB / 34.22 MB, free: 2.305 MB / 13.95 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002065/0.1439, allocations: 247.1 kB / 34.46 MB, free: 2.297 MB / 13.95 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003877/0.1443, allocations: 55.39 kB / 34.52 MB, free: 2.297 MB / 13.95 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.1456, allocations: 0.803 MB / 35.32 MB, free: 1.773 MB / 13.95 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005241/0.1462, allocations: 61.64 kB / 35.38 MB, free: 1.758 MB / 13.95 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.25e-05/0.1463, allocations: 29.88 kB / 35.41 MB, free: 1.758 MB / 13.95 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.0003332/0.1466, allocations: 212.6 kB / 35.62 MB, free: 1.59 MB / 13.95 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.1467, allocations: 32.53 kB / 35.65 MB, free: 1.574 MB / 13.95 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002615/0.1493, allocations: 0.6687 MB / 36.32 MB, free: 1.355 MB / 13.95 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.042e-05/0.1494, allocations: 4 kB / 36.32 MB, free: 1.352 MB / 13.95 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.1495, allocations: 0 / 36.32 MB, free: 1.352 MB / 13.95 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.729e-06/0.1495, allocations: 2.156 kB / 36.32 MB, free: 1.352 MB / 13.95 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002764/0.1522, allocations: 1.029 MB / 37.35 MB, free: 464 kB / 13.95 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.1523, allocations: 0 / 37.35 MB, free: 464 kB / 13.95 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.1526, allocations: 30.8 kB / 37.38 MB, free: 436 kB / 13.95 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001273/0.1539, allocations: 269.1 kB / 37.64 MB, free: 224 kB / 13.95 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/0.154, allocations: 12.5 kB / 37.66 MB, free: 216 kB / 13.95 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008067/0.1621, allocations: 0.826 MB / 38.48 MB, free: 2.352 MB / 13.95 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/0.1622, allocations: 3.875 kB / 38.49 MB, free: 2.352 MB / 13.95 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00221/0.1644, allocations: 0.9121 MB / 39.4 MB, free: 2.211 MB / 13.95 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002861/0.1673, allocations: 1.544 MB / 40.94 MB, free: 1.699 MB / 13.95 MB Notification: Performance of postOpt removeConstants (simulation): time 8.886e-05/0.1674, allocations: 107.5 kB / 41.05 MB, free: 1.605 MB / 13.95 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.1676, allocations: 9.438 kB / 41.06 MB, free: 1.605 MB / 13.95 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003919/0.168, allocations: 40.48 kB / 41.1 MB, free: 1.605 MB / 13.95 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003175/0.1683, allocations: 85.02 kB / 41.18 MB, free: 1.605 MB / 13.95 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/0.1684, allocations: 24.97 kB / 41.2 MB, free: 1.605 MB / 13.95 MB Notification: Performance of sort global known variables: time 0.0002324/0.1687, allocations: 137.3 kB / 41.34 MB, free: 1.527 MB / 13.95 MB Notification: Performance of remove unused functions: time 0.003514/0.1722, allocations: 195.8 kB / 41.53 MB, free: 1.527 MB / 13.95 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.001146/0.1735, allocations: 208.2 kB / 41.73 MB, free: 1.441 MB / 13.95 MB Notification: Performance of simCode: created initialization part: time 0.00282/0.1763, allocations: 0.6409 MB / 42.37 MB, free: 1.27 MB / 13.95 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/0.1764, allocations: 2.75 kB / 42.38 MB, free: 1.27 MB / 13.95 MB Notification: Performance of simCode: created simulation system equations: time 0.001544/0.178, allocations: 384.7 kB / 42.75 MB, free: 0.9609 MB / 13.95 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005897/0.1786, allocations: 27.61 kB / 42.78 MB, free: 0.9375 MB / 13.95 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003733/0.1824, allocations: 0.8514 MB / 43.63 MB, free: 196 kB / 13.95 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008434/0.1909, allocations: 0.9849 MB / 44.61 MB, free: 6.598 MB / 18.79 MB Notification: Performance of SimCode: time 1.452e-06/0.1909, allocations: 0 / 44.61 MB, free: 6.598 MB / 18.79 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)