Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test7.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.Test7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test7") translateModel(ConPNlib.Examples.Test7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test7") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.005253/0.005253, allocations: 1.367 MB / 16.61 MB, free: 5.145 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.82e-05/1.822e-05, allocations: 0 / 23.66 MB, free: 3.797 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.000796/0.0008356, allocations: 359.6 kB / 24.01 MB, free: 3.477 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test7): time 0.001472/0.002323, allocations: 1.029 MB / 25.04 MB, free: 2.449 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001589/0.003927, allocations: 0.7098 MB / 25.75 MB, free: 1.738 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001862/0.004129, allocations: 4 kB / 25.75 MB, free: 1.734 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0002378/0.00438, allocations: 67.52 kB / 25.82 MB, free: 1.668 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0006416/0.005033, allocations: 228.6 kB / 26.04 MB, free: 1.445 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 9.955e-05/0.005149, allocations: 38.03 kB / 26.08 MB, free: 1.41 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0003384/0.0055, allocations: 339 kB / 26.41 MB, free: 1.078 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002287/0.005742, allocations: 155 kB / 26.56 MB, free: 0.9219 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000134/0.005888, allocations: 127.2 kB / 26.69 MB, free: 0.7969 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.00605, allocations: 135.1 kB / 26.82 MB, free: 0.6641 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 3.595e-05/0.006097, allocations: 12 kB / 26.83 MB, free: 0.6523 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003575/0.006464, allocations: 207.6 kB / 27.03 MB, free: 460 kB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 8.406e-05/0.006563, allocations: 75.69 kB / 27.11 MB, free: 384 kB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.006698, allocations: 146.9 kB / 27.25 MB, free: 236 kB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0006102/0.00732, allocations: 0.4907 MB / 27.74 MB, free: 4.383 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.007335, allocations: 0 / 27.74 MB, free: 4.383 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.653e-06/0.007348, allocations: 4 kB / 27.75 MB, free: 4.379 MB / 18.57 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.007361, allocations: 0 / 27.75 MB, free: 4.379 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.0008337/0.008202, allocations: 0.6059 MB / 28.35 MB, free: 3.715 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.008242, allocations: 8.969 kB / 28.36 MB, free: 3.707 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.008365, allocations: 40.47 kB / 28.4 MB, free: 3.668 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004359/0.008812, allocations: 311.7 kB / 28.7 MB, free: 3.324 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.613e-05/0.008873, allocations: 29.38 kB / 28.73 MB, free: 3.297 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.822e-05/0.008974, allocations: 48.36 kB / 28.78 MB, free: 3.25 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.01032, allocations: 0.6408 MB / 29.42 MB, free: 2.59 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.01035, allocations: 192 / 29.42 MB, free: 2.59 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.177e-05/0.01042, allocations: 29.7 kB / 29.45 MB, free: 2.562 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.07e-05/0.01052, allocations: 36.97 kB / 29.49 MB, free: 2.527 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.01171, allocations: 467.6 kB / 29.94 MB, free: 2.07 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002668/0.0144, allocations: 1.498 MB / 31.44 MB, free: 452 kB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009191/0.01534, allocations: 356 kB / 31.79 MB, free: 68 kB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008401/0.02376, allocations: 172.7 kB / 31.96 MB, free: 7.5 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005502/0.02433, allocations: 0.5982 MB / 32.56 MB, free: 6.844 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.02437, allocations: 35.33 kB / 32.59 MB, free: 6.805 MB / 18.57 MB Notification: Performance of pre-optimization done (n=22): time 3.126e-06/0.02439, allocations: 0 / 32.59 MB, free: 6.805 MB / 18.57 MB Notification: Performance of matching and sorting (n=22): time 0.001516/0.02592, allocations: 0.5359 MB / 33.13 MB, free: 6.742 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/0.02599, allocations: 143.2 kB / 33.27 MB, free: 6.586 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.02625, allocations: 229.7 kB / 33.49 MB, free: 6.473 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.0263, allocations: 29.27 kB / 33.52 MB, free: 6.441 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.02645, allocations: 218.5 kB / 33.73 MB, free: 6.309 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 7.372e-05/0.02653, allocations: 74.3 kB / 33.8 MB, free: 6.27 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.55e-05/0.02663, allocations: 44.8 kB / 33.85 MB, free: 6.254 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 5.812e-05/0.0267, allocations: 334.6 kB / 34.17 MB, free: 5.941 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004198/0.02713, allocations: 168.1 kB / 34.34 MB, free: 5.938 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004805/0.02763, allocations: 248 kB / 34.58 MB, free: 5.848 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007582/0.02841, allocations: 416.7 kB / 34.99 MB, free: 5.617 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.02843, allocations: 0 / 34.99 MB, free: 5.617 MB / 18.57 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001199/0.02964, allocations: 0.5337 MB / 35.52 MB, free: 5.27 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 5.033e-05/0.02971, allocations: 45.69 kB / 35.57 MB, free: 5.219 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.02973, allocations: 12.27 kB / 35.58 MB, free: 5.207 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.02976, allocations: 4 kB / 35.58 MB, free: 5.203 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002785/0.03005, allocations: 52.66 kB / 35.63 MB, free: 5.152 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.03008, allocations: 4 kB / 35.64 MB, free: 5.148 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000261/0.03035, allocations: 50.86 kB / 35.69 MB, free: 5.102 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-05/0.03042, allocations: 15.98 kB / 35.7 MB, free: 5.086 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 14 (P1.emptying,$PRE.P1.fireOut[1],P2.feeding,$PRE.P2.fireIn[1],P1.outTransition[1].arcType,T1.activation.fed[1],T1.activation.emptied[1],T1.activation.arcType[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,P2.fireIn[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 (36): * Single equations (assignments): 33 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003265/0.03076, allocations: 257.9 kB / 35.95 MB, free: 4.824 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.243e-05/0.03086, allocations: 23.75 kB / 35.98 MB, free: 4.801 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001115/0.03199, allocations: 476.7 kB / 36.44 MB, free: 4.332 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.721e-05/0.03203, allocations: 8 kB / 36.45 MB, free: 4.324 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.03205, allocations: 0 / 36.45 MB, free: 4.324 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.03207, allocations: 4.5 kB / 36.46 MB, free: 4.32 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.03365, allocations: 0.9248 MB / 37.38 MB, free: 3.344 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.03367, allocations: 0 / 37.38 MB, free: 3.344 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002287/0.03391, allocations: 27.98 kB / 37.41 MB, free: 3.316 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.03393, allocations: 6.531 kB / 37.41 MB, free: 3.312 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.408e-05/0.03397, allocations: 11.98 kB / 37.43 MB, free: 3.301 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.03399, allocations: 6.375 kB / 37.43 MB, free: 3.297 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.034, allocations: 0 / 37.43 MB, free: 3.297 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.03545, allocations: 0.7146 MB / 38.15 MB, free: 2.562 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 4.911e-05/0.03551, allocations: 96.89 kB / 38.24 MB, free: 2.449 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.685e-05/0.03558, allocations: 15.98 kB / 38.26 MB, free: 2.434 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.03583, allocations: 24.05 kB / 38.28 MB, free: 2.41 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/0.03604, allocations: 63.92 kB / 38.34 MB, free: 2.348 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.004e-05/0.0361, allocations: 12 kB / 38.35 MB, free: 2.336 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0001364/0.03625, allocations: 137.6 kB / 38.49 MB, free: 2.203 MB / 18.57 MB Notification: Performance of sort global known variables: time 3.7e-07/0.03626, allocations: 0 / 38.49 MB, free: 2.203 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0007294/0.037, allocations: 158.8 kB / 38.64 MB, free: 2.055 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: 7 (P1.fireOut[1],P1.emptying,P2.fireIn[1],P2.feeding,T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1]) * Number of discrete states: 5 (T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,P1.fireOut[1],P2.fireIn[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 19 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003671/0.03738, allocations: 179 kB / 38.82 MB, free: 1.887 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.03842, allocations: 490.1 kB / 39.3 MB, free: 1.398 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.03844, allocations: 0.5 kB / 39.3 MB, free: 1.398 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0004967/0.03895, allocations: 267.2 kB / 39.56 MB, free: 1.125 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005407/0.03951, allocations: 29.17 kB / 39.59 MB, free: 1.098 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.04136, allocations: 0.9253 MB / 40.51 MB, free: 160 kB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01018/0.05156, allocations: 0.8447 MB / 41.36 MB, free: 12.08 MB / 24.96 MB Notification: Performance of simCode: alias equations: time 0.0004534/0.05204, allocations: 112.5 kB / 41.47 MB, free: 12.07 MB / 24.96 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.05222, allocations: 43.28 kB / 41.51 MB, free: 12.06 MB / 24.96 MB Notification: Performance of SimCode: time 6.01e-07/0.05224, allocations: 3.812 kB / 41.51 MB, free: 12.06 MB / 24.96 MB Notification: Performance of Templates: time 0.01246/0.0647, allocations: 4.05 MB / 45.56 MB, free: 9.586 MB / 24.96 MB make -j1 -f ConPNlib_ConPNlib.Examples.Test7.makefile (rm -f ConPNlib_ConPNlib.Examples.Test7.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test7.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test7.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test7.sim & ./ConPNlib_ConPNlib.Examples.Test7 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ConPNlib_ConPNlib.Examples.Test7.pipe 2>&1)