Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.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) 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(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_Interaction1",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.0009931/0.000993, allocations: 177.5 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007719/0.0007718, allocations: 86.22 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.861e-05/1.866e-05, allocations: 4 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08998/0.09002, allocations: 47.59 MB / 363.2 MB, free: 6.992 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3159/0.406, allocations: 80.5 MB / 443.7 MB, free: 15.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001897/0.4062, allocations: 74.53 kB / 443.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07078/0.477, allocations: 25.72 MB / 469.5 MB, free: 10.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4771, allocations: 0 / 469.5 MB, free: 10.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.829e-05/0.4771, allocations: 15.94 kB / 469.5 MB, free: 10 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.001558/0.4787, allocations: 0.984 MB / 470.5 MB, free: 8.969 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.4788, allocations: 15.97 kB / 470.5 MB, free: 8.953 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001563/0.4789, allocations: 79.05 kB / 470.5 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001086/0.48, allocations: 0.5982 MB / 471.1 MB, free: 8.332 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.665e-05/0.4801, allocations: 15.48 kB / 471.2 MB, free: 8.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.069e-05/0.4802, allocations: 23.95 kB / 471.2 MB, free: 8.297 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003402/0.4805, allocations: 166 kB / 471.3 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005048/0.481, allocations: 346.7 kB / 471.7 MB, free: 7.867 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.481, allocations: 0 / 471.7 MB, free: 7.867 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.634e-05/0.4811, allocations: 7.875 kB / 471.7 MB, free: 7.863 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.542e-05/0.4811, allocations: 4 kB / 471.7 MB, free: 7.859 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.4828, allocations: 1.38 MB / 473.1 MB, free: 6.641 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004317/0.4832, allocations: 329.7 kB / 473.4 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002094/0.4835, allocations: 172.1 kB / 473.6 MB, free: 6.242 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.4835, allocations: 4 kB / 473.6 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005131/0.484, allocations: 457 kB / 474 MB, free: 5.801 MB / 346.7 MB Notification: Performance of pre-optimization done (n=42): time 1.823e-06/0.484, allocations: 0 / 474 MB, free: 5.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009709/0.485, allocations: 0.5188 MB / 474.5 MB, free: 5.371 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000182/0.4852, allocations: 460.6 kB / 475 MB, free: 4.824 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009614/0.4862, allocations: 0.8034 MB / 475.8 MB, free: 4.223 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.41e-05/0.4862, allocations: 41.5 kB / 475.8 MB, free: 4.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002394/0.4865, allocations: 303.3 kB / 476.1 MB, free: 4.023 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.781e-05/0.4866, allocations: 104.4 kB / 476.2 MB, free: 3.938 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.267e-05/0.4866, allocations: 0 / 476.2 MB, free: 3.938 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.4868, allocations: 331.5 kB / 476.5 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/0.487, allocations: 143.6 kB / 476.7 MB, free: 3.527 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004047/0.4874, allocations: 348 kB / 477 MB, free: 3.18 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003309/0.4878, allocations: 181.2 kB / 477.2 MB, free: 3.055 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.4878, allocations: 0 / 477.2 MB, free: 3.055 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00098/0.4888, allocations: 0.5576 MB / 477.8 MB, free: 2.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/0.4889, allocations: 93.09 kB / 477.9 MB, free: 2.391 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/0.4889, allocations: 7.984 kB / 477.9 MB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.846e-05/0.489, allocations: 8.469 kB / 477.9 MB, free: 2.375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002893/0.4892, allocations: 71.8 kB / 477.9 MB, free: 2.305 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.4893, allocations: 8 kB / 477.9 MB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003054/0.4896, allocations: 35.73 kB / 478 MB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.884e-05/0.4896, allocations: 27.98 kB / 478 MB, free: 2.234 MB / 346.7 MB Warning: Assuming fixed start value for the following 2 variables: stop.table.y:DISCRETE(fixed = false protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(fixed = false protected = true ) "Connector of Boolean output signal" type: Boolean 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.0003134/0.49, allocations: 266 kB / 478.3 MB, free: 1.953 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008895/0.4909, allocations: 0.5577 MB / 478.8 MB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001343/0.491, allocations: 83.06 kB / 478.9 MB, free: 1.309 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007793/0.4918, allocations: 447.7 kB / 479.3 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.4918, allocations: 4.281 kB / 479.3 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.4918, allocations: 0 / 479.3 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.4918, allocations: 8 kB / 479.4 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.4931, allocations: 0.9472 MB / 480.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.4931, allocations: 0 / 480.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.4932, allocations: 35.92 kB / 480.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.638e-06/0.4932, allocations: 7.953 kB / 480.3 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.857e-05/0.4933, allocations: 15.92 kB / 480.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.4933, allocations: 4 kB / 480.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.4933, allocations: 0 / 480.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.4943, allocations: 0.7292 MB / 481.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002158/0.4945, allocations: 192.1 kB / 481.3 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.4947, allocations: 27.98 kB / 481.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.4949, allocations: 19.98 kB / 481.3 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.4951, allocations: 43.89 kB / 481.4 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.844e-05/0.4951, allocations: 23.98 kB / 481.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007854/0.4959, allocations: 0.6202 MB / 482 MB, free: 14.08 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4959, allocations: 0 / 482 MB, free: 14.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007394/0.4967, allocations: 176 kB / 482.2 MB, free: 13.91 MB / 362.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.002243/0.4989, allocations: 1.803 MB / 484 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008316/0.4998, allocations: 0.5996 MB / 484.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4998, allocations: 4.188 kB / 484.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004714/0.5003, allocations: 434 kB / 485 MB, free: 10.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007636/0.501, allocations: 139.5 kB / 485.2 MB, free: 10.83 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.5031, allocations: 1.125 MB / 486.3 MB, free: 9.656 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005342/0.5036, allocations: 0.9527 MB / 487.2 MB, free: 8.672 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003169/0.504, allocations: 129.4 kB / 487.4 MB, free: 8.547 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003454/0.5043, allocations: 239.3 kB / 487.6 MB, free: 8.312 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5043, allocations: 0 / 487.6 MB, free: 8.312 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03816/0.5425, allocations: 14.56 MB / 0.4904 GB, free: 9.734 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002011/0.5428, allocations: 147.5 kB / 0.4905 GB, free: 9.547 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.239/2.781, allocations: 4 kB / 0.4905 GB, free: 9.543 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_Interaction1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1_res.mat does not exist to compare? outputFormat=mat