Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test4.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.Test4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test4") translateModel(ConPNlib.Examples.Test4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test4") [: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.01043/0.01043, allocations: 1.338 MB / 8.625 MB, free: 1.656 MB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 7.555e-06/7.724e-06, allocations: 0 / 12.82 MB, free: 1.117 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0009205/0.0009543, allocations: 361.7 kB / 13.17 MB, free: 0.7734 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.00964/0.01061, allocations: 3.282 MB / 16.46 MB, free: 0.5352 MB / 7.832 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001369/0.01081, allocations: 47.98 kB / 16.5 MB, free: 500 kB / 7.832 MB Notification: Performance of FrontEnd: time 0.04507/0.05589, allocations: 8.885 MB / 25.39 MB, free: 244 kB / 10.45 MB Notification: Performance of Transformations before backend: time 3.8e-05/0.05598, allocations: 13.58 kB / 25.4 MB, free: 244 kB / 10.45 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.001539/0.05753, allocations: 0.7529 MB / 26.16 MB, free: 3.215 MB / 13.95 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.0576, allocations: 9.828 kB / 26.16 MB, free: 3.215 MB / 13.95 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.05786, allocations: 67.03 kB / 26.23 MB, free: 3.184 MB / 13.95 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008922/0.05876, allocations: 392.7 kB / 26.61 MB, free: 2.957 MB / 13.95 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.04e-05/0.05883, allocations: 27.22 kB / 26.64 MB, free: 2.957 MB / 13.95 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.05898, allocations: 40.06 kB / 26.68 MB, free: 2.957 MB / 13.95 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001528/0.06052, allocations: 0.6028 MB / 27.28 MB, free: 2.953 MB / 13.95 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001945/0.06249, allocations: 0.8102 MB / 28.09 MB, free: 2.867 MB / 13.95 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.762e-05/0.06255, allocations: 5.531 kB / 28.1 MB, free: 2.867 MB / 13.95 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.914e-05/0.06265, allocations: 6.969 kB / 28.1 MB, free: 2.867 MB / 13.95 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001174/0.06278, allocations: 46.94 kB / 28.15 MB, free: 2.863 MB / 13.95 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003639/0.06643, allocations: 1.459 MB / 29.61 MB, free: 2.117 MB / 13.95 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008735/0.06735, allocations: 411.1 kB / 30.01 MB, free: 1.719 MB / 13.95 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005806/0.06795, allocations: 256 kB / 30.26 MB, free: 1.492 MB / 13.95 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001106/0.06908, allocations: 0.8586 MB / 31.12 MB, free: 492 kB / 13.95 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/0.06914, allocations: 38.56 kB / 31.16 MB, free: 444 kB / 13.95 MB Notification: Performance of pre-optimization done (n=33): time 3.927e-06/0.06916, allocations: 0 / 31.16 MB, free: 444 kB / 13.95 MB Notification: Performance of matching and sorting (n=33): time 0.001671/0.07084, allocations: 496.5 kB / 31.64 MB, free: 16 kB / 13.95 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005268/0.07613, allocations: 179 kB / 31.82 MB, free: 3.34 MB / 13.95 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000342/0.07652, allocations: 201.8 kB / 32.01 MB, free: 3.242 MB / 13.95 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.07664, allocations: 33.84 kB / 32.05 MB, free: 3.211 MB / 13.95 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002368/0.07689, allocations: 272.5 kB / 32.31 MB, free: 3.098 MB / 13.95 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.07703, allocations: 108 kB / 32.42 MB, free: 3.035 MB / 13.95 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-05/0.07709, allocations: 3.234 kB / 32.42 MB, free: 3.035 MB / 13.95 MB Notification: Performance of setup shared object (initialization): time 8.152e-05/0.07718, allocations: 332.7 kB / 32.75 MB, free: 2.723 MB / 13.95 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000514/0.0777, allocations: 211.5 kB / 32.95 MB, free: 2.723 MB / 13.95 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/0.07906, allocations: 324.6 kB / 33.27 MB, free: 2.594 MB / 13.95 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.08048, allocations: 233.8 kB / 33.5 MB, free: 2.59 MB / 13.95 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.08054, allocations: 3.688 kB / 33.5 MB, free: 2.59 MB / 13.95 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.00231/0.08286, allocations: 0.6147 MB / 34.12 MB, free: 2.531 MB / 13.95 MB Notification: Performance of prepare postOptimizeDAE: time 3.545e-05/0.08295, allocations: 4.875 kB / 34.12 MB, free: 2.531 MB / 13.95 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-05/0.083, allocations: 2.844 kB / 34.12 MB, free: 2.531 MB / 13.95 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002802/0.08582, allocations: 247.9 kB / 34.37 MB, free: 2.523 MB / 13.95 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006948/0.08658, allocations: 59.91 kB / 34.43 MB, free: 2.523 MB / 13.95 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002006/0.08862, allocations: 0.8054 MB / 35.23 MB, free: 2 MB / 13.95 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009544/0.08964, allocations: 54.44 kB / 35.28 MB, free: 1.984 MB / 13.95 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00017/0.08983, allocations: 31 kB / 35.31 MB, free: 1.984 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.0005143/0.09037, allocations: 215.4 kB / 35.52 MB, free: 1.816 MB / 13.95 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002275/0.09062, allocations: 25.72 kB / 35.55 MB, free: 1.805 MB / 13.95 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003377/0.09402, allocations: 0.6749 MB / 36.22 MB, free: 1.734 MB / 13.95 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-05/0.09412, allocations: 7.125 kB / 36.23 MB, free: 1.734 MB / 13.95 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.09414, allocations: 0 / 36.23 MB, free: 1.734 MB / 13.95 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.09416, allocations: 3.938 kB / 36.24 MB, free: 1.734 MB / 13.95 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002619/0.09679, allocations: 1.016 MB / 37.25 MB, free: 0.9492 MB / 13.95 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.09683, allocations: 0 / 37.25 MB, free: 0.9492 MB / 13.95 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002662/0.09711, allocations: 35.78 kB / 37.29 MB, free: 0.9219 MB / 13.95 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001199/0.09832, allocations: 265.6 kB / 37.55 MB, free: 0.7148 MB / 13.95 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.404e-05/0.0984, allocations: 17.81 kB / 37.56 MB, free: 0.7031 MB / 13.95 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006535/0.1049, allocations: 0.8272 MB / 38.39 MB, free: 2.273 MB / 13.95 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.105, allocations: 0 / 38.39 MB, free: 2.273 MB / 13.95 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002167/0.1072, allocations: 0.9074 MB / 39.3 MB, free: 2.133 MB / 13.95 MB Notification: Performance of postOpt removeConstants (simulation): time 6.344e-05/0.1073, allocations: 93.92 kB / 39.39 MB, free: 2.039 MB / 13.95 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.1074, allocations: 15.91 kB / 39.4 MB, free: 2.039 MB / 13.95 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000368/0.1078, allocations: 35.52 kB / 39.44 MB, free: 2.039 MB / 13.95 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002681/0.1081, allocations: 84.88 kB / 39.52 MB, free: 2.039 MB / 13.95 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.376e-05/0.1081, allocations: 30.84 kB / 39.55 MB, free: 2.039 MB / 13.95 MB Notification: Performance of sort global known variables: time 0.0001318/0.1083, allocations: 138.6 kB / 39.69 MB, free: 1.961 MB / 13.95 MB Notification: Performance of remove unused functions: time 0.0008423/0.1091, allocations: 187.8 kB / 39.87 MB, free: 1.961 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.0004614/0.1096, allocations: 206.8 kB / 40.07 MB, free: 1.875 MB / 13.95 MB Notification: Performance of simCode: created initialization part: time 0.001472/0.1111, allocations: 0.6539 MB / 40.73 MB, free: 1.805 MB / 13.95 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1111, allocations: 2.078 kB / 40.73 MB, free: 1.805 MB / 13.95 MB Notification: Performance of simCode: created simulation system equations: time 0.0007789/0.1119, allocations: 377.7 kB / 41.1 MB, free: 1.738 MB / 13.95 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003623/0.1123, allocations: 24.73 kB / 41.12 MB, free: 1.738 MB / 13.95 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.1146, allocations: 0.8466 MB / 41.97 MB, free: 1.543 MB / 13.95 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007312/0.1154, allocations: 0.9838 MB / 42.95 MB, free: 5.562 MB / 18.79 MB Notification: Performance of SimCode: time 1.253e-06/0.1154, allocations: 0 / 42.95 MB, free: 5.562 MB / 18.79 MB Notification: Performance of Templates: time 0.02436/0.1398, allocations: 6.677 MB / 49.63 MB, free: 6.754 MB / 18.79 MB make -j1 -f ConPNlib_ConPNlib.Examples.Test4.makefile (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 & ./ConPNlib_ConPNlib.Examples.Test4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ConPNlib_ConPNlib.Examples.Test4.pipe 2>&1)