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.001214/0.001214, allocations: 183.4 kB / 18.04 MB, free: 3.781 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.237/1.237, allocations: 205.4 MB / 224.2 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007189/0.0007191, allocations: 89.06 kB / 272.5 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003104/0.0003105, allocations: 16 kB / 329.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.1956, allocations: 47.57 MB / 377 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09338/0.2891, allocations: 79.07 MB / 456.1 MB, free: 1.469 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002892/0.2894, allocations: 71.97 kB / 456.2 MB, free: 1.398 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03127/0.3207, allocations: 9.049 MB / 465.2 MB, free: 8.344 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3207, allocations: 0 / 465.2 MB, free: 8.344 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.7e-05/0.3208, allocations: 4 kB / 465.2 MB, free: 8.34 MB / 346.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.0008577/0.3216, allocations: 0.6233 MB / 465.8 MB, free: 7.652 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.3217, allocations: 8.031 kB / 465.8 MB, free: 7.645 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.219e-05/0.3218, allocations: 32.56 kB / 465.9 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000528/0.3223, allocations: 355.8 kB / 466.2 MB, free: 7.227 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.402e-05/0.3223, allocations: 12.38 kB / 466.2 MB, free: 7.215 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.3224, allocations: 12.38 kB / 466.2 MB, free: 7.203 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002802/0.3227, allocations: 156.7 kB / 466.4 MB, free: 7.035 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.3227, allocations: 192 / 466.4 MB, free: 7.035 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.3227, allocations: 7.938 kB / 466.4 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.3227, allocations: 0 / 466.4 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.3229, allocations: 79.81 kB / 466.5 MB, free: 6.949 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007068/0.3236, allocations: 0.5043 MB / 467 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003139/0.3239, allocations: 142.7 kB / 467.1 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.3241, allocations: 56.83 kB / 467.2 MB, free: 6.188 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.3241, allocations: 4 kB / 467.2 MB, free: 6.184 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.3243, allocations: 107.3 kB / 467.3 MB, free: 6.066 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.953e-06/0.3243, allocations: 3.938 kB / 467.3 MB, free: 6.062 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004815/0.3248, allocations: 217.2 kB / 467.5 MB, free: 5.844 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.3249, allocations: 122.7 kB / 467.6 MB, free: 5.699 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004968/0.3254, allocations: 428.4 kB / 468 MB, free: 5.277 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.3254, allocations: 33.7 kB / 468.1 MB, free: 5.238 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.3256, allocations: 160 kB / 468.2 MB, free: 5.078 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.33e-05/0.3256, allocations: 43.44 kB / 468.3 MB, free: 5.035 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-06/0.3256, allocations: 4 kB / 468.3 MB, free: 5.031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.3258, allocations: 342.8 kB / 468.6 MB, free: 4.688 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.3259, allocations: 43.98 kB / 468.7 MB, free: 4.645 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.326, allocations: 111.3 kB / 468.8 MB, free: 4.516 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.3262, allocations: 113.9 kB / 468.9 MB, free: 4.398 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3263, allocations: 0 / 468.9 MB, free: 4.398 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003002/0.3266, allocations: 185.1 kB / 469.1 MB, free: 4.211 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.3266, allocations: 8 kB / 469.1 MB, free: 4.203 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3266, allocations: 3.984 kB / 469.1 MB, free: 4.199 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.3266, allocations: 0 / 469.1 MB, free: 4.199 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.3267, allocations: 23.98 kB / 469.1 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.3267, allocations: 7.875 kB / 469.1 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.3269, allocations: 15.98 kB / 469.1 MB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.3269, allocations: 8 kB / 469.1 MB, free: 4.145 MB / 346.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001581/0.327, allocations: 175.6 kB / 469.3 MB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.402e-05/0.3271, allocations: 31.62 kB / 469.3 MB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003811/0.3275, allocations: 196.4 kB / 469.5 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3275, allocations: 4 kB / 469.5 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3275, allocations: 3.938 kB / 469.5 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3275, allocations: 0 / 469.5 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002685/0.3278, allocations: 321.4 kB / 469.8 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3278, allocations: 4 kB / 469.8 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.158e-05/0.3279, allocations: 11.98 kB / 469.9 MB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3279, allocations: 4 kB / 469.9 MB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.3279, allocations: 0 / 469.9 MB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.3279, allocations: 4 kB / 469.9 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3279, allocations: 7.938 kB / 469.9 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003163/0.3282, allocations: 213.6 kB / 470.1 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.492e-05/0.3283, allocations: 124.7 kB / 470.2 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.141e-05/0.3284, allocations: 8 kB / 470.2 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.054e-05/0.3285, allocations: 15.98 kB / 470.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.3285, allocations: 11.92 kB / 470.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.3286, allocations: 12 kB / 470.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003295/0.3289, allocations: 311 kB / 470.5 MB, free: 2.609 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3289, allocations: 4 kB / 470.6 MB, free: 2.605 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002877/0.3292, allocations: 71.78 kB / 470.6 MB, free: 2.535 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: 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) * Number of clocked states: 0 () * 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.0008764/0.3301, allocations: 441 kB / 471.1 MB, free: 2.117 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002948/0.3304, allocations: 131.8 kB / 471.2 MB, free: 1.988 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.3304, allocations: 0 / 471.2 MB, free: 1.988 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.3305, allocations: 71.91 kB / 471.3 MB, free: 1.918 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004036/0.3309, allocations: 66.91 kB / 471.3 MB, free: 1.852 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008125/0.3318, allocations: 0.5581 MB / 471.9 MB, free: 1.262 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.3321, allocations: 0.7794 MB / 472.7 MB, free: 468 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001441/0.3323, allocations: 50.25 kB / 472.7 MB, free: 420 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.098e-05/0.3323, allocations: 35.42 kB / 472.7 MB, free: 388 kB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3323, allocations: 0 / 472.7 MB, free: 388 kB / 346.7 MB Notification: Performance of Templates: time 0.007643/0.34, allocations: 3.846 MB / 476.6 MB, free: 12.54 MB / 362.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/jenkins1/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