Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Interaction1",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 trunk/package.mo): time 0.001261/0.001261, allocations: 196.9 kB / 8.535 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.568/1.568, allocations: 225.5 MB / 234.4 MB, free: 3.363 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008951/0.0008951, allocations: 87.02 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1086/0.1095, allocations: 56.9 MB / 343.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09754/0.2071, allocations: 51.48 MB / 394.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2536/0.4608, allocations: 82.77 MB / 477.5 MB, free: 9.965 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/0.461, allocations: 70.78 kB / 477.5 MB, free: 9.941 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.07677/0.5378, allocations: 28.38 MB / 0.4941 GB, free: 2.934 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.5378, allocations: 15.92 kB / 0.4941 GB, free: 2.918 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002557/0.5381, allocations: 79.06 kB / 0.4942 GB, free: 2.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001382/0.5395, allocations: 0.6471 MB / 0.4948 GB, free: 2.262 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.5396, allocations: 8 kB / 0.4948 GB, free: 2.254 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.405e-05/0.5396, allocations: 19.48 kB / 0.4948 GB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003745/0.54, allocations: 176.5 kB / 0.495 GB, free: 2.121 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005758/0.5406, allocations: 337.2 kB / 0.4953 GB, free: 1.805 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.5406, allocations: 0 / 0.4953 GB, free: 1.805 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.893e-05/0.5407, allocations: 9.125 kB / 0.4953 GB, free: 1.797 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.34e-05/0.5407, allocations: 4 kB / 0.4953 GB, free: 1.793 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002006/0.5427, allocations: 1.407 MB / 0.4967 GB, free: 0.5547 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004803/0.5432, allocations: 327.7 kB / 0.497 GB, free: 268 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002561/0.5435, allocations: 175.5 kB / 0.4972 GB, free: 80 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.5435, allocations: 4 kB / 0.4972 GB, free: 76 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005402/0.5441, allocations: 419 kB / 0.4976 GB, free: 15.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.394e-06/0.5441, allocations: 0 / 0.4976 GB, free: 15.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009246/0.545, allocations: 438.1 kB / 0.498 GB, free: 15.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001895/0.5452, allocations: 456.9 kB / 0.4984 GB, free: 14.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.5465, allocations: 0.836 MB / 0.4992 GB, free: 13.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.321e-05/0.5465, allocations: 41.7 kB / 0.4993 GB, free: 13.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.5467, allocations: 184.7 kB / 0.4995 GB, free: 13.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.5468, allocations: 100.3 kB / 0.4996 GB, free: 13.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.246e-05/0.5468, allocations: 4 kB / 0.4996 GB, free: 13.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.547, allocations: 326 kB / 0.4999 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.5472, allocations: 148.9 kB / 0.5 GB, free: 12.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004205/0.5477, allocations: 349.2 kB / 0.5003 GB, free: 12.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003429/0.548, allocations: 178.2 kB / 0.5005 GB, free: 12.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.548, allocations: 4 kB / 0.5005 GB, free: 12.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000897/0.5489, allocations: 0.5008 MB / 0.501 GB, free: 11.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.549, allocations: 11.98 kB / 0.501 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.549, allocations: 0.8438 kB / 0.501 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.549, allocations: 8 kB / 0.501 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/0.5493, allocations: 68.12 kB / 0.5011 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.5493, allocations: 8 kB / 0.5011 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003591/0.5497, allocations: 35.73 kB / 0.5011 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.534e-05/0.5498, allocations: 27.98 kB / 0.5012 GB, free: 11.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 51 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$whenCondition9,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition8,$PRE.booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.start.table.combiTimeTable.nextTimeEvent,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition4,$whenCondition5,$PRE.stop.reset[1],$PRE.stop.table.y,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition6,$whenCondition7,$PRE.start.reset[1],$PRE.start.table.y,start.table.y,start.table.combiTimeTable.nextTimeEvent,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],$whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 3 * 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.0002659/0.5501, allocations: 256.7 kB / 0.5014 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.5502, allocations: 79.06 kB / 0.5015 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007205/0.551, allocations: 383.1 kB / 0.5018 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.234e-05/0.551, allocations: 5.312 kB / 0.5019 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.551, allocations: 4 kB / 0.5019 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.551, allocations: 3.984 kB / 0.5019 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/0.5522, allocations: 0.9211 MB / 0.5028 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.5522, allocations: 64 / 0.5028 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.5524, allocations: 39.92 kB / 0.5028 GB, free: 9.988 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.5524, allocations: 0 / 0.5028 GB, free: 9.988 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.487e-05/0.5525, allocations: 15.98 kB / 0.5028 GB, free: 9.973 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.5525, allocations: 0 / 0.5028 GB, free: 9.973 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.5525, allocations: 4 kB / 0.5028 GB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008559/0.5533, allocations: 0.6202 MB / 0.5034 GB, free: 9.305 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001048/0.5544, allocations: 1.002 MB / 0.5044 GB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000237/0.5546, allocations: 200 kB / 0.5046 GB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/0.5548, allocations: 23.98 kB / 0.5046 GB, free: 8.016 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003353/0.5552, allocations: 27.36 kB / 0.5046 GB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.5553, allocations: 39.94 kB / 0.5047 GB, free: 7.953 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.481e-05/0.5553, allocations: 23.98 kB / 0.5047 GB, free: 7.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000865/0.5562, allocations: 0.6552 MB / 0.5053 GB, free: 7.273 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001385/0.5576, allocations: 176 kB / 0.5055 GB, free: 7.102 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,start.reset[1],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition8,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition9,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 26 (integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition5,stop.on,$whenCondition4,stop.pre_reset[1],stop.reset[1],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition7,start.on,$whenCondition6,start.pre_reset[1],start.reset[1],start.table.y,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * 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.0009759/0.5586, allocations: 411.3 kB / 0.5059 GB, free: 6.801 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007382/0.5593, allocations: 494.3 kB / 0.5064 GB, free: 6.301 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5594, allocations: 0.5625 kB / 0.5064 GB, free: 6.301 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004222/0.5598, allocations: 360.9 kB / 0.5067 GB, free: 5.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007622/0.5606, allocations: 143.1 kB / 0.5069 GB, free: 5.793 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.5625, allocations: 0.9902 MB / 0.5078 GB, free: 4.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007843/0.5633, allocations: 1.015 MB / 0.5088 GB, free: 3.719 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5633, allocations: 0 / 0.5088 GB, free: 3.719 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Interaction1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Interaction1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.Interaction1_res.mat does not exist to compare? outputFormat=mat