Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test7.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo", uses=false) Using package ConPNlib with version (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo) Running command: translateModel(ConPNlib.Examples.Test7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test7") translateModel(ConPNlib.Examples.Test7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test7") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.01125/0.01125, allocations: 1.337 MB / 8.621 MB, free: 1.66 MB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 1.428e-05/1.442e-05, allocations: 4 kB / 12.82 MB, free: 1.145 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0008183/0.0008561, allocations: 360.8 kB / 13.18 MB, free: 0.8008 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.007612/0.008487, allocations: 3.273 MB / 16.45 MB, free: 0.5625 MB / 7.832 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001312/0.008728, allocations: 47.98 kB / 16.5 MB, free: 0.5156 MB / 7.832 MB Notification: Performance of FrontEnd: time 0.03153/0.04027, allocations: 6.638 MB / 23.13 MB, free: 0.9922 MB / 10.45 MB Notification: Performance of Transformations before backend: time 2.541e-05/0.04035, allocations: 12 kB / 23.15 MB, free: 0.9805 MB / 10.45 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.001035/0.04139, allocations: 0.6144 MB / 23.76 MB, free: 376 kB / 10.45 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.04145, allocations: 8.609 kB / 23.77 MB, free: 368 kB / 10.45 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.04159, allocations: 43.53 kB / 23.81 MB, free: 324 kB / 10.45 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004799/0.0464, allocations: 326.7 kB / 24.13 MB, free: 0.9492 MB / 10.45 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.575e-05/0.04653, allocations: 12.97 kB / 24.14 MB, free: 0.9492 MB / 10.45 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000194/0.04673, allocations: 31.19 kB / 24.17 MB, free: 0.9492 MB / 10.45 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001077/0.04782, allocations: 398.7 kB / 24.56 MB, free: 0.9492 MB / 10.45 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.04906, allocations: 0.5473 MB / 25.11 MB, free: 0.875 MB / 10.45 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.0491, allocations: 2.812 kB / 25.11 MB, free: 0.875 MB / 10.45 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.928e-05/0.04917, allocations: 0 / 25.11 MB, free: 0.875 MB / 10.45 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.071e-05/0.04926, allocations: 35.58 kB / 25.15 MB, free: 0.875 MB / 10.45 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002336/0.05161, allocations: 1.046 MB / 26.19 MB, free: 4.02 MB / 13.97 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005183/0.05217, allocations: 300.4 kB / 26.49 MB, free: 3.898 MB / 13.97 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003162/0.05251, allocations: 157.9 kB / 26.64 MB, free: 3.891 MB / 13.97 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007805/0.0533, allocations: 0.5958 MB / 27.24 MB, free: 3.234 MB / 13.97 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.05335, allocations: 36.39 kB / 27.27 MB, free: 3.195 MB / 13.97 MB Notification: Performance of pre-optimization done (n=22): time 3.076e-06/0.05336, allocations: 2.781 kB / 27.28 MB, free: 3.195 MB / 13.97 MB Notification: Performance of matching and sorting (n=22): time 0.001698/0.05507, allocations: 272.4 kB / 27.54 MB, free: 3.156 MB / 13.97 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001673/0.05527, allocations: 150.1 kB / 27.69 MB, free: 3 MB / 13.97 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.05557, allocations: 177.2 kB / 27.86 MB, free: 2.895 MB / 13.97 MB Notification: Performance of collectPreVariables (initialization): time 4.804e-05/0.05563, allocations: 25.7 kB / 27.89 MB, free: 2.863 MB / 13.97 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.05582, allocations: 215.2 kB / 28.1 MB, free: 2.723 MB / 13.97 MB Notification: Performance of collectInitialBindings (initialization): time 9.059e-05/0.05593, allocations: 78.59 kB / 28.17 MB, free: 2.664 MB / 13.97 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.851e-05/0.05597, allocations: 6.094 kB / 28.18 MB, free: 2.664 MB / 13.97 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.05614, allocations: 327.9 kB / 28.5 MB, free: 2.344 MB / 13.97 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003372/0.05649, allocations: 132 kB / 28.63 MB, free: 2.301 MB / 13.97 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004254/0.05693, allocations: 235.5 kB / 28.86 MB, free: 2.129 MB / 13.97 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000541/0.05749, allocations: 153.3 kB / 29.01 MB, free: 2.031 MB / 13.97 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.05751, allocations: 0 / 29.01 MB, free: 2.031 MB / 13.97 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001112/0.05863, allocations: 384.7 kB / 29.38 MB, free: 1.703 MB / 13.97 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.05866, allocations: 4.312 kB / 29.39 MB, free: 1.699 MB / 13.97 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.05869, allocations: 4 kB / 29.39 MB, free: 1.695 MB / 13.97 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.631e-05/0.05872, allocations: 4 kB / 29.4 MB, free: 1.691 MB / 13.97 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003769/0.05911, allocations: 59.72 kB / 29.45 MB, free: 1.645 MB / 13.97 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/0.05914, allocations: 12.33 kB / 29.47 MB, free: 1.633 MB / 13.97 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003087/0.05946, allocations: 39.55 kB / 29.51 MB, free: 1.598 MB / 13.97 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-05/0.05954, allocations: 23.7 kB / 29.53 MB, free: 1.578 MB / 13.97 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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.0002484/0.0598, allocations: 164.5 kB / 29.69 MB, free: 1.41 MB / 13.97 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.492e-05/0.0599, allocations: 23.72 kB / 29.71 MB, free: 1.387 MB / 13.97 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/0.06112, allocations: 335.3 kB / 30.04 MB, free: 1.113 MB / 13.97 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.793e-05/0.06116, allocations: 4 kB / 30.04 MB, free: 1.109 MB / 13.97 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.06118, allocations: 0 / 30.04 MB, free: 1.109 MB / 13.97 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.06119, allocations: 0 / 30.04 MB, free: 1.109 MB / 13.97 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.06277, allocations: 0.6888 MB / 30.73 MB, free: 500 kB / 13.97 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.0628, allocations: 0 / 30.73 MB, free: 500 kB / 13.97 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.06313, allocations: 47.81 kB / 30.78 MB, free: 460 kB / 13.97 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.06315, allocations: 0 / 30.78 MB, free: 460 kB / 13.97 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.241e-05/0.0632, allocations: 6.344 kB / 30.79 MB, free: 456 kB / 13.97 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.06322, allocations: 1.25 kB / 30.79 MB, free: 456 kB / 13.97 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.06323, allocations: 5.859 kB / 30.79 MB, free: 452 kB / 13.97 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001861/0.0651, allocations: 0.5781 MB / 31.37 MB, free: 0 / 13.97 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004729/0.06985, allocations: 102.3 kB / 31.47 MB, free: 3.586 MB / 13.97 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.07003, allocations: 3.906 kB / 31.47 MB, free: 3.586 MB / 13.97 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003129/0.07035, allocations: 25.78 kB / 31.5 MB, free: 3.586 MB / 13.97 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002262/0.07059, allocations: 61.55 kB / 31.56 MB, free: 3.586 MB / 13.97 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.389e-05/0.07066, allocations: 17.59 kB / 31.58 MB, free: 3.586 MB / 13.97 MB Notification: Performance of sort global known variables: time 0.0001204/0.07079, allocations: 131.8 kB / 31.7 MB, free: 3.508 MB / 13.97 MB Notification: Performance of remove unused functions: time 0.0007668/0.07157, allocations: 150.2 kB / 31.85 MB, free: 3.508 MB / 13.97 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 (22): * Single equations (assignments): 19 * 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.0004196/0.072, allocations: 197.2 kB / 32.04 MB, free: 3.414 MB / 13.97 MB Notification: Performance of simCode: created initialization part: time 0.0009612/0.07298, allocations: 402.8 kB / 32.44 MB, free: 3.383 MB / 13.97 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.073, allocations: 3.812 kB / 32.44 MB, free: 3.383 MB / 13.97 MB Notification: Performance of simCode: created simulation system equations: time 0.0004484/0.07346, allocations: 228 kB / 32.66 MB, free: 3.352 MB / 13.97 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003465/0.07382, allocations: 21.58 kB / 32.69 MB, free: 3.352 MB / 13.97 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.07538, allocations: 0.5606 MB / 33.25 MB, free: 3.199 MB / 13.97 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005786/0.07598, allocations: 0.9044 MB / 34.15 MB, free: 2.492 MB / 13.97 MB Notification: Performance of SimCode: time 1.132e-06/0.076, allocations: 0 / 34.15 MB, free: 2.492 MB / 13.97 MB Notification: Performance of Templates: time 0.01774/0.09375, allocations: 4.306 MB / 38.46 MB, free: 2.594 MB / 13.97 MB make -j1 -f ConPNlib_ConPNlib.Examples.Test7.makefile (rm -f ConPNlib_ConPNlib.Examples.Test7.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test7.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test7.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test7.sim & ./ConPNlib_ConPNlib.Examples.Test7 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ConPNlib_ConPNlib.Examples.Test7.pipe 2>&1)