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/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) 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: 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/Complex 3.2.3+maint.om/package.mo): time 0.0009543/0.0009543, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.332/1.332, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007839/0.0007838, allocations: 90.36 kB / 262.5 MB, free: 1.672 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.893e-05/1.896e-05, allocations: 0 / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08755/0.08758, allocations: 47.59 MB / 363.1 MB, free: 7.082 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3172/0.4048, allocations: 78.5 MB / 441.6 MB, free: 1.152 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.4051, allocations: 72.64 kB / 441.6 MB, free: 1.117 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02248/0.4276, allocations: 8.931 MB / 450.6 MB, free: 9.734 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4276, allocations: 3.938 kB / 450.6 MB, free: 9.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.667e-05/0.4276, allocations: 7.938 kB / 450.6 MB, free: 9.723 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.000752/0.4284, allocations: 0.5655 MB / 451.1 MB, free: 9.117 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.4284, allocations: 8.031 kB / 451.2 MB, free: 9.109 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.071e-05/0.4285, allocations: 35.61 kB / 451.2 MB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005299/0.4291, allocations: 341.7 kB / 451.5 MB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.4291, allocations: 4 kB / 451.5 MB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.567e-05/0.4291, allocations: 11.98 kB / 451.5 MB, free: 8.723 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001356/0.4293, allocations: 70.5 kB / 451.6 MB, free: 8.676 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.4295, allocations: 135.6 kB / 451.7 MB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.4295, allocations: 0 / 451.7 MB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.4295, allocations: 0 / 451.7 MB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.4295, allocations: 8 kB / 451.7 MB, free: 8.547 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006993/0.4302, allocations: 483 kB / 452.2 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.4304, allocations: 118.1 kB / 452.3 MB, free: 8.031 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.485e-05/0.4305, allocations: 47.78 kB / 452.4 MB, free: 7.996 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.4305, allocations: 0 / 452.4 MB, free: 7.996 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001453/0.4307, allocations: 105.6 kB / 452.5 MB, free: 7.898 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.923e-06/0.4307, allocations: 0 / 452.5 MB, free: 7.898 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003227/0.431, allocations: 172.3 kB / 452.6 MB, free: 7.754 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.4311, allocations: 106.8 kB / 452.8 MB, free: 7.625 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003891/0.4315, allocations: 377.5 kB / 453.1 MB, free: 7.336 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.4315, allocations: 25.7 kB / 453.1 MB, free: 7.305 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.699e-05/0.4316, allocations: 161.1 kB / 453.3 MB, free: 7.195 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/0.4317, allocations: 42.84 kB / 453.3 MB, free: 7.16 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-06/0.4317, allocations: 0 / 453.3 MB, free: 7.16 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.4318, allocations: 344 kB / 453.7 MB, free: 6.828 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.443e-05/0.4319, allocations: 41.05 kB / 453.7 MB, free: 6.801 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.338e-05/0.432, allocations: 92.12 kB / 453.8 MB, free: 6.711 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.796e-05/0.432, allocations: 45.41 kB / 453.9 MB, free: 6.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.4321, allocations: 0 / 453.9 MB, free: 6.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002149/0.4323, allocations: 165.5 kB / 454 MB, free: 6.539 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.4323, allocations: 4 kB / 454 MB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.4323, allocations: 0 / 454 MB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.4323, allocations: 4 kB / 454 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.4324, allocations: 23.42 kB / 454 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.4324, allocations: 7.953 kB / 454.1 MB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.4326, allocations: 19.83 kB / 454.1 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.4326, allocations: 4 kB / 454.1 MB, free: 6.48 MB / 330.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: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.161e-05/0.4327, allocations: 122.4 kB / 454.2 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.731e-05/0.4327, allocations: 35.56 kB / 454.2 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002775/0.433, allocations: 178.8 kB / 454.4 MB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.433, allocations: 4 kB / 454.4 MB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.433, allocations: 0 / 454.4 MB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.433, allocations: 7.891 kB / 454.4 MB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002463/0.4333, allocations: 282.3 kB / 454.7 MB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.4333, allocations: 0 / 454.7 MB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.302e-05/0.4334, allocations: 14.88 kB / 454.7 MB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.4334, allocations: 4 kB / 454.7 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.4334, allocations: 4 kB / 454.7 MB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.4334, allocations: 4 kB / 454.7 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4334, allocations: 0 / 454.7 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002484/0.4337, allocations: 205.3 kB / 454.9 MB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.176e-05/0.4338, allocations: 118.5 kB / 455 MB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.294e-05/0.4338, allocations: 7.547 kB / 455 MB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.589e-05/0.4339, allocations: 12 kB / 455.1 MB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-05/0.434, allocations: 22.91 kB / 455.1 MB, free: 5.523 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.434, allocations: 4 kB / 455.1 MB, free: 5.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002821/0.4343, allocations: 300.2 kB / 455.4 MB, free: 5.297 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4343, allocations: 0 / 455.4 MB, free: 5.297 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000287/0.4346, allocations: 55.94 kB / 455.4 MB, free: 5.242 MB / 330.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: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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.0007329/0.4353, allocations: 370.1 kB / 455.8 MB, free: 4.883 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002209/0.4356, allocations: 119.8 kB / 455.9 MB, free: 4.797 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.4356, allocations: 0 / 455.9 MB, free: 4.797 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.4357, allocations: 60.5 kB / 456 MB, free: 4.758 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.436, allocations: 67.27 kB / 456 MB, free: 4.703 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005923/0.4366, allocations: 385.9 kB / 456.4 MB, free: 4.355 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.437, allocations: 0.7832 MB / 457.2 MB, free: 3.551 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001275/0.4371, allocations: 49.8 kB / 457.2 MB, free: 3.504 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.695e-05/0.4372, allocations: 27.42 kB / 457.3 MB, free: 3.477 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4372, allocations: 4 kB / 457.3 MB, free: 3.473 MB / 330.7 MB Notification: Performance of Templates: time 0.006959/0.4441, allocations: 3.526 MB / 460.8 MB, free: 15.96 MB / 346.7 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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches