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: 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.009304/0.009304, allocations: 1.371 MB / 16.65 MB, free: 5.164 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.001e-05/1.012e-05, allocations: 0 / 23.7 MB, free: 3.738 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0005306/0.0005595, allocations: 371.5 kB / 24.07 MB, free: 3.414 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test4): time 0.001097/0.001666, allocations: 1.242 MB / 25.31 MB, free: 2.172 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.002924, allocations: 0.7914 MB / 26.1 MB, free: 1.379 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002507/0.003189, allocations: 3.938 kB / 26.1 MB, free: 1.375 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0002164/0.003415, allocations: 91.38 kB / 26.19 MB, free: 1.285 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0007287/0.004153, allocations: 268.6 kB / 26.45 MB, free: 1.023 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001327/0.004298, allocations: 56.91 kB / 26.51 MB, free: 0.9688 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.000342/0.004649, allocations: 482.6 kB / 26.98 MB, free: 0.4961 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002421/0.004899, allocations: 232.7 kB / 27.21 MB, free: 268 kB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.005033, allocations: 186.8 kB / 27.39 MB, free: 80 kB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.005259, allocations: 206.8 kB / 27.59 MB, free: 4.516 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 4.422e-05/0.005312, allocations: 16 kB / 27.61 MB, free: 4.5 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003418/0.00566, allocations: 215.5 kB / 27.82 MB, free: 4.293 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.005798, allocations: 119.5 kB / 27.94 MB, free: 4.176 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.005995, allocations: 228.2 kB / 28.16 MB, free: 3.945 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.0005911/0.006595, allocations: 0.6465 MB / 28.81 MB, free: 3.297 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.006606, allocations: 0 / 28.81 MB, free: 3.297 MB / 18.57 MB Notification: Performance of FrontEnd: time 2.585e-06/0.006614, allocations: 0 / 28.81 MB, free: 3.297 MB / 18.57 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.006625, allocations: 3.938 kB / 28.81 MB, free: 3.293 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: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.0007842/0.007414, allocations: 0.7441 MB / 29.55 MB, free: 2.488 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.007454, allocations: 8.969 kB / 29.56 MB, free: 2.48 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.947e-05/0.007559, allocations: 60.28 kB / 29.62 MB, free: 2.422 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004575/0.008022, allocations: 368 kB / 29.98 MB, free: 2.023 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.281e-05/0.008085, allocations: 53.67 kB / 30.03 MB, free: 1.969 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.276e-05/0.008186, allocations: 64.38 kB / 30.1 MB, free: 1.906 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.009561, allocations: 0.9501 MB / 31.05 MB, free: 0.9375 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.009586, allocations: 0 / 31.05 MB, free: 0.9375 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.713e-05/0.009649, allocations: 35.45 kB / 31.08 MB, free: 0.9062 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.579e-05/0.009742, allocations: 61.27 kB / 31.14 MB, free: 0.8477 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009982/0.01075, allocations: 0.6648 MB / 31.8 MB, free: 184 kB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006939/0.0177, allocations: 1.778 MB / 33.58 MB, free: 6.559 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005504/0.01827, allocations: 482.1 kB / 34.05 MB, free: 6.285 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003083/0.01859, allocations: 282.2 kB / 34.33 MB, free: 6.152 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004038/0.019, allocations: 0.8634 MB / 35.19 MB, free: 5.176 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.464e-05/0.01903, allocations: 35.5 kB / 35.23 MB, free: 5.137 MB / 18.57 MB Notification: Performance of pre-optimization done (n=33): time 2.675e-06/0.01904, allocations: 2.25 kB / 35.23 MB, free: 5.137 MB / 18.57 MB Notification: Performance of matching and sorting (n=33): time 0.002206/0.02125, allocations: 1.157 MB / 36.39 MB, free: 4.219 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.551e-05/0.02132, allocations: 178.2 kB / 36.56 MB, free: 4.008 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001769/0.0215, allocations: 266.4 kB / 36.82 MB, free: 3.738 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.02154, allocations: 41.3 kB / 36.86 MB, free: 3.695 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.02166, allocations: 282.1 kB / 37.14 MB, free: 3.422 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 6.335e-05/0.02173, allocations: 101.2 kB / 37.24 MB, free: 3.324 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.57e-05/0.02176, allocations: 12 kB / 37.25 MB, free: 3.312 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 5.261e-05/0.02182, allocations: 342.8 kB / 37.58 MB, free: 2.969 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003172/0.02214, allocations: 240.7 kB / 37.82 MB, free: 2.73 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003426/0.02249, allocations: 352.5 kB / 38.16 MB, free: 2.34 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006113/0.02311, allocations: 0.637 MB / 38.8 MB, free: 1.641 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.02313, allocations: 4 kB / 38.8 MB, free: 1.637 MB / 18.57 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001043/0.02418, allocations: 0.8655 MB / 39.67 MB, free: 0.7578 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 4.967e-05/0.02424, allocations: 83.38 kB / 39.75 MB, free: 0.6641 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.02425, allocations: 0 / 39.75 MB, free: 0.6641 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001196/0.02545, allocations: 304.9 kB / 40.05 MB, free: 372 kB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.02563, allocations: 55.91 kB / 40.1 MB, free: 316 kB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006568/0.0322, allocations: 0.7293 MB / 40.83 MB, free: 5.895 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.0325, allocations: 69.03 kB / 40.9 MB, free: 5.895 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.874e-05/0.03257, allocations: 27.62 kB / 40.92 MB, free: 5.895 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.P1.fireOut[1],P1.emptying,P2.outTransition[1].arcType,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],T2.activation.arcType[1],T1.activation.fed[1],T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003454/0.03292, allocations: 337.2 kB / 41.25 MB, free: 5.715 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.253e-05/0.03301, allocations: 31.69 kB / 41.29 MB, free: 5.715 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/0.03436, allocations: 0.8314 MB / 42.12 MB, free: 5.594 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.697e-05/0.0344, allocations: 7.625 kB / 42.12 MB, free: 5.594 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.03441, allocations: 0 / 42.12 MB, free: 5.594 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.03443, allocations: 3.094 kB / 42.13 MB, free: 5.594 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001743/0.03617, allocations: 1.366 MB / 43.49 MB, free: 4.812 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.03619, allocations: 0 / 43.49 MB, free: 4.812 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001492/0.03635, allocations: 36.88 kB / 43.53 MB, free: 4.781 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007922/0.03715, allocations: 264.8 kB / 43.79 MB, free: 4.531 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.268e-05/0.0372, allocations: 13.62 kB / 43.8 MB, free: 4.52 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004431/0.03764, allocations: 0.7676 MB / 44.57 MB, free: 3.742 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.03766, allocations: 32 / 44.57 MB, free: 3.742 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.03893, allocations: 1.164 MB / 45.73 MB, free: 2.57 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 3.762e-05/0.03898, allocations: 100.8 kB / 45.83 MB, free: 2.469 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.683e-05/0.03904, allocations: 25.86 kB / 45.86 MB, free: 2.445 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.03922, allocations: 30.52 kB / 45.89 MB, free: 2.418 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.03938, allocations: 87.89 kB / 45.97 MB, free: 2.332 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.555e-05/0.03942, allocations: 23.33 kB / 45.99 MB, free: 2.312 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0001035/0.03953, allocations: 164.1 kB / 46.15 MB, free: 2.148 MB / 18.57 MB Notification: Performance of sort global known variables: time 1.4e-07/0.03954, allocations: 4 kB / 46.16 MB, free: 2.145 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0004837/0.04003, allocations: 194.7 kB / 46.35 MB, free: 1.98 MB / 18.57 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 (P1.fireOut[1],P2.fireIn[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,P2.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002393/0.04028, allocations: 196 kB / 46.54 MB, free: 1.801 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.0008933/0.04118, allocations: 0.7622 MB / 47.3 MB, free: 1.012 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.04119, allocations: 0 / 47.3 MB, free: 1.012 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0004418/0.04164, allocations: 454.3 kB / 47.75 MB, free: 0.5469 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.04198, allocations: 51.48 kB / 47.8 MB, free: 0.4922 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006802/0.04879, allocations: 1.294 MB / 49.09 MB, free: 5.629 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.04908, allocations: 0.9387 MB / 50.03 MB, free: 4.93 MB / 18.57 MB Notification: Performance of simCode: alias equations: time 0.0001626/0.04925, allocations: 89.53 kB / 50.12 MB, free: 4.93 MB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.128e-05/0.04931, allocations: 30.91 kB / 50.15 MB, free: 4.926 MB / 18.57 MB Notification: Performance of SimCode: time 5.21e-07/0.04931, allocations: 0 / 50.15 MB, free: 4.926 MB / 18.57 MB Notification: Performance of Templates: time 0.01538/0.0647, allocations: 6.598 MB / 56.74 MB, free: 5.082 MB / 18.57 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)