Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SingleTD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004342/0.004342, allocations: 171.2 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.191/1.191, allocations: 205.4 MB / 221.3 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007781/0.0007782, allocations: 98.86 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.0618/0.0618, allocations: 16.89 MB / 334.7 MB, free: 5.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002707/0.0002708, allocations: 16.5 kB / 397 MB, free: 46.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06464/0.06493, allocations: 51.68 MB / 448.7 MB, free: 132 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08331/0.1483, allocations: 77.05 MB / 0.5134 GB, free: 2.969 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001787/0.1485, allocations: 67.97 kB / 0.5135 GB, free: 2.902 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004134/0.1526, allocations: 1.907 MB / 0.5154 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1527, allocations: 0 / 0.5154 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.916e-06/0.1527, allocations: 4 kB / 0.5154 GB, free: 0.9766 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0003876/0.1531, allocations: 432.9 kB / 0.5158 GB, free: 0.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.1531, allocations: 8.031 kB / 0.5158 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.962e-05/0.1532, allocations: 38.56 kB / 0.5158 GB, free: 456 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.253e-05/0.1532, allocations: 11.81 kB / 0.5158 GB, free: 444 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001857/0.1534, allocations: 199.4 kB / 0.516 GB, free: 204 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.1534, allocations: 12 kB / 0.516 GB, free: 192 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.1534, allocations: 8 kB / 0.5161 GB, free: 184 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.1537, allocations: 142 kB / 0.5162 GB, free: 20 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.1537, allocations: 0 / 0.5162 GB, free: 20 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.1537, allocations: 3.984 kB / 0.5162 GB, free: 16 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.1537, allocations: 8 kB / 0.5162 GB, free: 8 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1315/0.2852, allocations: 59.83 kB / 0.5163 GB, free: 80.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005068/0.2858, allocations: 0.7424 MB / 0.517 GB, free: 79.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001492/0.2859, allocations: 86.48 kB / 0.5171 GB, free: 79.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.286, allocations: 1.312 kB / 0.5171 GB, free: 79.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001217/0.2861, allocations: 92.08 kB / 0.5172 GB, free: 79.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.923e-06/0.2861, allocations: 0 / 0.5172 GB, free: 79.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002751/0.2864, allocations: 144 kB / 0.5173 GB, free: 79.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.933e-05/0.2864, allocations: 109.4 kB / 0.5174 GB, free: 79.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.728e-05/0.2865, allocations: 155.8 kB / 0.5175 GB, free: 79.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.2865, allocations: 29.58 kB / 0.5176 GB, free: 79.51 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.371e-05/0.2866, allocations: 118.2 kB / 0.5177 GB, free: 79.42 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.2866, allocations: 17.39 kB / 0.5177 GB, free: 79.41 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-06/0.2866, allocations: 7.531 kB / 0.5177 GB, free: 79.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.139e-05/0.2867, allocations: 333.4 kB / 0.518 GB, free: 79.1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.596e-05/0.2867, allocations: 27.02 kB / 0.5181 GB, free: 79.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.098e-05/0.2868, allocations: 79.09 kB / 0.5181 GB, free: 79.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.266e-05/0.2869, allocations: 67.02 kB / 0.5182 GB, free: 79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2869, allocations: 0 / 0.5182 GB, free: 79 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002268/0.2871, allocations: 178.6 kB / 0.5184 GB, free: 78.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.2872, allocations: 31.14 kB / 0.5184 GB, free: 78.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.2872, allocations: 8.516 kB / 0.5184 GB, free: 78.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.2872, allocations: 6.531 kB / 0.5184 GB, free: 78.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.762e-05/0.2873, allocations: 15.08 kB / 0.5184 GB, free: 78.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.2873, allocations: 3.438 kB / 0.5184 GB, free: 78.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.135e-05/0.2874, allocations: 20.98 kB / 0.5184 GB, free: 78.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.2874, allocations: 4.125 kB / 0.5184 GB, free: 78.89 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = true protected = true ) "next putative firing time" type: Real T1.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$PRE.T1.firingTime,T1.firingTime,$PRE.T1.delayPassed,T1.delayPassed,T1.activation.active,T1.active,$PRE.T1.fireTime,T1.fireTime,$PRE.T1.ani,T1.ani,T1.firingCon,T1.enabledByInPlaces,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * 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.000115/0.2875, allocations: 165.3 kB / 0.5186 GB, free: 78.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.816e-05/0.2875, allocations: 11.41 kB / 0.5186 GB, free: 78.74 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.786e-05/0.2876, allocations: 16.03 kB / 0.5186 GB, free: 78.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.2876, allocations: 6.109 kB / 0.5186 GB, free: 78.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2876, allocations: 3.094 kB / 0.5186 GB, free: 78.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.2876, allocations: 1.031 kB / 0.5186 GB, free: 78.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002566/0.2879, allocations: 385 kB / 0.519 GB, free: 78.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2879, allocations: 0 / 0.519 GB, free: 78.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.233e-05/0.2879, allocations: 10.41 kB / 0.519 GB, free: 78.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.2879, allocations: 5.359 kB / 0.519 GB, free: 78.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.2879, allocations: 4.75 kB / 0.519 GB, free: 78.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2879, allocations: 1.281 kB / 0.519 GB, free: 78.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2879, allocations: 1.156 kB / 0.519 GB, free: 78.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001832/0.2881, allocations: 247.5 kB / 0.5193 GB, free: 78.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.489e-05/0.2882, allocations: 91.88 kB / 0.5194 GB, free: 78.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.2882, allocations: 2.094 kB / 0.5194 GB, free: 78.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.792e-05/0.2883, allocations: 7.656 kB / 0.5194 GB, free: 78.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.464e-05/0.2883, allocations: 11.58 kB / 0.5194 GB, free: 78.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.904e-06/0.2883, allocations: 3.875 kB / 0.5194 GB, free: 78.08 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.014e-05/0.2884, allocations: 124 kB / 0.5195 GB, free: 78 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2884, allocations: 0.6562 kB / 0.5195 GB, free: 78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002309/0.2886, allocations: 22.31 kB / 0.5195 GB, free: 78 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (T1.fireTime,T1.ani,T1.active,$whenCondition1,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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.0003114/0.289, allocations: 0.8493 MB / 0.5203 GB, free: 77.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001944/0.2892, allocations: 143 kB / 0.5205 GB, free: 77.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2892, allocations: 0 / 0.5205 GB, free: 77.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.414e-05/0.2893, allocations: 88.27 kB / 0.5206 GB, free: 77.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001602/0.2894, allocations: 12.86 kB / 0.5206 GB, free: 77.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.2904, allocations: 1.803 MB / 0.5223 GB, free: 75.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001077/0.2906, allocations: 0.7053 MB / 0.523 GB, free: 74.85 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.824e-05/0.2906, allocations: 12.17 kB / 0.523 GB, free: 74.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.619e-05/0.2907, allocations: 37.92 kB / 0.5231 GB, free: 74.84 MB / 362.7 MB Notification: Performance of SimCode: time 7.42e-07/0.2907, allocations: 0 / 0.5231 GB, free: 74.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0123/0.303, allocations: 2.09 MB / 0.5251 GB, free: 74.59 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001167/0.3032, allocations: 160.7 kB / 0.5253 GB, free: 74.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.38/1.683, allocations: 1.188 kB / 0.5253 GB, free: 74.34 MB / 362.7 MB (rm -f PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.SingleTD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.SingleTD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PNlib_PNlib.Examples.DisTest.SingleTD_res.mat --tempDir=temp_PNlib_PNlib_Examples_DisTest_SingleTD_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_DisTest_SingleTD.fmu > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PNlib_PNlib.Examples.DisTest.SingleTD_res.mat does not exist to compare? outputFormat=mat