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.001739/0.001739, allocations: 174.7 kB / 12.73 MB, free: 2.59 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.504/1.504, allocations: 205.2 MB / 218.5 MB, free: 9.215 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.0007803/0.0007802, allocations: 88.55 kB / 266.6 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.07252/0.07252, allocations: 16.71 MB / 331.4 MB, free: 8.367 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.667e-05/3.668e-05, allocations: 11.94 kB / 391 MB, free: 65.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08519/0.08525, allocations: 51.69 MB / 442.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3367/0.422, allocations: 76.96 MB / 0.5075 GB, free: 10.44 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/0.4223, allocations: 73.75 kB / 0.5076 GB, free: 10.44 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004009/0.4263, allocations: 1.903 MB / 0.5094 GB, free: 9.816 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.4263, allocations: 0 / 0.5094 GB, free: 9.816 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.4263, allocations: 3.875 kB / 0.5094 GB, free: 9.816 MB / 330.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.0003622/0.4267, allocations: 397.8 kB / 0.5098 GB, free: 9.414 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.4268, allocations: 11.53 kB / 0.5098 GB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.916e-05/0.4268, allocations: 50.05 kB / 0.5099 GB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.4269, allocations: 11.78 kB / 0.5099 GB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002127/0.4271, allocations: 198.7 kB / 0.5101 GB, free: 9.145 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.4271, allocations: 7.781 kB / 0.5101 GB, free: 9.145 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.832e-05/0.4271, allocations: 7.781 kB / 0.5101 GB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001793/0.4273, allocations: 126.7 kB / 0.5102 GB, free: 9.047 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.4273, allocations: 3.844 kB / 0.5102 GB, free: 9.047 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.4274, allocations: 3.984 kB / 0.5102 GB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.4274, allocations: 3.844 kB / 0.5102 GB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.4275, allocations: 49.66 kB / 0.5103 GB, free: 9.035 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005735/0.4281, allocations: 0.7463 MB / 0.511 GB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001106/0.4282, allocations: 67.53 kB / 0.5111 GB, free: 8.262 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.105e-05/0.4282, allocations: 37.25 kB / 0.5111 GB, free: 8.234 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.035e-05/0.4282, allocations: 7.625 kB / 0.5111 GB, free: 8.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.258e-05/0.4283, allocations: 74.38 kB / 0.5112 GB, free: 8.164 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.4284, allocations: 0 / 0.5112 GB, free: 8.164 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002017/0.4286, allocations: 117.8 kB / 0.5113 GB, free: 8.086 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.4286, allocations: 106.6 kB / 0.5114 GB, free: 7.961 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.4287, allocations: 160.6 kB / 0.5115 GB, free: 7.852 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.4288, allocations: 25.7 kB / 0.5116 GB, free: 7.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.315e-05/0.4288, allocations: 115.1 kB / 0.5117 GB, free: 7.727 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.118e-05/0.4288, allocations: 31.33 kB / 0.5117 GB, free: 7.707 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.82e-06/0.4289, allocations: 0 / 0.5117 GB, free: 7.707 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.623e-05/0.4289, allocations: 326.6 kB / 0.512 GB, free: 7.391 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.766e-05/0.429, allocations: 23.06 kB / 0.512 GB, free: 7.391 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.726e-05/0.429, allocations: 77.48 kB / 0.5121 GB, free: 7.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.007e-05/0.4291, allocations: 56.8 kB / 0.5122 GB, free: 7.281 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4291, allocations: 4 kB / 0.5122 GB, free: 7.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001765/0.4293, allocations: 176.5 kB / 0.5123 GB, free: 7.18 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.4293, allocations: 35.23 kB / 0.5124 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.4293, allocations: 0 / 0.5124 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.4293, allocations: 3.875 kB / 0.5124 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.062e-05/0.4294, allocations: 15.52 kB / 0.5124 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.4295, allocations: 3.844 kB / 0.5124 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.877e-05/0.4295, allocations: 19.72 kB / 0.5124 GB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.4295, allocations: 7.844 kB / 0.5124 GB, free: 7.133 MB / 330.7 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = false protected = true ) "next putative firing time" type: Real T1.ani:DISCRETE(fixed = false protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = false 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 () * 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.0001047/0.4297, allocations: 161.3 kB / 0.5126 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.697e-05/0.4297, allocations: 15.58 kB / 0.5126 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.065e-05/0.4297, allocations: 12.78 kB / 0.5126 GB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.4297, allocations: 0 / 0.5126 GB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4297, allocations: 7.922 kB / 0.5126 GB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.4297, allocations: 4 kB / 0.5126 GB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002777/0.43, allocations: 389 kB / 0.513 GB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.43, allocations: 0 / 0.513 GB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.078e-05/0.4301, allocations: 4 kB / 0.513 GB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.4301, allocations: 0 / 0.513 GB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.4301, allocations: 7.984 kB / 0.513 GB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.4301, allocations: 0 / 0.513 GB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4301, allocations: 0 / 0.513 GB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.4303, allocations: 238.5 kB / 0.5132 GB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.737e-05/0.4303, allocations: 84.92 kB / 0.5133 GB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.4303, allocations: 7.938 kB / 0.5133 GB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.747e-05/0.4304, allocations: 4 kB / 0.5133 GB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.232e-05/0.4305, allocations: 11.97 kB / 0.5133 GB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.974e-06/0.4305, allocations: 11.75 kB / 0.5133 GB, free: 6.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.104e-05/0.4305, allocations: 114.9 kB / 0.5134 GB, free: 6.078 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4305, allocations: 4 kB / 0.5134 GB, free: 6.074 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002196/0.4308, allocations: 15.62 kB / 0.5135 GB, free: 6.062 MB / 330.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) * 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.000312/0.4311, allocations: 0.8353 MB / 0.5143 GB, free: 5.203 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001466/0.4312, allocations: 126.1 kB / 0.5144 GB, free: 5.086 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4313, allocations: 0 / 0.5144 GB, free: 5.086 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.075e-05/0.4313, allocations: 83.22 kB / 0.5145 GB, free: 5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001705/0.4315, allocations: 11.86 kB / 0.5145 GB, free: 4.992 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004306/0.4319, allocations: 192.5 kB / 0.5147 GB, free: 4.777 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001543/0.4321, allocations: 0.7082 MB / 0.5154 GB, free: 4.043 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.848e-05/0.4322, allocations: 16.81 kB / 0.5154 GB, free: 4.027 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.109e-05/0.4322, allocations: 26.69 kB / 0.5154 GB, free: 4.02 MB / 330.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4322, allocations: 0 / 0.5154 GB, free: 4.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01265/0.4449, allocations: 2.11 MB / 0.5175 GB, free: 1.961 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001296/0.4451, allocations: 122.4 kB / 0.5176 GB, free: 1.762 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.638/2.083, allocations: 3.984 kB / 0.5176 GB, free: 1.758 MB / 330.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