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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00302/0.00302, allocations: 182.5 kB / 7.461 MB, free: 2.23 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.157/1.157, allocations: 205.2 MB / 213.1 MB, free: 13.91 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.0008583/0.0008582, allocations: 96.36 kB / 261.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.09206/0.09206, allocations: 16.73 MB / 325.7 MB, free: 12.76 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1659/0.258, allocations: 57.81 MB / 383.5 MB, free: 71.14 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07422/0.3323, allocations: 51.68 MB / 435.2 MB, free: 19.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2159/0.5482, allocations: 76.22 MB / 0.4995 GB, free: 10.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001681/0.5485, allocations: 67.06 kB / 0.4995 GB, free: 10.08 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.004847/0.5533, allocations: 1.99 MB / 0.5015 GB, free: 9.555 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.5534, allocations: 9 kB / 0.5015 GB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.5534, allocations: 14.47 kB / 0.5015 GB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001779/0.5536, allocations: 196.4 kB / 0.5017 GB, free: 9.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.5536, allocations: 2.969 kB / 0.5017 GB, free: 9.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.582e-05/0.5536, allocations: 11.12 kB / 0.5017 GB, free: 9.336 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001169/0.5538, allocations: 38.27 kB / 0.5017 GB, free: 9.336 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001283/0.5539, allocations: 114.2 kB / 0.5018 GB, free: 9.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.5539, allocations: 1.219 kB / 0.5018 GB, free: 9.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.5539, allocations: 6.562 kB / 0.5018 GB, free: 9.246 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.554, allocations: 2.188 kB / 0.5018 GB, free: 9.246 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004893/0.5545, allocations: 0.7212 MB / 0.5026 GB, free: 8.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.5546, allocations: 71.91 kB / 0.5026 GB, free: 8.535 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.206e-05/0.5546, allocations: 33.27 kB / 0.5027 GB, free: 8.512 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.5546, allocations: 0 / 0.5027 GB, free: 8.512 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.242e-05/0.5547, allocations: 73.67 kB / 0.5027 GB, free: 8.449 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.5547, allocations: 0 / 0.5027 GB, free: 8.449 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001691/0.5549, allocations: 82.97 kB / 0.5028 GB, free: 8.402 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.555, allocations: 108 kB / 0.5029 GB, free: 8.277 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.5551, allocations: 146.9 kB / 0.503 GB, free: 8.168 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.5551, allocations: 28 kB / 0.5031 GB, free: 8.137 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.464e-05/0.5551, allocations: 108.5 kB / 0.5032 GB, free: 8.043 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.5552, allocations: 20.89 kB / 0.5032 GB, free: 8.031 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-06/0.5552, allocations: 1.469 kB / 0.5032 GB, free: 8.031 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.679e-05/0.5552, allocations: 320.8 kB / 0.5035 GB, free: 7.719 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.085e-05/0.5553, allocations: 22.98 kB / 0.5035 GB, free: 7.715 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.735e-05/0.5553, allocations: 75.22 kB / 0.5036 GB, free: 7.648 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.531e-05/0.5554, allocations: 28.98 kB / 0.5036 GB, free: 7.645 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.5554, allocations: 1.094 kB / 0.5036 GB, free: 7.645 MB / 330.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001745/0.5556, allocations: 123 kB / 0.5037 GB, free: 7.598 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.5556, allocations: 6.625 kB / 0.5037 GB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.5556, allocations: 3.781 kB / 0.5038 GB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.5557, allocations: 1.875 kB / 0.5038 GB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.084e-05/0.5558, allocations: 19.75 kB / 0.5038 GB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.5558, allocations: 11.94 kB / 0.5038 GB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.525e-05/0.5558, allocations: 7.547 kB / 0.5038 GB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.5559, allocations: 6.625 kB / 0.5038 GB, free: 7.586 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.0001326/0.556, allocations: 139.3 kB / 0.5039 GB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.083e-05/0.556, allocations: 14.78 kB / 0.5039 GB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.708e-05/0.5561, allocations: 20.64 kB / 0.504 GB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.5561, allocations: 1.281 kB / 0.504 GB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.5561, allocations: 3.938 kB / 0.504 GB, free: 7.426 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.5561, allocations: 2.703 kB / 0.504 GB, free: 7.426 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002746/0.5564, allocations: 318.4 kB / 0.5043 GB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.5564, allocations: 0 / 0.5043 GB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.798e-05/0.5564, allocations: 15.38 kB / 0.5043 GB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.5564, allocations: 5.094 kB / 0.5043 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.5565, allocations: 2.734 kB / 0.5043 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.5565, allocations: 1.203 kB / 0.5043 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.5565, allocations: 7.891 kB / 0.5043 GB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001487/0.5566, allocations: 194.6 kB / 0.5045 GB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001973/0.5568, allocations: 0.561 MB / 0.505 GB, free: 6.434 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.536e-05/0.5569, allocations: 86.14 kB / 0.5051 GB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.678e-05/0.5569, allocations: 2.359 kB / 0.5051 GB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.557, allocations: 5.812 kB / 0.5051 GB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.485e-05/0.5571, allocations: 20.42 kB / 0.5051 GB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-06/0.5571, allocations: 4.281 kB / 0.5052 GB, free: 6.328 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.977e-05/0.5572, allocations: 109.4 kB / 0.5053 GB, free: 6.254 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000807/0.558, allocations: 13.44 kB / 0.5053 GB, free: 6.254 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 8.18e-05/0.5581, allocations: 104.2 kB / 0.5054 GB, free: 6.164 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001531/0.5582, allocations: 92.17 kB / 0.5055 GB, free: 6.129 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.5583, allocations: 0 / 0.5055 GB, free: 6.129 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.973e-05/0.5583, allocations: 55.55 kB / 0.5055 GB, free: 6.094 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001743/0.5585, allocations: 11.97 kB / 0.5055 GB, free: 6.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003277/0.5588, allocations: 138.6 kB / 0.5057 GB, free: 6 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.559, allocations: 0.7243 MB / 0.5064 GB, free: 5.293 MB / 330.7 MB Notification: Performance of SimCode: time 1.182e-06/0.559, allocations: 1.344 kB / 0.5064 GB, free: 5.293 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