Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.SingleTC.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.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",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.004309/0.004308, allocations: 170.6 kB / 15.11 MB, free: 5.992 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.183/1.183, allocations: 205.4 MB / 221.3 MB, free: 13.81 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.0009065/0.0009063, allocations: 94.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.06423/0.06423, allocations: 16.9 MB / 334.7 MB, free: 5.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002787/0.0002788, allocations: 11.69 kB / 397 MB, free: 46.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06824/0.06854, allocations: 51.69 MB / 448.7 MB, free: 148 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08836/0.1569, allocations: 77.23 MB / 0.5136 GB, free: 2.805 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001876/0.1572, allocations: 67.97 kB / 0.5137 GB, free: 2.738 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005211/0.1624, allocations: 2.289 MB / 0.5159 GB, free: 448 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1624, allocations: 0 / 0.5159 GB, free: 448 kB / 362.7 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1624, allocations: 4 kB / 0.5159 GB, free: 444 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.1374/0.2998, allocations: 417.1 kB / 0.5163 GB, free: 80.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.2999, allocations: 10.22 kB / 0.5163 GB, free: 80.22 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.393e-05/0.2999, allocations: 35.28 kB / 0.5164 GB, free: 80.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.405e-05/0.3, allocations: 10.16 kB / 0.5164 GB, free: 80.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002065/0.3002, allocations: 201 kB / 0.5166 GB, free: 79.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.3003, allocations: 7.625 kB / 0.5166 GB, free: 79.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.3003, allocations: 6.156 kB / 0.5166 GB, free: 79.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.3005, allocations: 119.8 kB / 0.5167 GB, free: 79.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.3005, allocations: 3.719 kB / 0.5167 GB, free: 79.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.3005, allocations: 2.938 kB / 0.5167 GB, free: 79.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.3005, allocations: 3.047 kB / 0.5167 GB, free: 79.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.218e-05/0.3006, allocations: 49.27 kB / 0.5168 GB, free: 79.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005814/0.3012, allocations: 0.7435 MB / 0.5175 GB, free: 79.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/0.3013, allocations: 50.16 kB / 0.5175 GB, free: 79.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.3014, allocations: 3.375 kB / 0.5175 GB, free: 79.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.79e-05/0.3014, allocations: 33.28 kB / 0.5176 GB, free: 79.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.273e-06/0.3014, allocations: 0 / 0.5176 GB, free: 79.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002516/0.3017, allocations: 200.5 kB / 0.5178 GB, free: 78.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.486e-05/0.3017, allocations: 79.08 kB / 0.5178 GB, free: 78.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.3018, allocations: 154.2 kB / 0.518 GB, free: 78.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.927e-06/0.3018, allocations: 28.95 kB / 0.518 GB, free: 78.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.28e-05/0.3019, allocations: 122.1 kB / 0.5181 GB, free: 78.67 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.36e-05/0.3019, allocations: 14.88 kB / 0.5181 GB, free: 78.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-06/0.3019, allocations: 1.25 kB / 0.5181 GB, free: 78.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.241e-05/0.3019, allocations: 327.5 kB / 0.5184 GB, free: 78.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.854e-05/0.302, allocations: 17.44 kB / 0.5185 GB, free: 78.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.895e-05/0.302, allocations: 57.48 kB / 0.5185 GB, free: 78.31 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.405e-05/0.3021, allocations: 49.84 kB / 0.5186 GB, free: 78.28 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3021, allocations: 0.9688 kB / 0.5186 GB, free: 78.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001969/0.3023, allocations: 147.9 kB / 0.5187 GB, free: 78.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.3024, allocations: 33.42 kB / 0.5187 GB, free: 78.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.3024, allocations: 0 / 0.5187 GB, free: 78.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.3024, allocations: 6.797 kB / 0.5187 GB, free: 78.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.914e-05/0.3025, allocations: 17.39 kB / 0.5188 GB, free: 78.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.3025, allocations: 2.078 kB / 0.5188 GB, free: 78.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.007e-05/0.3025, allocations: 13.2 kB / 0.5188 GB, free: 78.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.3026, allocations: 8.266 kB / 0.5188 GB, free: 78.17 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (T1.firingCon,T1.fire,T1.activation.active,T1.activation.NoTokens,T1.fire_) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 7.654e-05/0.3026, allocations: 153.7 kB / 0.5189 GB, free: 78.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.477e-05/0.3027, allocations: 10.53 kB / 0.5189 GB, free: 78.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002176/0.3029, allocations: 154.5 kB / 0.5191 GB, free: 77.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.3029, allocations: 5.016 kB / 0.5191 GB, free: 77.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3029, allocations: 4.703 kB / 0.5191 GB, free: 77.92 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3029, allocations: 1.125 kB / 0.5191 GB, free: 77.92 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.303, allocations: 192 kB / 0.5193 GB, free: 77.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3031, allocations: 1.062 kB / 0.5193 GB, free: 77.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.172e-05/0.3031, allocations: 2.969 kB / 0.5193 GB, free: 77.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3031, allocations: 1.125 kB / 0.5193 GB, free: 77.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-06/0.3031, allocations: 0.9688 kB / 0.5193 GB, free: 77.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.3031, allocations: 2.172 kB / 0.5193 GB, free: 77.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3031, allocations: 3.953 kB / 0.5193 GB, free: 77.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001314/0.3033, allocations: 132.3 kB / 0.5194 GB, free: 77.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.149e-05/0.3033, allocations: 94.78 kB / 0.5195 GB, free: 77.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.3033, allocations: 3.594 kB / 0.5195 GB, free: 77.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.548e-05/0.3034, allocations: 4.969 kB / 0.5195 GB, free: 77.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.132e-05/0.3034, allocations: 4.969 kB / 0.5195 GB, free: 77.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.3034, allocations: 5.047 kB / 0.5195 GB, free: 77.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.654e-05/0.3035, allocations: 130 kB / 0.5197 GB, free: 77.44 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3035, allocations: 0 / 0.5197 GB, free: 77.44 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002429/0.3037, allocations: 35.47 kB / 0.5197 GB, free: 77.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (T1.fire,T1.activation.active,T1.activation.NoTokens) * Number of discrete states: 2 (T1.activation.active,T1.activation.NoTokens) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0003217/0.3041, allocations: 0.6882 MB / 0.5204 GB, free: 76.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001458/0.3042, allocations: 115.1 kB / 0.5205 GB, free: 76.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3042, allocations: 0 / 0.5205 GB, free: 76.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.002e-05/0.3043, allocations: 71.5 kB / 0.5205 GB, free: 76.67 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.3044, allocations: 12.55 kB / 0.5205 GB, free: 76.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.3061, allocations: 1.52 MB / 0.522 GB, free: 75.62 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001094/0.3062, allocations: 0.712 MB / 0.5227 GB, free: 74.92 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.3063, allocations: 52.91 kB / 0.5228 GB, free: 74.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.332e-05/0.3064, allocations: 41.56 kB / 0.5228 GB, free: 74.91 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3064, allocations: 0 / 0.5228 GB, free: 74.91 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01195/0.3183, allocations: 2.298 MB / 0.5251 GB, free: 74.63 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001075/0.3185, allocations: 149.5 kB / 0.5252 GB, free: 74.39 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.557/1.876, allocations: 0 / 0.5252 GB, free: 74.39 MB / 362.7 MB (rm -f PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; mkfifo PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ConTest.SingleTC.pipe >> ../files/PNlib_PNlib.Examples.ConTest.SingleTC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PNlib_PNlib.Examples.ConTest.SingleTC_res.mat --tempDir=temp_PNlib_PNlib_Examples_ConTest_SingleTC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_ConTest_SingleTC.fmu > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PNlib_PNlib.Examples.ConTest.SingleTC_res.mat does not exist to compare? outputFormat=mat