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.00515/0.00515, allocations: 1.357 MB / 17.29 MB, free: 4.527 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.37e-05/1.38e-05, allocations: 0 / 24.36 MB, free: 3.105 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0005705/0.0005998, allocations: 366.6 kB / 24.71 MB, free: 2.773 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test4): time 0.001043/0.001651, allocations: 1.242 MB / 25.96 MB, free: 1.527 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.002671, allocations: 0.7866 MB / 26.74 MB, free: 0.7383 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.002806, allocations: 8.75 kB / 26.75 MB, free: 0.7305 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0001944/0.003008, allocations: 91.38 kB / 26.84 MB, free: 0.6406 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0005544/0.003571, allocations: 274.2 kB / 27.11 MB, free: 384 kB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 9.686e-05/0.003679, allocations: 51.95 kB / 27.16 MB, free: 332 kB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0003848/0.004071, allocations: 486.6 kB / 27.63 MB, free: 4.492 MB / 18.57 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002925/0.004373, allocations: 229.6 kB / 27.86 MB, free: 4.258 MB / 18.57 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.004553, allocations: 190.8 kB / 28.04 MB, free: 4.07 MB / 18.57 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.004777, allocations: 198.6 kB / 28.24 MB, free: 3.875 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 4.436e-05/0.004828, allocations: 20 kB / 28.26 MB, free: 3.855 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003038/0.005139, allocations: 219.6 kB / 28.47 MB, free: 3.641 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.005261, allocations: 111.5 kB / 28.58 MB, free: 3.531 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.0001846/0.005454, allocations: 236.2 kB / 28.81 MB, free: 3.293 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.0004797/0.00594, allocations: 0.4952 MB / 29.31 MB, free: 2.797 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.005952, allocations: 0 / 29.31 MB, free: 2.797 MB / 18.57 MB Notification: Performance of FrontEnd: time 6.92e-07/0.005958, allocations: 0 / 29.31 MB, free: 2.797 MB / 18.57 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.005969, allocations: 0 / 29.31 MB, free: 2.797 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.0008698/0.006844, allocations: 0.7363 MB / 30.04 MB, free: 2 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.006893, allocations: 12.97 kB / 30.06 MB, free: 1.988 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.007001, allocations: 64.28 kB / 30.12 MB, free: 1.926 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000427/0.007434, allocations: 368 kB / 30.48 MB, free: 1.527 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.713e-05/0.00749, allocations: 53.67 kB / 30.53 MB, free: 1.473 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.354e-05/0.00759, allocations: 72.36 kB / 30.6 MB, free: 1.402 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.008913, allocations: 0.9384 MB / 31.54 MB, free: 456 kB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.008938, allocations: 0 / 31.54 MB, free: 456 kB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.599e-05/0.009001, allocations: 33.77 kB / 31.57 MB, free: 424 kB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.835e-05/0.009096, allocations: 61.27 kB / 31.63 MB, free: 364 kB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006465/0.01557, allocations: 0.6622 MB / 32.3 MB, free: 7.426 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.01747, allocations: 1.782 MB / 34.08 MB, free: 6.574 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005426/0.01803, allocations: 479.6 kB / 34.55 MB, free: 6.281 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/0.01833, allocations: 288.3 kB / 34.83 MB, free: 6.145 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004388/0.01878, allocations: 0.8577 MB / 35.68 MB, free: 5.156 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.01881, allocations: 43.75 kB / 35.73 MB, free: 5.105 MB / 18.57 MB Notification: Performance of pre-optimization done (n=33): time 1.963e-06/0.01882, allocations: 0 / 35.73 MB, free: 5.105 MB / 18.57 MB Notification: Performance of matching and sorting (n=33): time 0.002039/0.02087, allocations: 1.152 MB / 36.88 MB, free: 3.918 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.053e-05/0.02094, allocations: 182.2 kB / 37.06 MB, free: 3.703 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.02113, allocations: 267.8 kB / 37.32 MB, free: 3.43 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 3.059e-05/0.02117, allocations: 33.7 kB / 37.35 MB, free: 3.391 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.02129, allocations: 285.1 kB / 37.63 MB, free: 3.117 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 6.343e-05/0.02136, allocations: 102.7 kB / 37.73 MB, free: 3.02 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/0.02139, allocations: 12 kB / 37.74 MB, free: 3.008 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 6.783e-05/0.02146, allocations: 342.8 kB / 38.08 MB, free: 2.664 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000307/0.02177, allocations: 248.7 kB / 38.32 MB, free: 2.418 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003393/0.02212, allocations: 348.5 kB / 38.66 MB, free: 2.031 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006101/0.02274, allocations: 0.637 MB / 39.3 MB, free: 1.332 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.02275, allocations: 4 kB / 39.3 MB, free: 1.328 MB / 18.57 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009972/0.02376, allocations: 0.864 MB / 40.16 MB, free: 464 kB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 5.556e-05/0.02382, allocations: 83.38 kB / 40.25 MB, free: 368 kB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/0.02384, allocations: 0 / 40.25 MB, free: 368 kB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.02499, allocations: 304.5 kB / 40.54 MB, free: 60 kB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.02516, allocations: 55.91 kB / 40.6 MB, free: 4 kB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006982/0.03215, allocations: 0.7318 MB / 41.33 MB, free: 5.844 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.03245, allocations: 67.42 kB / 41.4 MB, free: 5.844 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.578e-05/0.03251, allocations: 27.62 kB / 41.42 MB, free: 5.844 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.0003642/0.03288, allocations: 337.7 kB / 41.75 MB, free: 5.664 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.935e-05/0.03295, allocations: 32.22 kB / 41.78 MB, free: 5.664 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/0.03411, allocations: 0.8229 MB / 42.61 MB, free: 5.543 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.368e-05/0.03414, allocations: 10.33 kB / 42.62 MB, free: 5.543 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.03415, allocations: 0 / 42.62 MB, free: 5.543 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.03416, allocations: 8.5 kB / 42.63 MB, free: 5.543 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001451/0.03562, allocations: 1.377 MB / 44 MB, free: 4.801 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.03564, allocations: 3.375 kB / 44.01 MB, free: 4.801 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.03576, allocations: 23.98 kB / 44.03 MB, free: 4.777 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006542/0.03643, allocations: 255 kB / 44.28 MB, free: 4.531 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.633e-05/0.03647, allocations: 19.27 kB / 44.3 MB, free: 4.516 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004538/0.03693, allocations: 0.7726 MB / 45.07 MB, free: 3.734 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.03695, allocations: 0 / 45.07 MB, free: 3.734 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.03822, allocations: 1.16 MB / 46.23 MB, free: 2.566 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 4.355e-05/0.03828, allocations: 104.6 kB / 46.33 MB, free: 2.457 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.629e-05/0.03834, allocations: 16 kB / 46.35 MB, free: 2.441 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001983/0.03854, allocations: 37.3 kB / 46.38 MB, free: 2.406 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.03872, allocations: 84.19 kB / 46.47 MB, free: 2.328 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.869e-05/0.03877, allocations: 23.98 kB / 46.49 MB, free: 2.305 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0001176/0.03889, allocations: 164.1 kB / 46.65 MB, free: 2.141 MB / 18.57 MB Notification: Performance of sort global known variables: time 1.5e-07/0.0389, allocations: 0 / 46.65 MB, free: 2.141 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0005018/0.03941, allocations: 202.9 kB / 46.85 MB, free: 1.969 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.0002918/0.03971, allocations: 193 kB / 47.04 MB, free: 1.789 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.0009231/0.04064, allocations: 0.7603 MB / 47.8 MB, free: 1.004 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.04065, allocations: 2.469 kB / 47.8 MB, free: 1.004 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.000444/0.0411, allocations: 453.6 kB / 48.24 MB, free: 0.5391 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003471/0.04146, allocations: 45.45 kB / 48.29 MB, free: 500 kB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008452/0.04992, allocations: 1.318 MB / 49.6 MB, free: 5.578 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.05039, allocations: 0.9173 MB / 50.52 MB, free: 11.27 MB / 24.96 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.566e-05/0.05049, allocations: 37 kB / 50.56 MB, free: 11.26 MB / 24.96 MB Notification: Performance of SimCode: time 1.263e-06/0.05051, allocations: 0 / 50.56 MB, free: 11.26 MB / 24.96 MB Notification: Performance of Templates: time 0.01003/0.06054, allocations: 9.213 MB / 59.77 MB, free: 3.391 MB / 24.96 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)