Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_3_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.00104/0.00104, allocations: 183.8 kB / 15.76 MB, free: 6.363 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.475/1.475, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0008453/0.0008452, allocations: 94.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2065/0.2065, allocations: 43.56 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003338/0.0003338, allocations: 8 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1267, allocations: 58.87 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3489/0.4757, allocations: 92.88 MB / 0.5696 GB, free: 6.895 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.4759, allocations: 64.41 kB / 0.5696 GB, free: 6.863 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03445/0.5104, allocations: 12.84 MB / 0.5822 GB, free: 11.93 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.5104, allocations: 0 / 0.5822 GB, free: 11.93 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.527e-05/0.5105, allocations: 8 kB / 0.5822 GB, free: 11.92 MB / 394.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.001737/0.5122, allocations: 0.9203 MB / 0.5831 GB, free: 10.97 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.5122, allocations: 15.97 kB / 0.5831 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.5124, allocations: 83.14 kB / 0.5832 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.5125, allocations: 67.16 kB / 0.5832 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006989/0.5132, allocations: 421.3 kB / 0.5836 GB, free: 10.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.226e-05/0.5133, allocations: 36.94 kB / 0.5837 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.097e-05/0.5134, allocations: 40.62 kB / 0.5837 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008381/0.5142, allocations: 474.8 kB / 0.5842 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.5142, allocations: 0 / 0.5842 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.885e-05/0.5143, allocations: 14.25 kB / 0.5842 GB, free: 10.01 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.5143, allocations: 8 kB / 0.5842 GB, free: 10 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007651/0.5151, allocations: 342.9 kB / 0.5845 GB, free: 9.758 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.517, allocations: 1.13 MB / 0.5856 GB, free: 8.816 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.5181, allocations: 0.5061 MB / 0.5861 GB, free: 8.434 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.5182, allocations: 7.875 kB / 0.5861 GB, free: 8.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005906/0.5188, allocations: 296.2 kB / 0.5864 GB, free: 8.195 MB / 394.7 MB Notification: Performance of pre-optimization done (n=52): time 1.974e-06/0.5188, allocations: 0 / 0.5864 GB, free: 8.195 MB / 394.7 MB Notification: Performance of matching and sorting (n=52): time 0.001456/0.5203, allocations: 0.6533 MB / 0.587 GB, free: 7.684 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.143e-05/0.5204, allocations: 136.9 kB / 0.5872 GB, free: 7.52 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000562/0.5209, allocations: 475.9 kB / 0.5876 GB, free: 7.152 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.695e-05/0.521, allocations: 49.56 kB / 0.5877 GB, free: 7.109 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.5212, allocations: 246.9 kB / 0.5879 GB, free: 6.945 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.5213, allocations: 121.3 kB / 0.588 GB, free: 6.848 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.33e-05/0.5213, allocations: 7.5 kB / 0.588 GB, free: 6.848 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.5214, allocations: 365.5 kB / 0.5884 GB, free: 6.504 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003853/0.5218, allocations: 177.8 kB / 0.5885 GB, free: 6.387 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004666/0.5223, allocations: 266.4 kB / 0.5888 GB, free: 6.168 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003706/0.5227, allocations: 165.3 kB / 0.5889 GB, free: 6.059 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5227, allocations: 0 / 0.5889 GB, free: 6.059 MB / 394.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009798/0.5237, allocations: 499.1 kB / 0.5894 GB, free: 5.676 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.5237, allocations: 14.59 kB / 0.5894 GB, free: 5.664 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.5237, allocations: 3.938 kB / 0.5894 GB, free: 5.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.5238, allocations: 7.953 kB / 0.5894 GB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.524, allocations: 67.58 kB / 0.5895 GB, free: 5.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.5241, allocations: 4 kB / 0.5895 GB, free: 5.586 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/0.5244, allocations: 86.09 kB / 0.5896 GB, free: 5.512 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.471e-05/0.5245, allocations: 15.69 kB / 0.5896 GB, free: 5.5 MB / 394.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.0002431/0.5247, allocations: 225.7 kB / 0.5898 GB, free: 5.312 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.84e-05/0.5248, allocations: 51.34 kB / 0.5899 GB, free: 5.262 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.5259, allocations: 0.5299 MB / 0.5904 GB, free: 4.871 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.5259, allocations: 7.984 kB / 0.5904 GB, free: 4.863 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.5259, allocations: 3.953 kB / 0.5904 GB, free: 4.859 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.5259, allocations: 0 / 0.5904 GB, free: 4.859 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001795/0.5277, allocations: 1.145 MB / 0.5915 GB, free: 3.914 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.5277, allocations: 4 kB / 0.5915 GB, free: 3.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/0.5279, allocations: 47.34 kB / 0.5916 GB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.5279, allocations: 0 / 0.5916 GB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.528, allocations: 18.75 kB / 0.5916 GB, free: 3.855 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.528, allocations: 4 kB / 0.5916 GB, free: 3.852 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.528, allocations: 0 / 0.5916 GB, free: 3.852 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009701/0.529, allocations: 0.5907 MB / 0.5922 GB, free: 3.352 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.5291, allocations: 133.7 kB / 0.5923 GB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.349e-05/0.5292, allocations: 14 kB / 0.5923 GB, free: 3.207 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003738/0.5296, allocations: 82.94 kB / 0.5924 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.5297, allocations: 73.14 kB / 0.5925 GB, free: 3.074 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.733e-05/0.5298, allocations: 18.55 kB / 0.5925 GB, free: 3.059 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003609/0.5302, allocations: 355.4 kB / 0.5928 GB, free: 2.793 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5302, allocations: 0 / 0.5928 GB, free: 2.793 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004443/0.5306, allocations: 133.4 kB / 0.5929 GB, free: 2.68 MB / 394.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.002016/0.5326, allocations: 1.483 MB / 0.5944 GB, free: 1.355 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009227/0.5336, allocations: 470.5 kB / 0.5948 GB, free: 1.012 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.5336, allocations: 0 / 0.5948 GB, free: 1.012 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004498/0.534, allocations: 245.3 kB / 0.5951 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004358/0.5345, allocations: 89.19 kB / 0.5952 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00412/0.5386, allocations: 3.225 MB / 0.5983 GB, free: 14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.539, allocations: 0.8758 MB / 0.5992 GB, free: 13.1 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002478/0.5393, allocations: 75.42 kB / 0.5992 GB, free: 13.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002482/0.5395, allocations: 194.1 kB / 0.5994 GB, free: 12.96 MB / 410.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5395, allocations: 0 / 0.5994 GB, free: 12.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02378/0.5633, allocations: 10.82 MB / 0.61 GB, free: 2.145 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002042/0.5636, allocations: 205.7 kB / 0.6102 GB, free: 1.895 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.07/2.633, allocations: 0 / 0.6102 GB, free: 1.895 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Logical_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Logical.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat