Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test2.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.Test2,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test2,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.00864/0.00864, allocations: 1.362 MB / 16.61 MB, free: 5.148 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.559e-05/1.562e-05, allocations: 0 / 23.76 MB, free: 3.723 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0006469/0.0006833, allocations: 360.9 kB / 24.11 MB, free: 3.383 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test2): time 0.0008148/0.001509, allocations: 0.7596 MB / 24.87 MB, free: 2.629 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.0007897/0.00231, allocations: 0.5984 MB / 25.47 MB, free: 2.031 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.048e-05/0.002402, allocations: 0 / 25.47 MB, free: 2.031 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0001721/0.002582, allocations: 47.66 kB / 25.51 MB, free: 1.984 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0004429/0.003032, allocations: 188.3 kB / 25.7 MB, free: 1.801 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 6.371e-05/0.003107, allocations: 30.05 kB / 25.73 MB, free: 1.773 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0001746/0.00329, allocations: 215.4 kB / 25.94 MB, free: 1.562 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.003427, allocations: 78.66 kB / 26.01 MB, free: 1.48 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 7.535e-05/0.003509, allocations: 87.5 kB / 26.1 MB, free: 1.395 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001132/0.00363, allocations: 83.38 kB / 26.18 MB, free: 1.312 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 2.372e-05/0.00366, allocations: 8 kB / 26.19 MB, free: 1.305 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001663/0.003832, allocations: 139.7 kB / 26.32 MB, free: 1.168 MB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 5.428e-05/0.003895, allocations: 47.77 kB / 26.37 MB, free: 1.121 MB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 5.784e-05/0.003959, allocations: 91.41 kB / 26.46 MB, free: 1.031 MB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0002283/0.004193, allocations: 299.2 kB / 26.75 MB, free: 0.7383 MB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.004202, allocations: 0 / 26.75 MB, free: 0.7383 MB / 13.93 MB Notification: Performance of FrontEnd: time 8.11e-07/0.004208, allocations: 0 / 26.75 MB, free: 0.7383 MB / 13.93 MB Notification: Performance of Transformations before backend: time 3.646e-06/0.004217, allocations: 0 / 26.75 MB, free: 0.7383 MB / 13.93 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0004266/0.004648, allocations: 0.4962 MB / 27.25 MB, free: 192 kB / 13.93 MB Notification: Performance of prepare preOptimizeDAE: time 7.289e-05/0.004729, allocations: 11.78 kB / 27.26 MB, free: 184 kB / 13.93 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.999e-05/0.004789, allocations: 58.73 kB / 27.32 MB, free: 116 kB / 13.93 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.777e-05/0.004842, allocations: 24.73 kB / 27.34 MB, free: 92 kB / 13.93 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/0.005078, allocations: 247.9 kB / 27.58 MB, free: 4.461 MB / 18.58 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.005114, allocations: 20.92 kB / 27.6 MB, free: 4.441 MB / 18.58 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.367e-05/0.005163, allocations: 32.36 kB / 27.64 MB, free: 4.41 MB / 18.58 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005269/0.005695, allocations: 360.1 kB / 27.99 MB, free: 4.043 MB / 18.58 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.005719, allocations: 7.938 kB / 28 MB, free: 4.035 MB / 18.58 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.421e-05/0.005749, allocations: 8 kB / 28 MB, free: 4.027 MB / 18.58 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.129e-05/0.005796, allocations: 28.48 kB / 28.03 MB, free: 4 MB / 18.58 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000373/0.006175, allocations: 247.6 kB / 28.27 MB, free: 3.762 MB / 18.58 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.007209, allocations: 0.8601 MB / 29.13 MB, free: 2.812 MB / 18.58 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002863/0.007509, allocations: 162.5 kB / 29.29 MB, free: 2.645 MB / 18.58 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.007663, allocations: 100.8 kB / 29.39 MB, free: 2.543 MB / 18.58 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002822/0.007955, allocations: 429.5 kB / 29.81 MB, free: 2.031 MB / 18.58 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.00799, allocations: 34.56 kB / 29.84 MB, free: 1.988 MB / 18.58 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.007998, allocations: 0 / 29.84 MB, free: 1.988 MB / 18.58 MB Notification: Performance of matching and sorting (n=14): time 0.0005854/0.008588, allocations: 342.4 kB / 30.18 MB, free: 1.645 MB / 18.58 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/0.008654, allocations: 114.8 kB / 30.29 MB, free: 1.508 MB / 18.58 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001312/0.008813, allocations: 166.2 kB / 30.45 MB, free: 1.332 MB / 18.58 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.008847, allocations: 33.7 kB / 30.49 MB, free: 1.293 MB / 18.58 MB Notification: Performance of collectInitialEqns (initialization): time 7.945e-05/0.008932, allocations: 152 kB / 30.63 MB, free: 1.137 MB / 18.58 MB Notification: Performance of collectInitialBindings (initialization): time 3.811e-05/0.008976, allocations: 39.45 kB / 30.67 MB, free: 1.098 MB / 18.58 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.562e-05/0.009027, allocations: 33.7 kB / 30.7 MB, free: 1.059 MB / 18.58 MB Notification: Performance of setup shared object (initialization): time 9.088e-05/0.009124, allocations: 334.8 kB / 31.03 MB, free: 0.7227 MB / 18.58 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.009279, allocations: 92.08 kB / 31.12 MB, free: 0.6328 MB / 18.58 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.009467, allocations: 138.3 kB / 31.26 MB, free: 492 kB / 18.58 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003093/0.009786, allocations: 259.6 kB / 31.51 MB, free: 204 kB / 18.58 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.009799, allocations: 0 / 31.51 MB, free: 204 kB / 18.58 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00559/0.01539, allocations: 336.6 kB / 31.84 MB, free: 7.219 MB / 18.58 MB Notification: Performance of prepare postOptimizeDAE: time 4.683e-05/0.01547, allocations: 42.8 kB / 31.88 MB, free: 7.188 MB / 18.58 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.01548, allocations: 1.375 kB / 31.88 MB, free: 7.188 MB / 18.58 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.0155, allocations: 3.188 kB / 31.89 MB, free: 7.188 MB / 18.58 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.01564, allocations: 30.55 kB / 31.92 MB, free: 7.188 MB / 18.58 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.01566, allocations: 5.781 kB / 31.92 MB, free: 7.188 MB / 18.58 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.01578, allocations: 32.83 kB / 31.95 MB, free: 7.188 MB / 18.58 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-05/0.01582, allocations: 18.52 kB / 31.97 MB, free: 7.188 MB / 18.58 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 (P1.emptying,$PRE.P1.fireOut[1],P1.outTransition[1].arcType,T1.activation.fed[1],T1.activation.arcType[1],P1.fireOut[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 20 * Array equations: 1 * 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.000201/0.01603, allocations: 208 kB / 32.17 MB, free: 7.043 MB / 18.58 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.11e-05/0.01607, allocations: 9.688 kB / 32.18 MB, free: 7.043 MB / 18.58 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005285/0.01661, allocations: 327.3 kB / 32.5 MB, free: 6.977 MB / 18.58 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.01663, allocations: 11.52 kB / 32.51 MB, free: 6.977 MB / 18.58 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.01664, allocations: 0 / 32.51 MB, free: 6.977 MB / 18.58 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.01665, allocations: 0.8438 kB / 32.52 MB, free: 6.977 MB / 18.58 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006778/0.01733, allocations: 0.64 MB / 33.16 MB, free: 6.652 MB / 18.58 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.01735, allocations: 1.688 kB / 33.16 MB, free: 6.652 MB / 18.58 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.645e-05/0.01745, allocations: 26.95 kB / 33.18 MB, free: 6.652 MB / 18.58 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.01746, allocations: 0 / 33.18 MB, free: 6.652 MB / 18.58 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.01748, allocations: 15.06 kB / 33.2 MB, free: 6.652 MB / 18.58 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.01749, allocations: 0 / 33.2 MB, free: 6.652 MB / 18.58 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.01749, allocations: 3.938 kB / 33.2 MB, free: 6.648 MB / 18.58 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005469/0.01805, allocations: 492.8 kB / 33.68 MB, free: 6.488 MB / 18.58 MB Notification: Performance of postOpt removeConstants (simulation): time 2.473e-05/0.01808, allocations: 92.95 kB / 33.77 MB, free: 6.395 MB / 18.58 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.313e-05/0.01812, allocations: 11.25 kB / 33.78 MB, free: 6.395 MB / 18.58 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.01823, allocations: 18.31 kB / 33.8 MB, free: 6.395 MB / 18.58 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.815e-05/0.01832, allocations: 36.73 kB / 33.84 MB, free: 6.391 MB / 18.58 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.01835, allocations: 11.56 kB / 33.85 MB, free: 6.391 MB / 18.58 MB Notification: Performance of sorting global known variables: time 5.402e-05/0.01841, allocations: 113 kB / 33.96 MB, free: 6.316 MB / 18.58 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01841, allocations: 3.844 kB / 33.96 MB, free: 6.316 MB / 18.58 MB Notification: Performance of remove unused functions: time 0.0003179/0.01874, allocations: 91.56 kB / 34.05 MB, free: 6.309 MB / 18.58 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (P1.t_) * Number of discrete variables: 4 (T1.activation.active,T1.activation.weaklyInputActiveVec[1],P1.fireOut[1],P1.emptying) * Number of discrete states: 3 (T1.activation.weaklyInputActiveVec[1],T1.activation.active,P1.fireOut[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 1 * 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.0007464/0.01949, allocations: 1.074 MB / 35.13 MB, free: 5.371 MB / 18.58 MB Notification: Performance of simCode: created initialization part: time 0.0003602/0.01986, allocations: 290.1 kB / 35.41 MB, free: 5.078 MB / 18.58 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.01987, allocations: 0 / 35.41 MB, free: 5.078 MB / 18.58 MB Notification: Performance of simCode: created simulation system equations: time 0.0001619/0.02004, allocations: 178.5 kB / 35.59 MB, free: 4.895 MB / 18.58 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.02032, allocations: 25.23 kB / 35.61 MB, free: 4.871 MB / 18.58 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002078/0.02241, allocations: 2.449 MB / 38.06 MB, free: 2.332 MB / 18.58 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001551/0.02257, allocations: 0.7634 MB / 38.82 MB, free: 1.543 MB / 18.58 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.02272, allocations: 82.08 kB / 38.9 MB, free: 1.465 MB / 18.58 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.771e-05/0.02283, allocations: 83.33 kB / 38.98 MB, free: 1.383 MB / 18.58 MB Notification: Performance of SimCode: time 3.4e-07/0.02283, allocations: 0 / 38.98 MB, free: 1.383 MB / 18.58 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02266/0.0455, allocations: 4.246 MB / 43.23 MB, free: 4.445 MB / 18.58 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/0.04568, allocations: 161.2 kB / 43.39 MB, free: 4.191 MB / 18.58 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.898/1.944, allocations: 5.844 kB / 43.39 MB, free: 4.188 MB / 18.58 MB (rm -f ConPNlib_ConPNlib.Examples.Test2.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test2.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test2.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test2.fmu > ConPNlib_ConPNlib.Examples.Test2.pipe 2>&1)