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.01254/0.01254, allocations: 1.34 MB / 8.814 MB, free: 244 kB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 2.1e-05/2.109e-05, allocations: 3.094 kB / 13.23 MB, free: 2.285 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0007367/0.0007882, allocations: 357.7 kB / 13.58 MB, free: 2.254 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.004836/0.005644, allocations: 3.349 MB / 16.93 MB, free: 1.812 MB / 10.45 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001544/0.005849, allocations: 49.91 kB / 16.98 MB, free: 1.766 MB / 10.45 MB Notification: Performance of FrontEnd - DAE generated: time 0.035/0.04087, allocations: 6.869 MB / 23.85 MB, free: 152 kB / 10.45 MB Notification: Performance of FrontEnd: time 1.703e-06/0.04091, allocations: 0 / 23.85 MB, free: 152 kB / 10.45 MB Notification: Performance of Transformations before backend: time 2.391e-05/0.04095, allocations: 8 kB / 23.85 MB, free: 144 kB / 10.45 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.009067/0.05003, allocations: 0.6096 MB / 24.46 MB, free: 240 kB / 10.45 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.0501, allocations: 10.47 kB / 24.47 MB, free: 240 kB / 10.45 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/0.05027, allocations: 42.39 kB / 24.52 MB, free: 220 kB / 10.45 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006406/0.05093, allocations: 326.3 kB / 24.83 MB, free: 3.508 MB / 13.95 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.699e-05/0.05098, allocations: 16.16 kB / 24.85 MB, free: 3.508 MB / 13.95 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.154e-05/0.05108, allocations: 27.53 kB / 24.88 MB, free: 3.508 MB / 13.95 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008709/0.05197, allocations: 388.2 kB / 25.26 MB, free: 3.508 MB / 13.95 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.05317, allocations: 0.5345 MB / 25.79 MB, free: 3.426 MB / 13.95 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.05322, allocations: 0 / 25.79 MB, free: 3.426 MB / 13.95 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.145e-05/0.05329, allocations: 11.2 kB / 25.8 MB, free: 3.422 MB / 13.95 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.963e-05/0.05339, allocations: 32.16 kB / 25.83 MB, free: 3.422 MB / 13.95 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002178/0.05558, allocations: 1.049 MB / 26.88 MB, free: 3.016 MB / 13.95 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003901/0.05601, allocations: 192.9 kB / 27.07 MB, free: 2.992 MB / 13.95 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002873/0.05631, allocations: 159.7 kB / 27.23 MB, free: 2.984 MB / 13.95 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007515/0.05708, allocations: 0.5978 MB / 27.82 MB, free: 2.328 MB / 13.95 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.05714, allocations: 35.94 kB / 27.86 MB, free: 2.289 MB / 13.95 MB Notification: Performance of pre-optimization done (n=23): time 3.697e-06/0.05715, allocations: 0 / 27.86 MB, free: 2.289 MB / 13.95 MB Notification: Performance of matching and sorting (n=23): time 0.0008773/0.05804, allocations: 282.7 kB / 28.14 MB, free: 2.23 MB / 13.95 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.05816, allocations: 150.5 kB / 28.28 MB, free: 2.066 MB / 13.95 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.0584, allocations: 174.2 kB / 28.45 MB, free: 1.941 MB / 13.95 MB Notification: Performance of collectPreVariables (initialization): time 4.241e-05/0.05846, allocations: 31.16 kB / 28.48 MB, free: 1.91 MB / 13.95 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/0.05865, allocations: 207.5 kB / 28.69 MB, free: 1.742 MB / 13.95 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.05877, allocations: 77.09 kB / 28.76 MB, free: 1.688 MB / 13.95 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.726e-05/0.05881, allocations: 2.969 kB / 28.76 MB, free: 1.688 MB / 13.95 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.05896, allocations: 326.8 kB / 29.08 MB, free: 1.367 MB / 13.95 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/0.05927, allocations: 133.8 kB / 29.21 MB, free: 1.316 MB / 13.95 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000406/0.05969, allocations: 227.6 kB / 29.44 MB, free: 1.105 MB / 13.95 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004806/0.06018, allocations: 147.9 kB / 29.58 MB, free: 0.9844 MB / 13.95 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.0602, allocations: 0 / 29.58 MB, free: 0.9844 MB / 13.95 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001083/0.0613, allocations: 385.9 kB / 29.96 MB, free: 0.6523 MB / 13.95 MB Notification: Performance of prepare postOptimizeDAE: time 7.642e-05/0.06139, allocations: 46.66 kB / 30 MB, free: 0.6055 MB / 13.95 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.06142, allocations: 10.88 kB / 30.01 MB, free: 0.5977 MB / 13.95 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.439e-05/0.06145, allocations: 4 kB / 30.02 MB, free: 0.5938 MB / 13.95 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000348/0.06181, allocations: 54.58 kB / 30.07 MB, free: 0.5469 MB / 13.95 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.06184, allocations: 8.156 kB / 30.08 MB, free: 0.543 MB / 13.95 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.06214, allocations: 44.72 kB / 30.12 MB, free: 0.5039 MB / 13.95 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.085e-05/0.06222, allocations: 22.72 kB / 30.15 MB, free: 496 kB / 13.95 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.P1.fireOut[1],P1.emptying,$PRE.P2.fireIn[1],P2.feeding,P1.feeding,P1.outTransition[1].arcType,P2.emptying,P1.fireOut[1],P2.fireIn[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.emptied[1],T1.activation.arcType[1],T1.activation.fed[1],T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002267/0.06246, allocations: 166.5 kB / 30.31 MB, free: 324 kB / 13.95 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008446/0.06332, allocations: 294.7 kB / 30.6 MB, free: 68 kB / 13.95 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.061e-05/0.06341, allocations: 26.34 kB / 30.62 MB, free: 44 kB / 13.95 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/0.07346, allocations: 341.3 kB / 30.95 MB, free: 3.043 MB / 13.95 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.949e-05/0.07353, allocations: 7.719 kB / 30.96 MB, free: 3.043 MB / 13.95 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.07355, allocations: 3.781 kB / 30.97 MB, free: 3.043 MB / 13.95 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.07356, allocations: 0 / 30.97 MB, free: 3.043 MB / 13.95 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/0.07487, allocations: 0.6889 MB / 31.65 MB, free: 2.777 MB / 13.95 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.0749, allocations: 2.875 kB / 31.66 MB, free: 2.777 MB / 13.95 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002871/0.07519, allocations: 42.16 kB / 31.7 MB, free: 2.777 MB / 13.95 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.07521, allocations: 0 / 31.7 MB, free: 2.777 MB / 13.95 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.576e-05/0.07526, allocations: 12.45 kB / 31.71 MB, free: 2.777 MB / 13.95 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.07527, allocations: 2.75 kB / 31.71 MB, free: 2.777 MB / 13.95 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.07528, allocations: 0 / 31.71 MB, free: 2.777 MB / 13.95 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.0764, allocations: 0.5585 MB / 32.27 MB, free: 2.641 MB / 13.95 MB Notification: Performance of postOpt removeConstants (simulation): time 4.735e-05/0.07647, allocations: 96 kB / 32.37 MB, free: 2.547 MB / 13.95 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.446e-05/0.07654, allocations: 13.45 kB / 32.38 MB, free: 2.547 MB / 13.95 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002804/0.07683, allocations: 21.45 kB / 32.4 MB, free: 2.547 MB / 13.95 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/0.07705, allocations: 62.02 kB / 32.46 MB, free: 2.547 MB / 13.95 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.328e-05/0.07712, allocations: 16.97 kB / 32.48 MB, free: 2.547 MB / 13.95 MB Notification: Performance of sorting global known variables: time 9.861e-05/0.07723, allocations: 121.8 kB / 32.6 MB, free: 2.473 MB / 13.95 MB Notification: Performance of sort global known variables: time 3.81e-07/0.07724, allocations: 0 / 32.6 MB, free: 2.473 MB / 13.95 MB Notification: Performance of remove unused functions: time 0.0006943/0.07794, allocations: 162.5 kB / 32.75 MB, free: 2.473 MB / 13.95 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 (P2.fireIn[1],P1.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001637/0.07959, allocations: 1.199 MB / 33.95 MB, free: 1.809 MB / 13.95 MB Notification: Performance of simCode: created initialization part: time 0.0008209/0.08043, allocations: 451.4 kB / 34.39 MB, free: 1.742 MB / 13.95 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.08045, allocations: 0 / 34.39 MB, free: 1.742 MB / 13.95 MB Notification: Performance of simCode: created simulation system equations: time 0.0004103/0.08087, allocations: 252.5 kB / 34.64 MB, free: 1.68 MB / 13.95 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003479/0.08124, allocations: 28.11 kB / 34.67 MB, free: 1.676 MB / 13.95 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.08302, allocations: 0.6965 MB / 35.37 MB, free: 1.18 MB / 13.95 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.08337, allocations: 0.862 MB / 36.23 MB, free: 372 kB / 13.95 MB Notification: Performance of simCode: alias equations: time 0.0003428/0.08373, allocations: 79.95 kB / 36.31 MB, free: 320 kB / 13.95 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002322/0.08397, allocations: 116.7 kB / 36.42 MB, free: 220 kB / 13.95 MB Notification: Performance of SimCode: time 1.153e-06/0.08399, allocations: 0 / 36.42 MB, free: 220 kB / 13.95 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06806/0.1521, allocations: 6.302 MB / 42.72 MB, free: 3.469 MB / 18.6 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002681/0.1524, allocations: 101.2 kB / 42.82 MB, free: 3.371 MB / 18.6 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.702/2.855, allocations: 0 / 42.82 MB, free: 3.371 MB / 18.6 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)