Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test5.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: "" <> buildModelFMU(ConPNlib.Examples.Test5,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test5,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.007853/0.007853, allocations: 1.365 MB / 16.64 MB, free: 5.164 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 2.07e-05/2.083e-05, allocations: 4 kB / 23.81 MB, free: 3.656 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.001033/0.00108, allocations: 360.5 kB / 24.16 MB, free: 3.316 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test5): time 0.001403/0.002496, allocations: 1.017 MB / 25.17 MB, free: 2.301 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.003957, allocations: 0.6939 MB / 25.87 MB, free: 1.609 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001743/0.004145, allocations: 7.938 kB / 25.88 MB, free: 1.602 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.004384, allocations: 59.59 kB / 25.93 MB, free: 1.543 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.000769/0.005163, allocations: 236.5 kB / 26.17 MB, free: 1.312 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001226/0.0053, allocations: 31.98 kB / 26.2 MB, free: 1.281 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0004062/0.005718, allocations: 339 kB / 26.53 MB, free: 0.9492 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002829/0.006015, allocations: 142.5 kB / 26.67 MB, free: 0.8047 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.006162, allocations: 131.2 kB / 26.79 MB, free: 0.6758 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.006359, allocations: 143 kB / 26.93 MB, free: 0.5352 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 3.999e-05/0.006409, allocations: 12 kB / 26.95 MB, free: 0.5234 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003529/0.00677, allocations: 211.7 kB / 27.15 MB, free: 324 kB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.006887, allocations: 75.62 kB / 27.23 MB, free: 248 kB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.007035, allocations: 168.7 kB / 27.39 MB, free: 72 kB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0007295/0.007773, allocations: 0.4985 MB / 27.89 MB, free: 4.215 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.007789, allocations: 0 / 27.89 MB, free: 4.215 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.813e-06/0.0078, allocations: 0 / 27.89 MB, free: 4.215 MB / 18.57 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.007813, allocations: 0 / 27.89 MB, free: 4.215 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.001009/0.008829, allocations: 0.6017 MB / 28.49 MB, free: 3.555 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 5.795e-05/0.008898, allocations: 14.09 kB / 28.51 MB, free: 3.543 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001351/0.009041, allocations: 79.97 kB / 28.58 MB, free: 3.457 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.009172, allocations: 48.45 kB / 28.63 MB, free: 3.41 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005073/0.009691, allocations: 303.7 kB / 28.93 MB, free: 3.074 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.848e-05/0.009761, allocations: 37.36 kB / 28.96 MB, free: 3.039 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-05/0.00987, allocations: 48.36 kB / 29.01 MB, free: 2.992 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.01124, allocations: 0.6369 MB / 29.65 MB, free: 2.336 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.01127, allocations: 3.938 kB / 29.65 MB, free: 2.332 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.595e-05/0.01135, allocations: 31.97 kB / 29.68 MB, free: 2.301 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.373e-05/0.01145, allocations: 32.98 kB / 29.72 MB, free: 2.27 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.01248, allocations: 463.6 kB / 30.17 MB, free: 1.816 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002662/0.01515, allocations: 1.508 MB / 31.68 MB, free: 180 kB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01031/0.02548, allocations: 237.7 kB / 31.91 MB, free: 7.359 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004434/0.02597, allocations: 189.9 kB / 32.09 MB, free: 7.352 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004616/0.02644, allocations: 0.5926 MB / 32.69 MB, free: 6.695 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.02649, allocations: 33.12 kB / 32.72 MB, free: 6.656 MB / 18.57 MB Notification: Performance of pre-optimization done (n=23): time 3.326e-06/0.0265, allocations: 3.625 kB / 32.72 MB, free: 6.656 MB / 18.57 MB Notification: Performance of matching and sorting (n=23): time 0.001328/0.02784, allocations: 0.5527 MB / 33.28 MB, free: 6.59 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.365e-05/0.02792, allocations: 143.8 kB / 33.42 MB, free: 6.434 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002839/0.02822, allocations: 224 kB / 33.63 MB, free: 6.324 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/0.02827, allocations: 33.05 kB / 33.67 MB, free: 6.293 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/0.02845, allocations: 210.8 kB / 33.87 MB, free: 6.16 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 8.147e-05/0.02855, allocations: 81.19 kB / 33.95 MB, free: 6.117 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/0.02858, allocations: 3.938 kB / 33.96 MB, free: 6.117 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.02869, allocations: 337.5 kB / 34.29 MB, free: 5.805 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.02904, allocations: 160.4 kB / 34.44 MB, free: 5.797 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004132/0.02947, allocations: 252.5 kB / 34.69 MB, free: 5.703 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000696/0.03018, allocations: 411.4 kB / 35.09 MB, free: 5.477 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.0302, allocations: 3.469 kB / 35.09 MB, free: 5.477 MB / 18.57 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0009895/0.03119, allocations: 0.5511 MB / 35.64 MB, free: 5.035 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 5.707e-05/0.03126, allocations: 49.44 kB / 35.69 MB, free: 4.984 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.03128, allocations: 4 kB / 35.7 MB, free: 4.98 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.03131, allocations: 4 kB / 35.7 MB, free: 4.977 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.03156, allocations: 47.91 kB / 35.75 MB, free: 4.93 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.03159, allocations: 4 kB / 35.75 MB, free: 4.926 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/0.03181, allocations: 51.7 kB / 35.8 MB, free: 4.875 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.582e-05/0.03188, allocations: 19.98 kB / 35.82 MB, free: 4.855 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.P1.fireOut[1],P1.emptying,$PRE.P2.fireIn[1],P2.feeding,P1.outTransition[1].arcType,P1.fireOut[1],P2.fireIn[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.arcType[1],T1.activation.emptied[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 (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.0003177/0.0322, allocations: 246.7 kB / 36.06 MB, free: 4.602 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.449e-05/0.03228, allocations: 23.94 kB / 36.09 MB, free: 4.578 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009316/0.03322, allocations: 497.6 kB / 36.57 MB, free: 4.09 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.487e-05/0.03326, allocations: 4 kB / 36.58 MB, free: 4.086 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.03327, allocations: 0 / 36.58 MB, free: 4.086 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.03329, allocations: 0 / 36.58 MB, free: 4.086 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.03469, allocations: 0.9419 MB / 37.52 MB, free: 3.094 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.03471, allocations: 3.938 kB / 37.52 MB, free: 3.09 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/0.03491, allocations: 31.98 kB / 37.55 MB, free: 3.059 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/0.03492, allocations: 0 / 37.55 MB, free: 3.059 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.03497, allocations: 15.98 kB / 37.57 MB, free: 3.043 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.03498, allocations: 0 / 37.57 MB, free: 3.043 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.03499, allocations: 4 kB / 37.57 MB, free: 3.039 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.03619, allocations: 0.7352 MB / 38.31 MB, free: 2.281 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 5.152e-05/0.03626, allocations: 97.75 kB / 38.4 MB, free: 2.168 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.885e-05/0.03633, allocations: 12 kB / 38.41 MB, free: 2.156 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.03654, allocations: 27.97 kB / 38.44 MB, free: 2.129 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.03673, allocations: 62.25 kB / 38.5 MB, free: 2.07 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.673e-05/0.03678, allocations: 11.98 kB / 38.51 MB, free: 2.059 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0001164/0.03691, allocations: 145.2 kB / 38.66 MB, free: 1.918 MB / 18.57 MB Notification: Performance of sort global known variables: time 2.1e-07/0.03691, allocations: 0 / 38.66 MB, free: 1.918 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0006635/0.03759, allocations: 158.1 kB / 38.81 MB, free: 1.773 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 (23): * Single equations (assignments): 20 * 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.001592/0.03919, allocations: 1.355 MB / 40.17 MB, free: 416 kB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.01176/0.05096, allocations: 488 kB / 40.64 MB, free: 6.277 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/0.05101, allocations: 0 / 40.64 MB, free: 6.277 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0005543/0.05157, allocations: 276.6 kB / 40.91 MB, free: 6.215 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005182/0.0521, allocations: 40.56 kB / 40.95 MB, free: 6.211 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005237/0.05735, allocations: 3.516 MB / 44.47 MB, free: 4.285 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.05768, allocations: 0.8532 MB / 45.32 MB, free: 3.414 MB / 18.57 MB Notification: Performance of simCode: alias equations: time 0.0002961/0.05799, allocations: 106.1 kB / 45.43 MB, free: 3.316 MB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002272/0.05822, allocations: 134.4 kB / 45.56 MB, free: 3.188 MB / 18.57 MB Notification: Performance of SimCode: time 1.212e-06/0.05823, allocations: 0 / 45.56 MB, free: 3.188 MB / 18.57 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03548/0.09372, allocations: 6.61 MB / 52.17 MB, free: 3.145 MB / 18.57 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/0.09393, allocations: 153 kB / 52.32 MB, free: 2.895 MB / 18.57 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.036/2.13, allocations: 3.469 kB / 52.32 MB, free: 2.895 MB / 18.57 MB (rm -f ConPNlib_ConPNlib.Examples.Test5.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test5.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test5.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test5_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test5.fmu > ConPNlib_ConPNlib.Examples.Test5.pipe 2>&1)