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.001061/0.001061, allocations: 175 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.432/1.432, 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.0008217/0.0008214, allocations: 86.64 kB / 266.6 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.07094/0.07094, allocations: 16.7 MB / 331.4 MB, free: 8.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.297e-05/4.304e-05, allocations: 0 / 391 MB, free: 65.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09732/0.09738, allocations: 51.69 MB / 442.7 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3697/0.4671, allocations: 77.15 MB / 0.5077 GB, free: 10.54 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001945/0.4673, allocations: 66.84 kB / 0.5077 GB, free: 10.54 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005194/0.4725, allocations: 2.274 MB / 0.51 GB, free: 9.727 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.4726, allocations: 0 / 0.51 GB, free: 9.727 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.4726, allocations: 4 kB / 0.51 GB, free: 9.723 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004225/0.473, allocations: 402.8 kB / 0.5103 GB, free: 9.312 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/0.4731, allocations: 7.812 kB / 0.5104 GB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.306e-05/0.4731, allocations: 37.84 kB / 0.5104 GB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.919e-05/0.4732, allocations: 22.94 kB / 0.5104 GB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.4735, allocations: 194.2 kB / 0.5106 GB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.4735, allocations: 7.031 kB / 0.5106 GB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.4735, allocations: 3.844 kB / 0.5106 GB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002/0.4737, allocations: 112.4 kB / 0.5107 GB, free: 8.957 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.4738, allocations: 3.938 kB / 0.5107 GB, free: 8.953 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.4738, allocations: 7.375 kB / 0.5107 GB, free: 8.953 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.4738, allocations: 0 / 0.5107 GB, free: 8.953 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000106/0.4739, allocations: 46.64 kB / 0.5108 GB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007239/0.4746, allocations: 0.7484 MB / 0.5115 GB, free: 8.129 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.4748, allocations: 41.45 kB / 0.5115 GB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.529e-05/0.4749, allocations: 23.97 kB / 0.5116 GB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.4749, allocations: 4 kB / 0.5116 GB, free: 8.062 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.774e-05/0.4749, allocations: 38.52 kB / 0.5116 GB, free: 8.016 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.273e-06/0.4749, allocations: 0 / 0.5116 GB, free: 8.016 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002395/0.4752, allocations: 104.4 kB / 0.5117 GB, free: 7.914 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.4752, allocations: 77.11 kB / 0.5118 GB, free: 7.82 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.4753, allocations: 154.1 kB / 0.5119 GB, free: 7.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.728e-06/0.4754, allocations: 29.7 kB / 0.512 GB, free: 7.645 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/0.4754, allocations: 108.8 kB / 0.5121 GB, free: 7.547 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.559e-05/0.4754, allocations: 26.88 kB / 0.5121 GB, free: 7.527 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-06/0.4754, allocations: 3.688 kB / 0.5121 GB, free: 7.527 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.453e-05/0.4755, allocations: 321.9 kB / 0.5124 GB, free: 7.207 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.714e-05/0.4756, allocations: 26.47 kB / 0.5124 GB, free: 7.188 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.962e-05/0.4756, allocations: 48.92 kB / 0.5125 GB, free: 7.133 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.338e-05/0.4757, allocations: 52.12 kB / 0.5125 GB, free: 7.082 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.4757, allocations: 3.938 kB / 0.5125 GB, free: 7.078 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001864/0.4759, allocations: 142.4 kB / 0.5127 GB, free: 6.941 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/0.4759, allocations: 33.7 kB / 0.5127 GB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.4759, allocations: 3.953 kB / 0.5127 GB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.476, allocations: 64 / 0.5127 GB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.772e-05/0.476, allocations: 27.86 kB / 0.5127 GB, free: 6.871 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.4761, allocations: 8.125 kB / 0.5127 GB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.725e-05/0.4761, allocations: 7.062 kB / 0.5127 GB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.4762, allocations: 7.984 kB / 0.5127 GB, free: 6.852 MB / 330.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 () * 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 8.538e-05/0.4762, allocations: 133.9 kB / 0.5129 GB, free: 6.711 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.439e-05/0.4763, allocations: 11.91 kB / 0.5129 GB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002871/0.4766, allocations: 153.2 kB / 0.513 GB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.4766, allocations: 3.953 kB / 0.513 GB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.4766, allocations: 0 / 0.513 GB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4766, allocations: 3.938 kB / 0.513 GB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.4768, allocations: 197.2 kB / 0.5132 GB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4768, allocations: 4 kB / 0.5132 GB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.773e-05/0.4768, allocations: 0 / 0.5132 GB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.4769, allocations: 0 / 0.5132 GB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.4769, allocations: 4 kB / 0.5132 GB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.4769, allocations: 4 kB / 0.5132 GB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.4769, allocations: 3.953 kB / 0.5132 GB, free: 6.301 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001583/0.4771, allocations: 131.6 kB / 0.5134 GB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.05e-05/0.4771, allocations: 88.39 kB / 0.5134 GB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.4771, allocations: 0 / 0.5134 GB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.515e-05/0.4772, allocations: 4 kB / 0.5135 GB, free: 6.055 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.95e-05/0.4772, allocations: 7.938 kB / 0.5135 GB, free: 6.047 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.4772, allocations: 4 kB / 0.5135 GB, free: 6.043 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.381e-05/0.4773, allocations: 137 kB / 0.5136 GB, free: 5.922 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.603e-06/0.4773, allocations: 0 / 0.5136 GB, free: 5.922 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002733/0.4776, allocations: 31.94 kB / 0.5136 GB, free: 5.891 MB / 330.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) * 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.0004074/0.478, allocations: 0.6814 MB / 0.5143 GB, free: 5.191 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001531/0.4782, allocations: 112.6 kB / 0.5144 GB, free: 5.082 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4782, allocations: 0 / 0.5144 GB, free: 5.082 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.471e-05/0.4783, allocations: 75.2 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.0001512/0.4784, allocations: 12.3 kB / 0.5145 GB, free: 4.996 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.4798, allocations: 423.2 kB / 0.5149 GB, free: 4.613 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001697/0.4799, allocations: 0.7082 MB / 0.5156 GB, free: 3.879 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.477e-05/0.48, allocations: 52.38 kB / 0.5156 GB, free: 3.828 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.097e-05/0.4801, allocations: 45.84 kB / 0.5157 GB, free: 3.801 MB / 330.7 MB Notification: Performance of SimCode: time 7.12e-07/0.4801, allocations: 0 / 0.5157 GB, free: 3.801 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01209/0.4922, allocations: 2.3 MB / 0.5179 GB, free: 1.551 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001368/0.4924, allocations: 119.4 kB / 0.518 GB, free: 1.355 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.641/2.133, allocations: 3.938 kB / 0.518 GB, free: 1.352 MB / 330.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