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.008552/0.008552, allocations: 1.365 MB / 16.61 MB, free: 5.148 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.842e-05/1.844e-05, allocations: 0 / 23.66 MB, free: 3.797 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0006997/0.0007401, allocations: 359.9 kB / 24.01 MB, free: 3.484 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test4): time 0.001477/0.00223, allocations: 1.273 MB / 25.29 MB, free: 2.211 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.00379, allocations: 0.8032 MB / 26.09 MB, free: 1.406 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002073/0.004012, allocations: 7.938 kB / 26.1 MB, free: 1.398 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0003154/0.004342, allocations: 91.38 kB / 26.19 MB, free: 1.309 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0008654/0.005222, allocations: 264.5 kB / 26.44 MB, free: 1.051 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.000157/0.005395, allocations: 61.94 kB / 26.5 MB, free: 0.9922 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0004852/0.005894, allocations: 482.6 kB / 26.98 MB, free: 0.5195 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003332/0.006241, allocations: 229.2 kB / 27.2 MB, free: 296 kB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001759/0.006432, allocations: 190.8 kB / 27.39 MB, free: 104 kB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.00671, allocations: 198.6 kB / 27.58 MB, free: 4.551 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 6.236e-05/0.00679, allocations: 20 kB / 27.6 MB, free: 4.531 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005289/0.00733, allocations: 223.6 kB / 27.82 MB, free: 4.312 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.00749, allocations: 107.5 kB / 27.92 MB, free: 4.207 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.0002161/0.007717, allocations: 202.5 kB / 28.12 MB, free: 4.008 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.000761/0.008488, allocations: 0.6503 MB / 28.77 MB, free: 3.355 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.008505, allocations: 7.938 kB / 28.78 MB, free: 3.348 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.333e-06/0.008514, allocations: 4 kB / 28.78 MB, free: 3.344 MB / 18.57 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.008534, allocations: 0 / 28.78 MB, free: 3.344 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.001015/0.009555, allocations: 0.7363 MB / 29.52 MB, free: 2.547 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.009606, allocations: 8.969 kB / 29.53 MB, free: 2.539 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001506/0.009764, allocations: 60.28 kB / 29.59 MB, free: 2.48 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005023/0.01027, allocations: 368 kB / 29.95 MB, free: 2.082 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.02e-05/0.01034, allocations: 53.67 kB / 30 MB, free: 2.027 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.01046, allocations: 64.36 kB / 30.06 MB, free: 1.965 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.01208, allocations: 0.9501 MB / 31.01 MB, free: 0.9961 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.01212, allocations: 3.984 kB / 31.01 MB, free: 0.9922 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.638e-05/0.01219, allocations: 29.77 kB / 31.04 MB, free: 0.9648 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001082/0.01231, allocations: 65.27 kB / 31.11 MB, free: 0.9023 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.01355, allocations: 0.6648 MB / 31.77 MB, free: 240 kB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008855/0.02241, allocations: 1.78 MB / 33.55 MB, free: 6.586 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005386/0.02298, allocations: 478.3 kB / 34.02 MB, free: 6.379 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003036/0.02329, allocations: 276.4 kB / 34.29 MB, free: 6.246 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004051/0.02371, allocations: 0.8647 MB / 35.15 MB, free: 5.27 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.821e-05/0.02374, allocations: 35.56 kB / 35.19 MB, free: 5.23 MB / 18.57 MB Notification: Performance of pre-optimization done (n=33): time 2.925e-06/0.02375, allocations: 0 / 35.19 MB, free: 5.23 MB / 18.57 MB Notification: Performance of matching and sorting (n=33): time 0.001972/0.02572, allocations: 1.163 MB / 36.35 MB, free: 4.309 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.678e-05/0.02579, allocations: 178.2 kB / 36.53 MB, free: 4.098 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.02597, allocations: 267.7 kB / 36.79 MB, free: 3.828 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.02601, allocations: 37.69 kB / 36.82 MB, free: 3.785 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 9.738e-05/0.02611, allocations: 274.3 kB / 37.09 MB, free: 3.523 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 6.038e-05/0.02618, allocations: 110.4 kB / 37.2 MB, free: 3.418 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.808e-05/0.02624, allocations: 69.69 kB / 37.27 MB, free: 3.344 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 5.41e-05/0.0263, allocations: 338.8 kB / 37.6 MB, free: 3.004 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002968/0.0266, allocations: 240.7 kB / 37.83 MB, free: 2.766 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003344/0.02695, allocations: 360.5 kB / 38.19 MB, free: 2.367 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005934/0.02755, allocations: 0.637 MB / 38.82 MB, free: 1.668 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.02756, allocations: 0 / 38.82 MB, free: 1.668 MB / 18.57 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009825/0.02855, allocations: 0.8634 MB / 39.69 MB, free: 0.793 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 5.16e-05/0.02861, allocations: 83.39 kB / 39.77 MB, free: 0.6992 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.02863, allocations: 0 / 39.77 MB, free: 0.6992 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001083/0.02972, allocations: 304.9 kB / 40.06 MB, free: 408 kB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.02988, allocations: 51.92 kB / 40.12 MB, free: 356 kB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005572/0.03546, allocations: 0.7305 MB / 40.85 MB, free: 5.98 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.03571, allocations: 69.77 kB / 40.91 MB, free: 5.98 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-05/0.03577, allocations: 29.55 kB / 40.94 MB, free: 5.98 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 (P1.emptying,$PRE.P1.fireOut[1],P2.outTransition[1].arcType,P1.outTransition[1].arcType,T1.activation.fed[1],T2.activation.arcType[1],T1.activation.arcType[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,T2.activation.fed[1],P2.fireOut[1],$PRE.P2.fireOut[1],P2.fireIn[1],$PRE.P2.fireIn[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T1.activation.emptied[1],P1.fireOut[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.0003042/0.03608, allocations: 342.7 kB / 41.28 MB, free: 5.801 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.235e-05/0.03615, allocations: 33.06 kB / 41.31 MB, free: 5.801 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001057/0.03721, allocations: 0.8167 MB / 42.13 MB, free: 5.68 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.1e-05/0.03725, allocations: 9.062 kB / 42.14 MB, free: 5.68 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.03726, allocations: 7.062 kB / 42.14 MB, free: 5.68 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.03727, allocations: 3.75 kB / 42.15 MB, free: 5.68 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001363/0.03863, allocations: 1.373 MB / 43.52 MB, free: 4.93 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.03865, allocations: 2.516 kB / 43.52 MB, free: 4.93 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.03877, allocations: 35.08 kB / 43.56 MB, free: 4.898 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006157/0.03939, allocations: 256.5 kB / 43.81 MB, free: 4.652 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.969e-05/0.03943, allocations: 16.8 kB / 43.82 MB, free: 4.637 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004204/0.03986, allocations: 0.7684 MB / 44.59 MB, free: 3.855 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.03987, allocations: 0 / 44.59 MB, free: 3.855 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.04106, allocations: 1.158 MB / 45.75 MB, free: 2.691 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 3.416e-05/0.04111, allocations: 107.8 kB / 45.85 MB, free: 2.582 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.225e-05/0.04117, allocations: 15.47 kB / 45.87 MB, free: 2.57 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.04133, allocations: 42.97 kB / 45.91 MB, free: 2.531 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.04148, allocations: 79.91 kB / 45.99 MB, free: 2.453 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.391e-05/0.04152, allocations: 26.95 kB / 46.02 MB, free: 2.43 MB / 18.57 MB Notification: Performance of sorting global known variables: time 9.598e-05/0.04163, allocations: 167.7 kB / 46.18 MB, free: 2.266 MB / 18.57 MB Notification: Performance of sort global known variables: time 1.2e-07/0.04163, allocations: 0 / 46.18 MB, free: 2.266 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0004522/0.04209, allocations: 200.4 kB / 46.38 MB, free: 2.086 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.0002821/0.04238, allocations: 190.2 kB / 46.56 MB, free: 1.91 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.0009213/0.04331, allocations: 0.7617 MB / 47.32 MB, free: 1.125 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.04332, allocations: 0 / 47.32 MB, free: 1.125 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0004664/0.0438, allocations: 461.3 kB / 47.77 MB, free: 0.6562 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.04415, allocations: 44.59 kB / 47.82 MB, free: 0.6055 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007447/0.0516, allocations: 1.28 MB / 49.1 MB, free: 5.66 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000368/0.052, allocations: 0.9437 MB / 50.04 MB, free: 4.961 MB / 18.57 MB Notification: Performance of simCode: alias equations: time 0.000179/0.05219, allocations: 90.16 kB / 50.13 MB, free: 4.961 MB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.349e-05/0.05226, allocations: 26.56 kB / 50.15 MB, free: 4.957 MB / 18.57 MB Notification: Performance of SimCode: time 9.32e-07/0.05227, allocations: 1.188 kB / 50.16 MB, free: 4.957 MB / 18.57 MB Notification: Performance of Templates: time 0.01716/0.06943, allocations: 6.621 MB / 56.78 MB, free: 5.113 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)