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.005258/0.005258, allocations: 1.358 MB / 17.26 MB, free: 4.43 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.652e-05/1.654e-05, allocations: 0 / 24.31 MB, free: 3.035 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.000662/0.0006971, allocations: 366.7 kB / 24.67 MB, free: 2.707 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test4): time 0.001169/0.001874, allocations: 1.263 MB / 25.93 MB, free: 1.441 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.003007, allocations: 0.8017 MB / 26.73 MB, free: 0.6367 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.003153, allocations: 11.09 kB / 26.74 MB, free: 0.6289 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0002135/0.003374, allocations: 91.38 kB / 26.83 MB, free: 0.5391 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0005523/0.003934, allocations: 271 kB / 27.1 MB, free: 280 kB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 9.633e-05/0.004042, allocations: 55.94 kB / 27.15 MB, free: 224 kB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0003755/0.004426, allocations: 474.6 kB / 27.61 MB, free: 4.398 MB / 18.57 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002791/0.004714, allocations: 240 kB / 27.85 MB, free: 4.156 MB / 18.57 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001809/0.004903, allocations: 194.8 kB / 28.04 MB, free: 3.965 MB / 18.57 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.005101, allocations: 190.7 kB / 28.23 MB, free: 3.777 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 4.358e-05/0.005153, allocations: 20 kB / 28.25 MB, free: 3.758 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002956/0.005454, allocations: 227.6 kB / 28.47 MB, free: 3.535 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.005571, allocations: 107.5 kB / 28.57 MB, free: 3.43 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.005736, allocations: 210.5 kB / 28.78 MB, free: 3.223 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.0004517/0.006194, allocations: 0.4952 MB / 29.27 MB, free: 2.727 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.006203, allocations: 0 / 29.27 MB, free: 2.727 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.042e-06/0.00621, allocations: 0 / 29.27 MB, free: 2.727 MB / 18.57 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.00622, allocations: 0 / 29.27 MB, free: 2.727 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.0008/0.007025, allocations: 0.7363 MB / 30.01 MB, free: 1.93 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.007064, allocations: 11.78 kB / 30.02 MB, free: 1.922 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.007174, allocations: 64.28 kB / 30.08 MB, free: 1.859 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004101/0.00759, allocations: 367.9 kB / 30.44 MB, free: 1.461 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.78e-05/0.007656, allocations: 61.67 kB / 30.5 MB, free: 1.398 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.007766, allocations: 68.36 kB / 30.57 MB, free: 1.332 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.009059, allocations: 0.9423 MB / 31.51 MB, free: 380 kB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.009086, allocations: 0 / 31.51 MB, free: 380 kB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.809e-05/0.00915, allocations: 31.98 kB / 31.54 MB, free: 348 kB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.605e-05/0.009243, allocations: 57.27 kB / 31.6 MB, free: 292 kB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006624/0.01587, allocations: 0.6631 MB / 32.26 MB, free: 5.273 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/0.01803, allocations: 1.777 MB / 34.04 MB, free: 4.625 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005919/0.01864, allocations: 482 kB / 34.51 MB, free: 4.469 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003309/0.01898, allocations: 289.4 kB / 34.79 MB, free: 4.422 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000434/0.01942, allocations: 0.8602 MB / 35.65 MB, free: 3.453 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.01946, allocations: 35.06 kB / 35.69 MB, free: 3.414 MB / 18.57 MB Notification: Performance of pre-optimization done (n=33): time 2.625e-06/0.01947, allocations: 3.875 kB / 35.69 MB, free: 3.414 MB / 18.57 MB Notification: Performance of matching and sorting (n=33): time 0.002135/0.02161, allocations: 1.156 MB / 36.85 MB, free: 2.359 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.441e-05/0.02169, allocations: 178.2 kB / 37.02 MB, free: 2.148 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.02189, allocations: 267.8 kB / 37.28 MB, free: 1.875 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.02192, allocations: 36.91 kB / 37.32 MB, free: 1.836 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.02204, allocations: 276.3 kB / 37.59 MB, free: 1.566 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 6.342e-05/0.02211, allocations: 102.2 kB / 37.69 MB, free: 1.469 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.225e-05/0.02218, allocations: 72.72 kB / 37.76 MB, free: 1.395 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 5.482e-05/0.02224, allocations: 346.8 kB / 38.1 MB, free: 1.047 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003066/0.02255, allocations: 236.7 kB / 38.33 MB, free: 0.8125 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003404/0.0229, allocations: 355.6 kB / 38.68 MB, free: 432 kB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007024/0.02361, allocations: 0.6374 MB / 39.31 MB, free: 5.93 MB / 24.77 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.02362, allocations: 0 / 39.31 MB, free: 5.93 MB / 24.77 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001295/0.02493, allocations: 0.8651 MB / 40.18 MB, free: 5.062 MB / 24.77 MB Notification: Performance of prepare postOptimizeDAE: time 7.037e-05/0.02501, allocations: 79.38 kB / 40.26 MB, free: 4.973 MB / 24.77 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.02503, allocations: 4 kB / 40.26 MB, free: 4.969 MB / 24.77 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/0.02625, allocations: 300.5 kB / 40.55 MB, free: 4.676 MB / 24.77 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.02643, allocations: 51.44 kB / 40.6 MB, free: 4.629 MB / 24.77 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006225/0.02706, allocations: 0.7542 MB / 41.36 MB, free: 3.863 MB / 24.77 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/0.02729, allocations: 59.59 kB / 41.42 MB, free: 3.805 MB / 24.77 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.372e-05/0.02735, allocations: 24 kB / 41.44 MB, free: 3.781 MB / 24.77 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.0003699/0.02773, allocations: 344.8 kB / 41.78 MB, free: 3.43 MB / 24.77 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.816e-05/0.0278, allocations: 35.56 kB / 41.81 MB, free: 3.395 MB / 24.77 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001271/0.02908, allocations: 0.818 MB / 42.63 MB, free: 2.551 MB / 24.77 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.839e-05/0.02912, allocations: 11.98 kB / 42.64 MB, free: 2.539 MB / 24.77 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.02914, allocations: 6.812 kB / 42.65 MB, free: 2.535 MB / 24.77 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.02915, allocations: 0 / 42.65 MB, free: 2.535 MB / 24.77 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.03092, allocations: 1.373 MB / 44.02 MB, free: 1.105 MB / 24.77 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.03094, allocations: 6.438 kB / 44.03 MB, free: 1.102 MB / 24.77 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001264/0.03107, allocations: 27.36 kB / 44.05 MB, free: 1.078 MB / 24.77 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007416/0.03182, allocations: 264.5 kB / 44.31 MB, free: 0.8203 MB / 24.77 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-05/0.03187, allocations: 11.98 kB / 44.32 MB, free: 0.8086 MB / 24.77 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006268/0.0325, allocations: 0.7682 MB / 45.09 MB, free: 20 kB / 24.77 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.03252, allocations: 0 / 45.09 MB, free: 20 kB / 24.77 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007122/0.03965, allocations: 1.143 MB / 46.23 MB, free: 12.01 MB / 24.77 MB Notification: Performance of postOpt removeConstants (simulation): time 7.626e-05/0.03975, allocations: 109.1 kB / 46.34 MB, free: 11.92 MB / 24.77 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.307e-05/0.03982, allocations: 20.98 kB / 46.36 MB, free: 11.92 MB / 24.77 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/0.04, allocations: 43.66 kB / 46.4 MB, free: 11.92 MB / 24.77 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.04017, allocations: 82.97 kB / 46.49 MB, free: 11.92 MB / 24.77 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-05/0.04021, allocations: 15.31 kB / 46.5 MB, free: 11.92 MB / 24.77 MB Notification: Performance of sorting global known variables: time 0.0001142/0.04033, allocations: 177.2 kB / 46.67 MB, free: 11.84 MB / 24.77 MB Notification: Performance of sort global known variables: time 1.1e-07/0.04034, allocations: 2.688 kB / 46.68 MB, free: 11.84 MB / 24.77 MB Notification: Performance of remove unused functions: time 0.0005181/0.04086, allocations: 194.2 kB / 46.87 MB, free: 11.83 MB / 24.77 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.0002486/0.04112, allocations: 189.3 kB / 47.05 MB, free: 11.75 MB / 24.77 MB Notification: Performance of simCode: created initialization part: time 0.0009168/0.04205, allocations: 0.7611 MB / 47.81 MB, free: 11.49 MB / 24.77 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.04206, allocations: 2.938 kB / 47.81 MB, free: 11.49 MB / 24.77 MB Notification: Performance of simCode: created simulation system equations: time 0.0004311/0.0425, allocations: 448.6 kB / 48.25 MB, free: 11.09 MB / 24.77 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.04284, allocations: 48.45 kB / 48.3 MB, free: 11.04 MB / 24.77 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.04429, allocations: 1.314 MB / 49.61 MB, free: 9.852 MB / 24.77 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.04456, allocations: 0.9233 MB / 50.54 MB, free: 8.918 MB / 24.77 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.677e-05/0.04463, allocations: 35.42 kB / 50.57 MB, free: 8.883 MB / 24.77 MB Notification: Performance of SimCode: time 1.012e-06/0.04464, allocations: 0 / 50.57 MB, free: 8.883 MB / 24.77 MB Notification: Performance of Templates: time 0.01478/0.05942, allocations: 9.213 MB / 59.78 MB, free: 10.14 MB / 24.77 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)