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.0009604/0.0009603, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.234/1.234, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0007916/0.0007916, allocations: 102 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002548/0.0002547, allocations: 8 kB / 328.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2345, allocations: 47.57 MB / 375.9 MB, free: 45.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09661/0.3311, allocations: 81.03 MB / 456.9 MB, free: 15.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001877/0.3314, allocations: 79.97 kB / 457 MB, free: 15.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06789/0.3993, allocations: 25.99 MB / 483 MB, free: 5.422 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3993, allocations: 4 kB / 483 MB, free: 5.418 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.506e-05/0.3994, allocations: 15.94 kB / 483 MB, free: 5.402 MB / 362.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.001776/0.4011, allocations: 1.131 MB / 484.1 MB, free: 4.176 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.4012, allocations: 16.03 kB / 484.2 MB, free: 4.16 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.39e-05/0.4013, allocations: 54.55 kB / 484.2 MB, free: 4.098 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.4015, allocations: 83.05 kB / 484.3 MB, free: 4.016 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001236/0.4027, allocations: 0.6202 MB / 484.9 MB, free: 3.355 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.4027, allocations: 12 kB / 484.9 MB, free: 3.344 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.381e-05/0.4028, allocations: 27.95 kB / 485 MB, free: 3.316 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006621/0.4035, allocations: 366.9 kB / 485.3 MB, free: 2.914 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.4035, allocations: 0 / 485.3 MB, free: 2.914 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.39e-05/0.4035, allocations: 19.97 kB / 485.3 MB, free: 2.895 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-05/0.4036, allocations: 8 kB / 485.3 MB, free: 2.887 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003711/0.4039, allocations: 203.8 kB / 485.5 MB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.4057, allocations: 1.423 MB / 487 MB, free: 1.191 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007176/0.4065, allocations: 379.1 kB / 487.3 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.4065, allocations: 7.953 kB / 487.3 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006625/0.4072, allocations: 467.4 kB / 487.8 MB, free: 268 kB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.884e-06/0.4072, allocations: 0 / 487.8 MB, free: 268 kB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001591/0.4088, allocations: 1.029 MB / 488.8 MB, free: 15.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002582/0.409, allocations: 460.9 kB / 489.3 MB, free: 14.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001188/0.4102, allocations: 0.8512 MB / 490.1 MB, free: 13.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.605e-05/0.4103, allocations: 41.7 kB / 490.2 MB, free: 13.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.4106, allocations: 304.9 kB / 490.5 MB, free: 13.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.81e-05/0.4107, allocations: 110.7 kB / 490.6 MB, free: 13.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.297e-05/0.4107, allocations: 12 kB / 490.6 MB, free: 13.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4108, allocations: 322 kB / 490.9 MB, free: 12.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002998/0.4111, allocations: 160.9 kB / 491.1 MB, free: 12.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004742/0.4116, allocations: 374.4 kB / 491.4 MB, free: 12.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004134/0.4121, allocations: 277 kB / 491.7 MB, free: 12.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.4121, allocations: 0 / 491.7 MB, free: 12.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001086/0.4132, allocations: 0.7086 MB / 492.4 MB, free: 11.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.633e-05/0.4132, allocations: 104.3 kB / 492.5 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.4133, allocations: 7.984 kB / 492.5 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.4133, allocations: 8 kB / 492.5 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000257/0.4135, allocations: 63.84 kB / 492.6 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.4136, allocations: 8.234 kB / 492.6 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/0.4139, allocations: 47.73 kB / 492.6 MB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.524e-05/0.414, allocations: 27.98 kB / 492.7 MB, free: 11.05 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: stop.table.y:DISCRETE(fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(fixed = true 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 () * Number of clocked 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.0004717/0.4144, allocations: 414.1 kB / 493.1 MB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001222/0.4146, allocations: 79.06 kB / 493.1 MB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009151/0.4155, allocations: 0.5364 MB / 493.7 MB, free: 9.996 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.4155, allocations: 7.938 kB / 493.7 MB, free: 9.988 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.4155, allocations: 4 kB / 493.7 MB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.896e-06/0.4155, allocations: 3.984 kB / 493.7 MB, free: 9.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/0.4169, allocations: 1.071 MB / 494.8 MB, free: 8.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.4169, allocations: 0 / 494.8 MB, free: 8.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.417, allocations: 39.88 kB / 494.8 MB, free: 8.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.4171, allocations: 4 kB / 494.8 MB, free: 8.797 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.111e-05/0.4171, allocations: 19.98 kB / 494.8 MB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.4171, allocations: 0 / 494.8 MB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4171, allocations: 4 kB / 494.8 MB, free: 8.773 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.4183, allocations: 0.8673 MB / 495.7 MB, free: 7.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002576/0.4186, allocations: 192.1 kB / 495.9 MB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.4187, allocations: 24 kB / 495.9 MB, free: 7.609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.4189, allocations: 31.97 kB / 495.9 MB, free: 7.578 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.4191, allocations: 39.94 kB / 496 MB, free: 7.539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.658e-05/0.4191, allocations: 31.94 kB / 496 MB, free: 7.508 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008298/0.42, allocations: 0.663 MB / 496.7 MB, free: 6.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.42, allocations: 0 / 496.7 MB, free: 6.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006863/0.4207, allocations: 188 kB / 496.9 MB, free: 6.656 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) * Number of clocked states: 0 () * 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.002463/0.4231, allocations: 2.012 MB / 498.9 MB, free: 4.609 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009737/0.4241, allocations: 0.6466 MB / 499.5 MB, free: 3.926 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4241, allocations: 0 / 499.5 MB, free: 3.926 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00053/0.4247, allocations: 458 kB / 500 MB, free: 3.441 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000728/0.4254, allocations: 157.2 kB / 0.4884 GB, free: 3.293 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1791/0.6045, allocations: 6.609 MB / 0.4949 GB, free: 103.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.605, allocations: 0.9489 MB / 0.4958 GB, free: 102.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004849/0.6055, allocations: 114 kB / 0.4959 GB, free: 102.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000374/0.6059, allocations: 247.7 kB / 0.4961 GB, free: 102.8 MB / 378.7 MB Notification: Performance of SimCode: time 7.735e-06/0.6059, allocations: 0.6562 kB / 0.4961 GB, free: 102.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03208/0.638, allocations: 15.77 MB / 0.5115 GB, free: 99.95 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/0.6382, allocations: 209 kB / 0.5117 GB, free: 99.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.365/3.003, allocations: 0 / 0.5117 GB, free: 99.71 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