Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical") translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009833/0.0009833, allocations: 99.78 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001212, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.556/1.556, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4372/0.4372, allocations: 38.03 MB / 308.4 MB, free: 10.47 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006294/0.0006298, allocations: 12 kB / 376.4 MB, free: 15.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.176/0.1766, allocations: 57.52 MB / 433.9 MB, free: 5.598 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004847/0.1816, allocations: 2.255 MB / 436.2 MB, free: 3.328 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003159/0.1848, allocations: 1.221 MB / 437.4 MB, free: 2.098 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000361/0.1852, allocations: 12 kB / 437.4 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001133/0.1863, allocations: 287.1 kB / 437.7 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006536/0.187, allocations: 191.5 kB / 437.9 MB, free: 1.617 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.1883, allocations: 311.3 kB / 438.2 MB, free: 1.312 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006898/0.189, allocations: 372.2 kB / 438.5 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004947/0.1895, allocations: 170.9 kB / 438.7 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004684/0.19, allocations: 211.1 kB / 438.9 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004256/0.1904, allocations: 238.9 kB / 439.1 MB, free: 344 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.861e-05/0.1905, allocations: 16 kB / 439.2 MB, free: 328 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003206/0.1908, allocations: 59.95 kB / 439.2 MB, free: 268 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002295/0.1911, allocations: 115.6 kB / 439.3 MB, free: 152 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.1913, allocations: 105.4 kB / 439.4 MB, free: 40 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008335/0.1921, allocations: 459.2 kB / 439.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1921, allocations: 11.88 kB / 439.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.1922, allocations: 0 / 439.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.1922, allocations: 0 / 439.9 MB, free: 15.58 MB / 382.1 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.002953/0.1951, allocations: 0.9095 MB / 440.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.689e-05/0.1952, allocations: 8.031 kB / 440.8 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001714/0.1954, allocations: 67.25 kB / 440.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008212/0.1962, allocations: 409.7 kB / 441.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.438e-05/0.1963, allocations: 36.98 kB / 441.3 MB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.707e-05/0.1964, allocations: 48 kB / 441.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.1979, allocations: 451.8 kB / 441.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/0.1979, allocations: 4 kB / 441.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.758e-05/0.198, allocations: 16 kB / 441.8 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.113e-05/0.1981, allocations: 11.95 kB / 441.8 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.1991, allocations: 339.7 kB / 442.2 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002233/0.2014, allocations: 1.106 MB / 443.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.2027, allocations: 0.4938 MB / 443.8 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.566e-05/0.2028, allocations: 4.438 kB / 443.8 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006718/0.2035, allocations: 289.3 kB / 444 MB, free: 11.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 4.508e-06/0.2035, allocations: 0 / 444 MB, free: 11.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001633/0.2051, allocations: 0.6428 MB / 444.7 MB, free: 10.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.2052, allocations: 136.9 kB / 444.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006375/0.2059, allocations: 0.5133 MB / 445.3 MB, free: 9.895 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.072e-05/0.206, allocations: 45.7 kB / 445.4 MB, free: 9.844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002326/0.2062, allocations: 245.4 kB / 445.6 MB, free: 9.598 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.2063, allocations: 126.4 kB / 445.7 MB, free: 9.473 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.469e-05/0.2064, allocations: 11.94 kB / 445.8 MB, free: 9.461 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.2066, allocations: 370.8 kB / 446.1 MB, free: 9.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004278/0.207, allocations: 173 kB / 446.3 MB, free: 8.918 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005606/0.2076, allocations: 256.9 kB / 446.5 MB, free: 8.645 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.208, allocations: 158.1 kB / 446.7 MB, free: 8.492 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.208, allocations: 0 / 446.7 MB, free: 8.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001022/0.209, allocations: 490.3 kB / 447.2 MB, free: 8.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.209, allocations: 8 kB / 447.2 MB, free: 7.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-06/0.2091, allocations: 3.984 kB / 447.2 MB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.2091, allocations: 4 kB / 447.2 MB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002959/0.2094, allocations: 67.91 kB / 447.3 MB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.981e-05/0.2094, allocations: 7.984 kB / 447.3 MB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003785/0.2098, allocations: 99.47 kB / 447.4 MB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.2099, allocations: 20 kB / 447.4 MB, free: 7.797 MB / 382.1 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.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.y,xor.y,nor.y,nand.y,$PRE.pre1.u,pre1.u,pre1.y,$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.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.u,$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.0002901/0.2102, allocations: 216 kB / 447.6 MB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.08e-05/0.2102, allocations: 55.38 kB / 447.6 MB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/0.2104, allocations: 65.12 kB / 447.7 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.2105, allocations: 8 kB / 447.7 MB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/0.2105, allocations: 0 / 447.7 MB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.2105, allocations: 3.984 kB / 447.7 MB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002495/0.213, allocations: 1.099 MB / 448.8 MB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.213, allocations: 4 kB / 448.8 MB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.2132, allocations: 43.91 kB / 448.9 MB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.2132, allocations: 4 kB / 448.9 MB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.654e-05/0.2133, allocations: 11.98 kB / 448.9 MB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.2133, allocations: 0 / 448.9 MB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.2133, allocations: 7.984 kB / 448.9 MB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.2144, allocations: 0.5697 MB / 449.5 MB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.2146, allocations: 136.5 kB / 449.6 MB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.972e-05/0.2147, allocations: 12 kB / 449.6 MB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005392/0.2152, allocations: 71.92 kB / 449.7 MB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.2154, allocations: 72.33 kB / 449.7 MB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.352e-05/0.2155, allocations: 19.98 kB / 449.8 MB, free: 5.305 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005953/0.2161, allocations: 355.1 kB / 450.1 MB, free: 4.961 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2161, allocations: 3.938 kB / 450.1 MB, free: 4.957 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005928/0.2167, allocations: 131.6 kB / 450.2 MB, free: 4.828 MB / 382.1 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 (timer.u,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,and1.y,xor.y,nor.y,nand.y,pre1.u,pre1.y,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.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,fallingEdge.not_u,edge1.u,change1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 44 * 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.001338/0.218, allocations: 469 kB / 450.7 MB, free: 4.387 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.2192, allocations: 445.6 kB / 451.1 MB, free: 3.953 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.2192, allocations: 0 / 451.1 MB, free: 3.953 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007067/0.2199, allocations: 234.5 kB / 451.4 MB, free: 3.727 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007083/0.2207, allocations: 85.42 kB / 451.4 MB, free: 3.645 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.2229, allocations: 1.001 MB / 452.4 MB, free: 2.625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007901/0.2237, allocations: 0.8759 MB / 453.3 MB, free: 1.719 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003763/0.2241, allocations: 71.41 kB / 453.4 MB, free: 1.648 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000194/0.2243, allocations: 47.42 kB / 453.4 MB, free: 1.602 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2243, allocations: 0 / 453.4 MB, free: 1.602 MB / 382.1 MB Notification: Performance of Templates: time 0.2752/0.4996, allocations: 6.042 MB / 459.5 MB, free: 49.53 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe 2>&1) Environment - environmentSimulation: