Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009797/0.009797, allocations: 165.4 kB / 15.11 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.754/1.754, allocations: 170.8 MB / 186.6 MB, free: 1.121 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001954/0.001954, allocations: 107.4 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5529/0.5529, allocations: 38.05 MB / 303.7 MB, free: 42.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004743/0.0004744, allocations: 8 kB / 363 MB, free: 5.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1073, allocations: 48.71 MB / 411.7 MB, free: 4.719 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4269/0.5343, allocations: 78.56 MB / 490.2 MB, free: 9.203 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.5346, allocations: 68.14 kB / 490.3 MB, free: 9.168 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02528/0.5599, allocations: 5.926 MB / 496.2 MB, free: 4 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.5599, allocations: 0 / 496.2 MB, free: 4 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.452e-05/0.56, allocations: 8 kB / 496.2 MB, free: 3.992 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001711/0.5617, allocations: 0.7845 MB / 497 MB, free: 3.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.5618, allocations: 8.031 kB / 497 MB, free: 3.152 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.5619, allocations: 73.34 kB / 497.1 MB, free: 3.094 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.562, allocations: 43.53 kB / 497.1 MB, free: 3.051 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.5622, allocations: 218.6 kB / 497.4 MB, free: 2.805 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.938e-05/0.5622, allocations: 36.5 kB / 497.4 MB, free: 2.781 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.394e-05/0.5623, allocations: 39.38 kB / 497.4 MB, free: 2.754 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.5634, allocations: 370.2 kB / 497.8 MB, free: 2.484 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.5634, allocations: 0 / 497.8 MB, free: 2.484 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.145e-05/0.5635, allocations: 15.56 kB / 497.8 MB, free: 2.48 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.5635, allocations: 8 kB / 497.8 MB, free: 2.473 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.5646, allocations: 320.7 kB / 498.1 MB, free: 2.234 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002491/0.5671, allocations: 0.9608 MB / 499.1 MB, free: 1.406 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001683/0.5689, allocations: 438.6 kB / 499.5 MB, free: 1.078 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.914e-05/0.569, allocations: 8.312 kB / 499.5 MB, free: 1.07 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008588/0.5698, allocations: 339.6 kB / 499.9 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 4.148e-06/0.5699, allocations: 0 / 499.9 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.002292/0.5722, allocations: 0.8503 MB / 0.489 GB, free: 32 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000157/0.5724, allocations: 170.6 kB / 0.4891 GB, free: 15.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003131/0.5727, allocations: 201.8 kB / 0.4893 GB, free: 15.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.5728, allocations: 47.94 kB / 0.4894 GB, free: 15.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001833/0.573, allocations: 170.3 kB / 0.4895 GB, free: 15.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.5732, allocations: 108.5 kB / 0.4896 GB, free: 15.39 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.491e-05/0.5732, allocations: 11.69 kB / 0.4897 GB, free: 15.39 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.5734, allocations: 348.8 kB / 0.49 GB, free: 15.05 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007062/0.5742, allocations: 169.8 kB / 0.4901 GB, free: 14.93 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000646/0.5748, allocations: 176.3 kB / 0.4903 GB, free: 14.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006612/0.5755, allocations: 245.7 kB / 0.4905 GB, free: 14.6 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.5755, allocations: 0 / 0.4905 GB, free: 14.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001681/0.5772, allocations: 0.5762 MB / 0.4911 GB, free: 14.1 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.5774, allocations: 119.8 kB / 0.4912 GB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.5774, allocations: 0 / 0.4912 GB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.5774, allocations: 3.984 kB / 0.4912 GB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003936/0.5778, allocations: 54.59 kB / 0.4913 GB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.5778, allocations: 0.8594 kB / 0.4913 GB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005666/0.5784, allocations: 82.41 kB / 0.4914 GB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.265e-05/0.5785, allocations: 18.81 kB / 0.4914 GB, free: 13.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 60 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,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 (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 4 * 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.0004502/0.579, allocations: 241.2 kB / 0.4916 GB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.5791, allocations: 35.62 kB / 0.4916 GB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.5792, allocations: 37.23 kB / 0.4917 GB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.5792, allocations: 4 kB / 0.4917 GB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.5793, allocations: 0.875 kB / 0.4917 GB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.5793, allocations: 0 / 0.4917 GB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002499/0.5818, allocations: 1.033 MB / 0.4927 GB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.5818, allocations: 0 / 0.4927 GB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/0.5821, allocations: 35.91 kB / 0.4927 GB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-05/0.5821, allocations: 4 kB / 0.4927 GB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.491e-05/0.5822, allocations: 19.17 kB / 0.4927 GB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.466e-06/0.5822, allocations: 4 kB / 0.4928 GB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5822, allocations: 0 / 0.4928 GB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001833/0.5841, allocations: 0.6589 MB / 0.4934 GB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002193/0.5843, allocations: 135.2 kB / 0.4935 GB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.5844, allocations: 19.8 kB / 0.4935 GB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006508/0.5851, allocations: 70.38 kB / 0.4936 GB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000246/0.5853, allocations: 65.33 kB / 0.4937 GB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.106e-05/0.5854, allocations: 19.86 kB / 0.4937 GB, free: 11.74 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001812/0.5856, allocations: 139.5 kB / 0.4938 GB, free: 11.62 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5856, allocations: 0 / 0.4938 GB, free: 11.62 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006153/0.5862, allocations: 117.2 kB / 0.4939 GB, free: 11.52 MB / 346.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 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,table1.y,table1.nextTime,table1.index,table2.y,table2.nextTime,table2.index,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: 19 (table1.y,table1.nextTime,table1.index,$whenCondition4,table2.y,table2.nextTime,table2.index,$whenCondition3,pre1.u,edge1.u,fallingEdge.not_u,change1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,triggeredTrapezoid.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * 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.002517/0.5888, allocations: 1.275 MB / 0.4952 GB, free: 10.33 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001718/0.5905, allocations: 0.651 MB / 0.4958 GB, free: 9.75 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5906, allocations: 4 kB / 0.4958 GB, free: 9.746 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000903/0.5915, allocations: 376.6 kB / 0.4962 GB, free: 9.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.5918, allocations: 18.98 kB / 0.4962 GB, free: 9.418 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005048/0.5969, allocations: 1.957 MB / 0.4981 GB, free: 7.785 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004973/0.5974, allocations: 0.7994 MB / 0.4989 GB, free: 6.961 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002239/0.5977, allocations: 30.97 kB / 0.4989 GB, free: 6.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002557/0.5979, allocations: 109.5 kB / 0.499 GB, free: 6.895 MB / 346.7 MB Notification: Performance of SimCode: time 3.988e-06/0.598, allocations: 0 / 0.499 GB, free: 6.895 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03492/0.6329, allocations: 6.445 MB / 0.5053 GB, free: 0.5352 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003497/0.6333, allocations: 163 kB / 0.5055 GB, free: 300 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.672/3.306, allocations: 3.938 kB / 0.5055 GB, free: 296 kB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat