Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test5.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.Test5,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test5,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test5",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.01386/0.01386, allocations: 1.338 MB / 8.621 MB, free: 364 kB / 6.77 MB Notification: Performance of FrontEnd - loaded program: time 0.02937/0.04333, allocations: 4.298 MB / 12.92 MB, free: 0.9336 MB / 9.027 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.00109/0.04448, allocations: 365.5 kB / 13.28 MB, free: 0.5859 MB / 9.027 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.01179/0.0563, allocations: 3.273 MB / 16.55 MB, free: 1.578 MB / 9.027 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001428/0.05651, allocations: 51.98 kB / 16.6 MB, free: 1.527 MB / 9.027 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.04151/0.09804, allocations: 7.257 MB / 23.86 MB, free: 2.781 MB / 12.05 MB Notification: Performance of prepare preOptimizeDAE: time 5.853e-05/0.09813, allocations: 7.266 kB / 23.86 MB, free: 2.781 MB / 12.05 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002382/0.09839, allocations: 47.16 kB / 23.91 MB, free: 2.762 MB / 12.05 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.09942, allocations: 319.6 kB / 24.22 MB, free: 2.547 MB / 12.05 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.09952, allocations: 22.22 kB / 24.24 MB, free: 2.543 MB / 12.05 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/0.09968, allocations: 28.06 kB / 24.27 MB, free: 2.543 MB / 12.05 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001587/0.1013, allocations: 401.6 kB / 24.66 MB, free: 2.539 MB / 12.05 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001885/0.1032, allocations: 0.5484 MB / 25.21 MB, free: 2.41 MB / 12.05 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.1033, allocations: 0 / 25.21 MB, free: 2.41 MB / 12.05 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.192e-05/0.1034, allocations: 7.406 kB / 25.22 MB, free: 2.41 MB / 12.05 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.1035, allocations: 29.83 kB / 25.25 MB, free: 2.406 MB / 12.05 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003458/0.107, allocations: 1.053 MB / 26.3 MB, free: 1.707 MB / 12.05 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005134/0.1076, allocations: 207.7 kB / 26.5 MB, free: 1.516 MB / 12.05 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003928/0.108, allocations: 164.8 kB / 26.66 MB, free: 1.367 MB / 12.05 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008401/0.1089, allocations: 0.5932 MB / 27.26 MB, free: 0.668 MB / 12.05 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.1089, allocations: 34.75 kB / 27.29 MB, free: 0.625 MB / 12.05 MB Notification: Performance of pre-optimization done (n=23): time 3.086e-06/0.1089, allocations: 0 / 27.29 MB, free: 0.625 MB / 12.05 MB Notification: Performance of matching and sorting (n=23): time 0.001194/0.1101, allocations: 284.4 kB / 27.57 MB, free: 392 kB / 12.05 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001719/0.1103, allocations: 148.8 kB / 27.71 MB, free: 216 kB / 12.05 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004231/0.1108, allocations: 176.1 kB / 27.89 MB, free: 52 kB / 12.05 MB Notification: Performance of collectPreVariables (initialization): time 4.639e-05/0.1108, allocations: 25.7 kB / 27.91 MB, free: 20 kB / 12.05 MB Notification: Performance of collectInitialEqns (initialization): time 0.005006/0.1159, allocations: 212.7 kB / 28.12 MB, free: 3.129 MB / 12.05 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.1161, allocations: 78.73 kB / 28.2 MB, free: 3.09 MB / 12.05 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/0.1161, allocations: 2.906 kB / 28.2 MB, free: 3.09 MB / 12.05 MB Notification: Performance of setup shared object (initialization): time 7.601e-05/0.1162, allocations: 328 kB / 28.52 MB, free: 2.777 MB / 12.05 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003552/0.1165, allocations: 136.7 kB / 28.65 MB, free: 2.77 MB / 12.05 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000394/0.117, allocations: 231.4 kB / 28.88 MB, free: 2.66 MB / 12.05 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005581/0.1175, allocations: 155.8 kB / 29.03 MB, free: 2.652 MB / 12.05 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/0.1175, allocations: 2.281 kB / 29.03 MB, free: 2.652 MB / 12.05 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001074/0.1186, allocations: 388.2 kB / 29.41 MB, free: 2.609 MB / 12.05 MB Notification: Performance of prepare postOptimizeDAE: time 1.868e-05/0.1187, allocations: 5.469 kB / 29.42 MB, free: 2.609 MB / 12.05 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.1187, allocations: 2.688 kB / 29.42 MB, free: 2.609 MB / 12.05 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.681e-05/0.1187, allocations: 5.5 kB / 29.43 MB, free: 2.609 MB / 12.05 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003654/0.1191, allocations: 55.42 kB / 29.48 MB, free: 2.609 MB / 12.05 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.1191, allocations: 4.422 kB / 29.48 MB, free: 2.609 MB / 12.05 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003178/0.1195, allocations: 43.97 kB / 29.53 MB, free: 2.598 MB / 12.05 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.366e-05/0.1195, allocations: 22.03 kB / 29.55 MB, free: 2.598 MB / 12.05 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.P1.fireOut[1],P1.emptying,$PRE.P2.fireIn[1],P2.feeding,P1.feeding,P1.outTransition[1].arcType,P2.emptying,P1.fireOut[1],P2.fireIn[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.emptied[1],T1.activation.arcType[1],T1.activation.fed[1],T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002095/0.1198, allocations: 166.2 kB / 29.71 MB, free: 2.461 MB / 12.05 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.2e-05/0.1198, allocations: 24.36 kB / 29.73 MB, free: 2.453 MB / 12.05 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001176/0.121, allocations: 369.1 kB / 30.1 MB, free: 2.406 MB / 12.05 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.952e-05/0.1211, allocations: 4.5 kB / 30.1 MB, free: 2.406 MB / 12.05 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1211, allocations: 0 / 30.1 MB, free: 2.406 MB / 12.05 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.1211, allocations: 3.141 kB / 30.1 MB, free: 2.406 MB / 12.05 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001619/0.1228, allocations: 0.6853 MB / 30.79 MB, free: 2.133 MB / 12.05 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.1228, allocations: 0 / 30.79 MB, free: 2.133 MB / 12.05 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000506/0.1233, allocations: 40.08 kB / 30.83 MB, free: 2.129 MB / 12.05 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/0.1234, allocations: 0 / 30.83 MB, free: 2.129 MB / 12.05 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-05/0.1235, allocations: 11.22 kB / 30.84 MB, free: 2.129 MB / 12.05 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.047e-06/0.1235, allocations: 8.422 kB / 30.85 MB, free: 2.125 MB / 12.05 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.1235, allocations: 0 / 30.85 MB, free: 2.125 MB / 12.05 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002248/0.1258, allocations: 0.573 MB / 31.42 MB, free: 1.891 MB / 12.05 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003072/0.1289, allocations: 1.114 MB / 32.53 MB, free: 0.8398 MB / 12.05 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.1291, allocations: 100.8 kB / 32.63 MB, free: 0.7227 MB / 12.05 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001716/0.1293, allocations: 7.797 kB / 32.64 MB, free: 0.7188 MB / 12.05 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005963/0.1299, allocations: 25.36 kB / 32.66 MB, free: 0.6992 MB / 12.05 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003815/0.1303, allocations: 63.41 kB / 32.73 MB, free: 0.6562 MB / 12.05 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.1304, allocations: 15.38 kB / 32.74 MB, free: 0.6445 MB / 12.05 MB Notification: Performance of sort global known variables: time 0.0002128/0.1307, allocations: 121.7 kB / 32.86 MB, free: 0.5352 MB / 12.05 MB Notification: Performance of remove unused functions: time 0.003222/0.1339, allocations: 154.7 kB / 33.01 MB, free: 412 kB / 12.05 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: 7 (P1.fireOut[1],P1.emptying,P2.fireIn[1],P2.feeding,T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1]) * Number of discrete states: 5 (P2.fireIn[1],P1.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 20 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009552/0.135, allocations: 204.7 kB / 33.21 MB, free: 232 kB / 12.05 MB Notification: Performance of simCode: created initialization part: time 0.007605/0.1426, allocations: 466.2 kB / 33.67 MB, free: 2.391 MB / 12.05 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.1427, allocations: 3.656 kB / 33.67 MB, free: 2.391 MB / 12.05 MB Notification: Performance of simCode: created simulation system equations: time 0.0005543/0.1432, allocations: 234.5 kB / 33.9 MB, free: 2.359 MB / 12.05 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004068/0.1436, allocations: 31.81 kB / 33.93 MB, free: 2.355 MB / 12.05 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.1454, allocations: 0.5517 MB / 34.48 MB, free: 2.199 MB / 12.05 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008556/0.1463, allocations: 0.9145 MB / 35.4 MB, free: 5.707 MB / 16.27 MB Notification: Performance of SimCode: time 1.563e-06/0.1463, allocations: 0 / 35.4 MB, free: 5.707 MB / 16.27 MB (rm -f ConPNlib_ConPNlib.Examples.Test5.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test5.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test5.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test5_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test5.fmu > ConPNlib_ConPNlib.Examples.Test5.pipe 2>&1)