Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.00135, allocations: 198.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 226.5 MB / 243.4 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006885/0.0006885, allocations: 93.62 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2974/0.2974, allocations: 44.83 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002563/0.0002565, allocations: 12.2 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2587, allocations: 62.96 MB / 0.516 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.002259/0.261, allocations: 2.317 MB / 0.5182 GB, free: 35.74 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.2628, allocations: 1.484 MB / 0.5197 GB, free: 34.71 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001621/0.263, allocations: 5.469 kB / 0.5197 GB, free: 34.71 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00062/0.2636, allocations: 301.1 kB / 0.52 GB, free: 34.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004002/0.264, allocations: 229.9 kB / 0.5202 GB, free: 34.53 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006984/0.2647, allocations: 338.8 kB / 0.5205 GB, free: 34.37 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004369/0.2652, allocations: 0.5683 MB / 0.5211 GB, free: 34.12 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002745/0.2654, allocations: 216.3 kB / 0.5213 GB, free: 34 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002763/0.2657, allocations: 221.3 kB / 0.5215 GB, free: 33.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/0.2659, allocations: 247.3 kB / 0.5217 GB, free: 33.81 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.792e-05/0.266, allocations: 17.22 kB / 0.5217 GB, free: 33.81 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.2662, allocations: 71.78 kB / 0.5218 GB, free: 33.8 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.2663, allocations: 120.2 kB / 0.5219 GB, free: 33.75 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.2664, allocations: 243 kB / 0.5221 GB, free: 33.57 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003453/0.2668, allocations: 470.4 kB / 0.5226 GB, free: 33.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2668, allocations: 0 / 0.5226 GB, free: 33.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2668, allocations: 7.938 kB / 0.5226 GB, free: 33.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.2668, allocations: 0 / 0.5226 GB, free: 33.45 MB / 378.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.001282/0.2681, allocations: 0.907 MB / 0.5235 GB, free: 32.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.2681, allocations: 14.88 kB / 0.5235 GB, free: 32.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.933e-05/0.2682, allocations: 78.84 kB / 0.5236 GB, free: 32.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.2684, allocations: 75.92 kB / 0.5236 GB, free: 32.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000397/0.2688, allocations: 434.4 kB / 0.5241 GB, free: 32.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.667e-05/0.2688, allocations: 46.19 kB / 0.5241 GB, free: 32.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.138e-05/0.2689, allocations: 41.34 kB / 0.5241 GB, free: 32.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007444/0.2697, allocations: 463.1 kB / 0.5246 GB, free: 32.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2697, allocations: 0 / 0.5246 GB, free: 32.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.731e-05/0.2697, allocations: 21.17 kB / 0.5246 GB, free: 32.08 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.2697, allocations: 8.688 kB / 0.5246 GB, free: 32.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006617/0.2704, allocations: 336.1 kB / 0.5249 GB, free: 31.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.2719, allocations: 1.11 MB / 0.526 GB, free: 31.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.273, allocations: 0.4945 MB / 0.5265 GB, free: 31.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003671/0.2734, allocations: 186.1 kB / 0.5267 GB, free: 31.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.302e-05/0.2734, allocations: 14.38 kB / 0.5267 GB, free: 31.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005368/0.274, allocations: 294.3 kB / 0.527 GB, free: 31.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=52): time 2.154e-06/0.274, allocations: 0 / 0.527 GB, free: 31.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.00132/0.2753, allocations: 0.6386 MB / 0.5276 GB, free: 30.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.2754, allocations: 139.3 kB / 0.5277 GB, free: 30.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000464/0.2758, allocations: 0.5256 MB / 0.5282 GB, free: 30.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.19e-05/0.2759, allocations: 48.5 kB / 0.5283 GB, free: 30.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.276, allocations: 252.2 kB / 0.5285 GB, free: 30.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.77e-05/0.2761, allocations: 123.7 kB / 0.5286 GB, free: 30.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-05/0.2761, allocations: 14.53 kB / 0.5287 GB, free: 30.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.642e-05/0.2762, allocations: 366.4 kB / 0.529 GB, free: 29.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003701/0.2766, allocations: 172.3 kB / 0.5292 GB, free: 29.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003939/0.277, allocations: 267.9 kB / 0.5294 GB, free: 29.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006142/0.2776, allocations: 312.8 kB / 0.5297 GB, free: 29.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.2776, allocations: 4 kB / 0.5297 GB, free: 29.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008279/0.2785, allocations: 498.4 kB / 0.5302 GB, free: 29.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.2785, allocations: 5.344 kB / 0.5302 GB, free: 29.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2785, allocations: 0 / 0.5302 GB, free: 29.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.2785, allocations: 5.844 kB / 0.5302 GB, free: 29.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.2788, allocations: 73.73 kB / 0.5303 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.2788, allocations: 2.625 kB / 0.5303 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003367/0.2792, allocations: 103.9 kB / 0.5304 GB, free: 29.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.909e-05/0.2792, allocations: 19.47 kB / 0.5304 GB, free: 29.12 MB / 378.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.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.0001996/0.2794, allocations: 219.1 kB / 0.5306 GB, free: 28.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.841e-05/0.2795, allocations: 52.12 kB / 0.5307 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.2796, allocations: 61.83 kB / 0.5307 GB, free: 28.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.2796, allocations: 5.625 kB / 0.5307 GB, free: 28.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.2796, allocations: 0 / 0.5307 GB, free: 28.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.2796, allocations: 11.22 kB / 0.5307 GB, free: 28.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.2811, allocations: 1.109 MB / 0.5318 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.2811, allocations: 2.875 kB / 0.5318 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.2813, allocations: 37.28 kB / 0.5319 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.2813, allocations: 3.984 kB / 0.5319 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.2813, allocations: 21.31 kB / 0.5319 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.2813, allocations: 3.375 kB / 0.5319 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2813, allocations: 2.688 kB / 0.5319 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008607/0.2822, allocations: 0.5706 MB / 0.5324 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.711e-05/0.2823, allocations: 136 kB / 0.5326 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.121e-05/0.2824, allocations: 17.47 kB / 0.5326 GB, free: 27.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003696/0.2827, allocations: 68.92 kB / 0.5327 GB, free: 27.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.2829, allocations: 74.66 kB / 0.5327 GB, free: 27.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.755e-05/0.2829, allocations: 19.12 kB / 0.5328 GB, free: 27.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003028/0.2832, allocations: 373.5 kB / 0.5331 GB, free: 27.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2832, allocations: 0 / 0.5331 GB, free: 27.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003831/0.2836, allocations: 131.5 kB / 0.5332 GB, free: 27.61 MB / 378.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 (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.001753/0.2854, allocations: 1.469 MB / 0.5347 GB, free: 26.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008484/0.2863, allocations: 445 kB / 0.5351 GB, free: 26.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2863, allocations: 3.188 kB / 0.5351 GB, free: 26.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004265/0.2867, allocations: 230.5 kB / 0.5353 GB, free: 26.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005461/0.2873, allocations: 91.06 kB / 0.5354 GB, free: 26.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003989/0.2913, allocations: 3.018 MB / 0.5383 GB, free: 24.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.2915, allocations: 0.8708 MB / 0.5392 GB, free: 24.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002615/0.2918, allocations: 200.6 kB / 0.5394 GB, free: 24.04 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.2918, allocations: 5.375 kB / 0.5394 GB, free: 24.04 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.197/3.489, allocations: 8.249 MB / 0.5475 GB, free: 21.98 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Logical_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Logical.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Logical/Logical.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches