Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_3_2_3_cpp_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.001492/0.001492, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.976/1.976, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001155/0.001155, allocations: 99.27 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004243/0.0004241, allocations: 11.98 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3351, allocations: 47.56 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1457/0.4808, allocations: 81.03 MB / 455.7 MB, free: 15.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.4811, allocations: 71.97 kB / 455.7 MB, free: 15.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1231/0.6042, allocations: 26 MB / 481.7 MB, free: 5.508 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.6043, allocations: 0 / 481.7 MB, free: 5.508 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001178/0.6044, allocations: 20.06 kB / 481.7 MB, free: 5.488 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.002487/0.6069, allocations: 1.127 MB / 482.9 MB, free: 4.266 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.6069, allocations: 8.031 kB / 482.9 MB, free: 4.258 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.6071, allocations: 62.52 kB / 482.9 MB, free: 4.188 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002323/0.6073, allocations: 75.06 kB / 483 MB, free: 4.113 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001772/0.6091, allocations: 0.6241 MB / 483.6 MB, free: 3.449 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.869e-05/0.6092, allocations: 20 kB / 483.7 MB, free: 3.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.006e-05/0.6093, allocations: 23.95 kB / 483.7 MB, free: 3.406 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009909/0.6103, allocations: 374.9 kB / 484 MB, free: 2.996 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.6103, allocations: 0 / 484 MB, free: 2.996 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.467e-05/0.6104, allocations: 8 kB / 484.1 MB, free: 2.988 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.339e-05/0.6104, allocations: 11.94 kB / 484.1 MB, free: 2.977 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006945/0.6111, allocations: 197.4 kB / 484.3 MB, free: 2.785 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0028/0.6139, allocations: 1.423 MB / 485.7 MB, free: 1.289 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.6152, allocations: 382.9 kB / 486.1 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.6153, allocations: 7.953 kB / 486.1 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/0.6163, allocations: 471.4 kB / 486.5 MB, free: 360 kB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.456e-06/0.6164, allocations: 4 kB / 486.5 MB, free: 356 kB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.002814/0.6192, allocations: 1.029 MB / 487.6 MB, free: 15.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002683/0.6195, allocations: 456.9 kB / 488 MB, free: 14.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002063/0.6216, allocations: 0.8473 MB / 488.9 MB, free: 13.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001512/0.6217, allocations: 41.7 kB / 488.9 MB, free: 13.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003674/0.6221, allocations: 315.3 kB / 489.2 MB, free: 13.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/0.6223, allocations: 110.7 kB / 489.3 MB, free: 13.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-05/0.6224, allocations: 4 kB / 489.3 MB, free: 13.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.6226, allocations: 334.8 kB / 489.6 MB, free: 13.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005831/0.6231, allocations: 160.9 kB / 489.8 MB, free: 12.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008156/0.624, allocations: 374.4 kB / 490.2 MB, free: 12.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007407/0.6247, allocations: 281.1 kB / 490.4 MB, free: 12.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.351e-06/0.6248, allocations: 4 kB / 490.4 MB, free: 12.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001879/0.6266, allocations: 0.6463 MB / 491.1 MB, free: 11.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.6268, allocations: 97.05 kB / 491.2 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.6268, allocations: 7.984 kB / 491.2 MB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.87e-05/0.6268, allocations: 8 kB / 491.2 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004829/0.6273, allocations: 68.12 kB / 491.3 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.974e-05/0.6274, allocations: 11.98 kB / 491.3 MB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006438/0.628, allocations: 47.73 kB / 491.3 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.805e-05/0.6281, allocations: 24 kB / 491.3 MB, free: 11.19 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.0008293/0.629, allocations: 402.6 kB / 491.7 MB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.6292, allocations: 83.23 kB / 491.8 MB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00162/0.6308, allocations: 0.5442 MB / 492.4 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.6309, allocations: 4 kB / 492.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.6309, allocations: 0 / 492.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.6309, allocations: 3.984 kB / 492.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/0.6331, allocations: 1.079 MB / 493.5 MB, free: 8.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.6331, allocations: 0 / 493.5 MB, free: 8.973 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002436/0.6334, allocations: 35.88 kB / 493.5 MB, free: 8.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.05e-05/0.6334, allocations: 4 kB / 493.5 MB, free: 8.934 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-05/0.6335, allocations: 15.98 kB / 493.5 MB, free: 8.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.404e-06/0.6335, allocations: 4 kB / 493.5 MB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.6335, allocations: 0 / 493.5 MB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00211/0.6356, allocations: 0.8675 MB / 494.4 MB, free: 7.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003557/0.636, allocations: 200.1 kB / 494.6 MB, free: 7.766 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/0.6362, allocations: 23.98 kB / 494.6 MB, free: 7.742 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004958/0.6367, allocations: 31.98 kB / 494.6 MB, free: 7.711 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/0.6369, allocations: 35.95 kB / 494.7 MB, free: 7.676 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.745e-05/0.637, allocations: 27.94 kB / 494.7 MB, free: 7.648 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001525/0.6385, allocations: 0.663 MB / 495.4 MB, free: 6.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6386, allocations: 8.188 kB / 495.4 MB, free: 6.973 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001124/0.6397, allocations: 184 kB / 495.5 MB, free: 6.793 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.004032/0.6437, allocations: 2.015 MB / 497.6 MB, free: 4.746 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001794/0.6456, allocations: 0.6662 MB / 498.2 MB, free: 4.043 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.6456, allocations: 0 / 498.2 MB, free: 4.043 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008774/0.6465, allocations: 438 kB / 498.6 MB, free: 3.578 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.6478, allocations: 149 kB / 498.8 MB, free: 3.438 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2769/0.9247, allocations: 6.669 MB / 0.4936 GB, free: 103.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005752/0.9253, allocations: 0.9445 MB / 0.4945 GB, free: 102.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006207/0.926, allocations: 245.2 kB / 0.4948 GB, free: 102.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.926, allocations: 2.719 kB / 0.4948 GB, free: 102.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.964/3.89, allocations: 13.32 MB / 0.5078 GB, free: 101.1 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Interaction1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1_res.mat does not exist to compare? outputFormat=mat