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.001348/0.001348, allocations: 172.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.449/1.449, allocations: 205.3 MB / 213.4 MB, free: 13.77 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.000794/0.0007939, allocations: 95.14 kB / 261.4 MB, free: 13.44 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.07065/0.07065, allocations: 16.73 MB / 326.1 MB, free: 12.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.105e-05/2.093e-05, allocations: 4 kB / 384.1 MB, free: 70.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08961/0.08965, allocations: 51.69 MB / 435.8 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4298/0.5195, allocations: 76.29 MB / 0.5001 GB, free: 9.828 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/0.5199, allocations: 64.88 kB / 0.5001 GB, free: 9.828 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005858/0.5257, allocations: 1.894 MB / 0.502 GB, free: 9.395 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5258, allocations: 0 / 0.502 GB, free: 9.395 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.5258, allocations: 0 / 0.502 GB, free: 9.395 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.0004186/0.5262, allocations: 401.2 kB / 0.5023 GB, free: 9.004 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.5263, allocations: 11.53 kB / 0.5024 GB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.685e-05/0.5264, allocations: 11.66 kB / 0.5024 GB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002401/0.5266, allocations: 207.6 kB / 0.5026 GB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.834e-05/0.5267, allocations: 3.844 kB / 0.5026 GB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.5267, allocations: 3.844 kB / 0.5026 GB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001564/0.5269, allocations: 43.14 kB / 0.5026 GB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001978/0.5271, allocations: 118.6 kB / 0.5027 GB, free: 8.695 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.5271, allocations: 0 / 0.5027 GB, free: 8.695 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/0.5271, allocations: 7.406 kB / 0.5027 GB, free: 8.695 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.5271, allocations: 0 / 0.5027 GB, free: 8.695 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005987/0.5277, allocations: 0.7141 MB / 0.5034 GB, free: 8.035 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001332/0.5279, allocations: 80.12 kB / 0.5035 GB, free: 7.977 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.095e-05/0.528, allocations: 28.59 kB / 0.5035 GB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.528, allocations: 0 / 0.5035 GB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/0.5281, allocations: 80.8 kB / 0.5036 GB, free: 7.895 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.5281, allocations: 0 / 0.5036 GB, free: 7.895 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002298/0.5284, allocations: 83.77 kB / 0.5037 GB, free: 7.852 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.5284, allocations: 109.8 kB / 0.5038 GB, free: 7.727 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.5286, allocations: 144.4 kB / 0.5039 GB, free: 7.621 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.5286, allocations: 32.08 kB / 0.504 GB, free: 7.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.231e-05/0.5287, allocations: 114.8 kB / 0.5041 GB, free: 7.496 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.476e-05/0.5287, allocations: 25.44 kB / 0.5041 GB, free: 7.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.264e-06/0.5287, allocations: 0 / 0.5041 GB, free: 7.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.511e-05/0.5288, allocations: 326.4 kB / 0.5044 GB, free: 7.168 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.299e-05/0.5289, allocations: 21.81 kB / 0.5044 GB, free: 7.164 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.421e-05/0.529, allocations: 68.28 kB / 0.5045 GB, free: 7.102 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.159e-05/0.529, allocations: 32.67 kB / 0.5045 GB, free: 7.094 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.529, allocations: 0 / 0.5045 GB, free: 7.094 MB / 330.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002538/0.5293, allocations: 129.9 kB / 0.5047 GB, free: 7.047 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.5294, allocations: 33.05 kB / 0.5047 GB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.5294, allocations: 0.8594 kB / 0.5047 GB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.5294, allocations: 7.797 kB / 0.5047 GB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.5295, allocations: 18.47 kB / 0.5047 GB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.5295, allocations: 3.844 kB / 0.5047 GB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.333e-05/0.5296, allocations: 7.875 kB / 0.5047 GB, free: 7.004 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.5297, allocations: 10.69 kB / 0.5047 GB, free: 7.004 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.0001466/0.5298, allocations: 141.4 kB / 0.5049 GB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001496/0.53, allocations: 82.48 kB / 0.5049 GB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.663e-05/0.53, allocations: 21.92 kB / 0.505 GB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.658e-05/0.5301, allocations: 16.84 kB / 0.505 GB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.5301, allocations: 2.719 kB / 0.505 GB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.5301, allocations: 3.938 kB / 0.505 GB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.5301, allocations: 192 / 0.505 GB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003302/0.5304, allocations: 326.8 kB / 0.5053 GB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.5305, allocations: 3.953 kB / 0.5053 GB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.369e-05/0.5305, allocations: 6.766 kB / 0.5053 GB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.5305, allocations: 0 / 0.5053 GB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.5306, allocations: 7.5 kB / 0.5053 GB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.5306, allocations: 7.797 kB / 0.5053 GB, free: 6.52 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5306, allocations: 0 / 0.5053 GB, free: 6.52 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001992/0.5308, allocations: 201.7 kB / 0.5055 GB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.986e-05/0.5308, allocations: 84.86 kB / 0.5056 GB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.926e-05/0.5309, allocations: 3.844 kB / 0.5056 GB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.531, allocations: 10.66 kB / 0.5056 GB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.407e-05/0.5311, allocations: 16.53 kB / 0.5056 GB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.5311, allocations: 3.875 kB / 0.5056 GB, free: 6.246 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.83e-05/0.5312, allocations: 107.8 kB / 0.5057 GB, free: 6.172 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5312, allocations: 0 / 0.5057 GB, free: 6.172 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004417/0.5317, allocations: 18.12 kB / 0.5058 GB, free: 6.172 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.0004108/0.5321, allocations: 0.8039 MB / 0.5065 GB, free: 5.414 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002125/0.5323, allocations: 119.3 kB / 0.5067 GB, free: 5.348 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.5323, allocations: 0 / 0.5067 GB, free: 5.348 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.071e-05/0.5324, allocations: 81.41 kB / 0.5067 GB, free: 5.277 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.5327, allocations: 14.11 kB / 0.5067 GB, free: 5.273 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000635/0.5334, allocations: 174.7 kB / 0.5069 GB, free: 5.141 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001793/0.5336, allocations: 0.709 MB / 0.5076 GB, free: 4.441 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.806e-05/0.5336, allocations: 14.62 kB / 0.5076 GB, free: 4.441 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.86e-05/0.5337, allocations: 32.44 kB / 0.5076 GB, free: 4.438 MB / 330.7 MB Notification: Performance of SimCode: time 4.7e-07/0.5337, allocations: 7.938 kB / 0.5077 GB, free: 4.43 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02404/0.5578, allocations: 1.753 MB / 0.5094 GB, free: 4.305 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/0.558, allocations: 117.2 kB / 0.5095 GB, free: 4.137 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.7/2.258, allocations: 3.938 kB / 0.5095 GB, free: 4.133 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