Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.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) 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(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 105.5 kB / 17.73 MB, free: 5.238 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.001622/0.001622, allocations: 187.1 kB / 18.66 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.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: Performance of FrontEnd - loaded program: time 0.00181/0.00181, allocations: 55.91 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1428, allocations: 46.61 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004412/0.1473, allocations: 1.982 MB / 377.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002208/0.1495, allocations: 1.057 MB / 378.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.1498, allocations: 3.938 kB / 378.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009724/0.1508, allocations: 303.2 kB / 378.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005602/0.1514, allocations: 211.2 kB / 378.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007138/0.1521, allocations: 259.5 kB / 378.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000412/0.1525, allocations: 343.1 kB / 379.3 MB, free: 428 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.1527, allocations: 64.33 kB / 379.3 MB, free: 364 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002009/0.1529, allocations: 147.5 kB / 379.5 MB, free: 216 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001825/0.1531, allocations: 143.4 kB / 379.6 MB, free: 72 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.064e-05/0.1532, allocations: 20 kB / 379.6 MB, free: 52 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2726/0.4258, allocations: 75.11 kB / 379.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002275/0.4261, allocations: 89.12 kB / 379.8 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002151/0.4263, allocations: 128.1 kB / 379.9 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006021/0.4269, allocations: 347.5 kB / 380.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.4269, allocations: 2.031 kB / 380.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4269, allocations: 0 / 380.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.4269, allocations: 0 / 380.3 MB, free: 10.07 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001187/0.4281, allocations: 0.6626 MB / 380.9 MB, free: 9.535 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.268e-05/0.4282, allocations: 9.094 kB / 380.9 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.4283, allocations: 31.81 kB / 381 MB, free: 9.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005406/0.4289, allocations: 330 kB / 381.3 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.896e-05/0.429, allocations: 11.45 kB / 381.3 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.855e-05/0.429, allocations: 16.72 kB / 381.3 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003909/0.4294, allocations: 150.5 kB / 381.5 MB, free: 9.219 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.4294, allocations: 3.75 kB / 381.5 MB, free: 9.219 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.273e-05/0.4295, allocations: 11.77 kB / 381.5 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.4295, allocations: 2.688 kB / 381.5 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.4297, allocations: 66.19 kB / 381.5 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009233/0.4306, allocations: 497 kB / 382 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003958/0.431, allocations: 133.4 kB / 382.2 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/0.4312, allocations: 49.59 kB / 382.2 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.045e-05/0.4312, allocations: 1.5 kB / 382.2 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003235/0.4316, allocations: 111.6 kB / 382.3 MB, free: 8.855 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.753e-06/0.4316, allocations: 0 / 382.3 MB, free: 8.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000812/0.4324, allocations: 222.2 kB / 382.5 MB, free: 8.801 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.73e-05/0.4325, allocations: 110.2 kB / 382.6 MB, free: 8.676 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009966/0.4335, allocations: 428.5 kB / 383.1 MB, free: 8.559 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.4336, allocations: 33.19 kB / 383.1 MB, free: 8.527 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.4338, allocations: 167.5 kB / 383.3 MB, free: 8.438 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.22e-05/0.4338, allocations: 42.66 kB / 383.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.434, allocations: 43.28 kB / 383.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.4341, allocations: 342 kB / 383.7 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000149/0.4343, allocations: 44.3 kB / 383.7 MB, free: 8.086 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.4345, allocations: 100.8 kB / 383.8 MB, free: 8.031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.4348, allocations: 107.5 kB / 383.9 MB, free: 8.008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4348, allocations: 4.984 kB / 383.9 MB, free: 8.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003759/0.4352, allocations: 175.3 kB / 384.1 MB, free: 7.953 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.4352, allocations: 5.5 kB / 384.1 MB, free: 7.953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/0.4352, allocations: 0 / 384.1 MB, free: 7.953 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.762e-05/0.4352, allocations: 10.7 kB / 384.1 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.4354, allocations: 20.95 kB / 384.1 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.4354, allocations: 2.656 kB / 384.1 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.4355, allocations: 17.05 kB / 384.1 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.4356, allocations: 12.5 kB / 384.2 MB, free: 7.941 MB / 318.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: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001991/0.4358, allocations: 168.3 kB / 384.3 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.631e-05/0.4358, allocations: 30.41 kB / 384.4 MB, free: 7.809 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.712e-05/0.4359, allocations: 38.38 kB / 384.4 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.4359, allocations: 2.688 kB / 384.4 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.4359, allocations: 1.688 kB / 384.4 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.436, allocations: 6.328 kB / 384.4 MB, free: 7.793 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003631/0.4363, allocations: 296.6 kB / 384.7 MB, free: 7.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4363, allocations: 4.562 kB / 384.7 MB, free: 7.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.232e-05/0.4364, allocations: 9.312 kB / 384.7 MB, free: 7.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.4364, allocations: 4.719 kB / 384.7 MB, free: 7.598 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.4364, allocations: 9.969 kB / 384.7 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.4364, allocations: 1.656 kB / 384.7 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4364, allocations: 0 / 384.7 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003651/0.4368, allocations: 206 kB / 384.9 MB, free: 7.508 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.601e-05/0.4369, allocations: 98.67 kB / 385 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.752e-05/0.437, allocations: 15.38 kB / 385 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.735e-05/0.4371, allocations: 11.05 kB / 385 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.664e-05/0.4371, allocations: 15.08 kB / 385.1 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-05/0.4372, allocations: 9.234 kB / 385.1 MB, free: 7.395 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000371/0.4376, allocations: 314.9 kB / 385.4 MB, free: 7.312 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4376, allocations: 0 / 385.4 MB, free: 7.312 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003318/0.4379, allocations: 53.36 kB / 385.4 MB, free: 7.305 MB / 318.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: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001291/0.4392, allocations: 437.3 kB / 385.9 MB, free: 6.992 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003976/0.4396, allocations: 121.1 kB / 386 MB, free: 6.988 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.4396, allocations: 0 / 386 MB, free: 6.988 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001576/0.4398, allocations: 59.33 kB / 386 MB, free: 6.988 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005526/0.4403, allocations: 85.48 kB / 386.1 MB, free: 6.973 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.4414, allocations: 484.2 kB / 386.6 MB, free: 6.746 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003313/0.4418, allocations: 0.7696 MB / 387.4 MB, free: 6.051 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001571/0.4419, allocations: 46.31 kB / 387.4 MB, free: 6.039 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.681e-05/0.442, allocations: 27.34 kB / 387.4 MB, free: 6.031 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.442, allocations: 0 / 387.4 MB, free: 6.031 MB / 318.1 MB Notification: Performance of Templates: time 0.0102/0.4522, allocations: 3.868 MB / 391.3 MB, free: 5.66 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches