Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Logical",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.001497/0.001497, allocations: 185.7 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.063/2.063, 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.001103/0.001102, allocations: 86.2 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5611/0.5611, allocations: 43.56 MB / 362.7 MB, free: 51.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004695/0.0004695, allocations: 16 kB / 431.5 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1321, allocations: 58.85 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4794/0.6115, allocations: 92.87 MB / 0.5695 GB, free: 9.598 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002954/0.6119, allocations: 75.91 kB / 0.5696 GB, free: 9.523 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06318/0.6751, allocations: 12.86 MB / 0.5821 GB, free: 12.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.6751, allocations: 0 / 0.5821 GB, free: 12.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.441e-05/0.6752, allocations: 8 kB / 0.5822 GB, free: 12.69 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002967/0.6782, allocations: 0.931 MB / 0.5831 GB, free: 11.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.6783, allocations: 12.03 kB / 0.5831 GB, free: 11.68 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002061/0.6785, allocations: 74.53 kB / 0.5831 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002355/0.6787, allocations: 70.59 kB / 0.5832 GB, free: 11.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.6799, allocations: 406.1 kB / 0.5836 GB, free: 11.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.467e-05/0.68, allocations: 44.98 kB / 0.5836 GB, free: 11.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.908e-05/0.6801, allocations: 40 kB / 0.5837 GB, free: 11.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.6817, allocations: 459.7 kB / 0.5841 GB, free: 10.55 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.6817, allocations: 4 kB / 0.5841 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.445e-05/0.6818, allocations: 23.98 kB / 0.5841 GB, free: 10.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.632e-05/0.6819, allocations: 9.031 kB / 0.5842 GB, free: 10.51 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.6833, allocations: 339.8 kB / 0.5845 GB, free: 10.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003754/0.6871, allocations: 1.137 MB / 0.5856 GB, free: 8.992 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002317/0.6894, allocations: 0.4983 MB / 0.5861 GB, free: 8.484 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.304e-05/0.6895, allocations: 8.438 kB / 0.5861 GB, free: 8.477 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.6906, allocations: 293.3 kB / 0.5864 GB, free: 8.184 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 4.769e-06/0.6907, allocations: 0 / 0.5864 GB, free: 8.184 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.002814/0.6935, allocations: 0.6545 MB / 0.587 GB, free: 7.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.6937, allocations: 140.9 kB / 0.5871 GB, free: 7.352 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001069/0.6947, allocations: 476.8 kB / 0.5876 GB, free: 6.879 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001429/0.6949, allocations: 45.7 kB / 0.5876 GB, free: 6.828 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002644/0.6952, allocations: 279.8 kB / 0.5879 GB, free: 6.555 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001913/0.6954, allocations: 118.5 kB / 0.588 GB, free: 6.438 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.725e-05/0.6955, allocations: 12 kB / 0.588 GB, free: 6.426 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.6956, allocations: 334.8 kB / 0.5883 GB, free: 6.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000777/0.6964, allocations: 181 kB / 0.5885 GB, free: 5.914 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008984/0.6973, allocations: 264.9 kB / 0.5888 GB, free: 5.633 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006922/0.6981, allocations: 162.1 kB / 0.5889 GB, free: 5.477 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.6981, allocations: 3.938 kB / 0.5889 GB, free: 5.473 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001762/0.6998, allocations: 474.7 kB / 0.5894 GB, free: 5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.6999, allocations: 4 kB / 0.5894 GB, free: 4.996 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.6999, allocations: 0 / 0.5894 GB, free: 4.996 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.696e-05/0.7, allocations: 7.953 kB / 0.5894 GB, free: 4.988 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005728/0.7006, allocations: 63.89 kB / 0.5895 GB, free: 4.926 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.736e-05/0.7006, allocations: 8 kB / 0.5895 GB, free: 4.918 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008145/0.7014, allocations: 83.78 kB / 0.5895 GB, free: 4.836 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-05/0.7015, allocations: 16 kB / 0.5896 GB, free: 4.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 58 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.u2,and1.y,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * 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.0005234/0.7021, allocations: 231 kB / 0.5898 GB, free: 4.586 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001763/0.7022, allocations: 47.44 kB / 0.5898 GB, free: 4.539 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002055/0.7043, allocations: 0.5325 MB / 0.5903 GB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.631e-05/0.7044, allocations: 8 kB / 0.5904 GB, free: 3.996 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.7044, allocations: 7.953 kB / 0.5904 GB, free: 3.988 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.7044, allocations: 3.984 kB / 0.5904 GB, free: 3.984 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003535/0.708, allocations: 1.142 MB / 0.5915 GB, free: 2.785 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.708, allocations: 0 / 0.5915 GB, free: 2.785 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000339/0.7084, allocations: 39.91 kB / 0.5915 GB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.206e-05/0.7084, allocations: 8 kB / 0.5915 GB, free: 2.738 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.355e-05/0.7085, allocations: 19.94 kB / 0.5915 GB, free: 2.719 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.7085, allocations: 0 / 0.5915 GB, free: 2.719 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.7085, allocations: 0 / 0.5915 GB, free: 2.719 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002003/0.7105, allocations: 0.5815 MB / 0.5921 GB, free: 2.117 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002303/0.7108, allocations: 140.4 kB / 0.5922 GB, free: 1.961 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.711, allocations: 23.98 kB / 0.5923 GB, free: 1.938 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007027/0.7117, allocations: 71.89 kB / 0.5923 GB, free: 1.867 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002792/0.712, allocations: 76.31 kB / 0.5924 GB, free: 1.793 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.626e-05/0.7121, allocations: 16 kB / 0.5924 GB, free: 1.777 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007619/0.7128, allocations: 359.1 kB / 0.5928 GB, free: 1.426 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.42e-07/0.7129, allocations: 0 / 0.5928 GB, free: 1.426 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008064/0.7137, allocations: 135.7 kB / 0.5929 GB, free: 1.293 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 (and1.u2,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.y,nor.u1,nand.u1,pre1.u,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 15 (table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,pre1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,table2.combiTimeTable.nextTimeEventScaled,triggeredTrapezoid.y,table1.combiTimeTable.nextTimeEventScaled,change1.u,fallingEdge.not_u,edge1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * 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.003679/0.7174, allocations: 1.493 MB / 0.5944 GB, free: 15.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002008/0.7194, allocations: 461.6 kB / 0.5948 GB, free: 15.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.7195, allocations: 0 / 0.5948 GB, free: 15.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009553/0.7205, allocations: 238.4 kB / 0.595 GB, free: 15.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008652/0.7213, allocations: 85.58 kB / 0.5951 GB, free: 15.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008742/0.7301, allocations: 3.262 MB / 0.5983 GB, free: 11.79 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006513/0.7308, allocations: 0.8841 MB / 0.5992 GB, free: 10.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006289/0.7315, allocations: 195.4 kB / 0.5993 GB, free: 10.69 MB / 426.7 MB Notification: Performance of SimCode: time 1.152e-06/0.7315, allocations: 0 / 0.5993 GB, free: 10.69 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.922/3.653, allocations: 9.26 MB / 0.6084 GB, free: 1.422 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Logical_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Logical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat