Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 176.3 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008315/0.0008313, allocations: 93.95 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003445, allocations: 11.94 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2882, allocations: 50.41 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.108/0.3963, allocations: 80.65 MB / 483.4 MB, free: 15.69 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.3966, allocations: 72.91 kB / 483.5 MB, free: 15.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01647/0.4131, allocations: 5.872 MB / 489.3 MB, free: 9.754 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.107e-06/0.4131, allocations: 0 / 489.3 MB, free: 9.754 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.861e-05/0.4132, allocations: 4 kB / 489.3 MB, free: 9.75 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0009191/0.4141, allocations: 0.516 MB / 489.9 MB, free: 9.176 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.4141, allocations: 12.03 kB / 489.9 MB, free: 9.164 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/0.4142, allocations: 24.66 kB / 489.9 MB, free: 9.141 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004369/0.4147, allocations: 266.9 kB / 490.2 MB, free: 8.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.894e-05/0.4147, allocations: 8.375 kB / 490.2 MB, free: 8.832 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.283e-05/0.4147, allocations: 4.375 kB / 490.2 MB, free: 8.828 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002778/0.415, allocations: 130.4 kB / 490.3 MB, free: 8.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.415, allocations: 192 / 490.3 MB, free: 8.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.916e-05/0.4151, allocations: 3.938 kB / 490.3 MB, free: 8.676 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.4151, allocations: 4 kB / 490.3 MB, free: 8.672 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001551/0.4152, allocations: 55.91 kB / 490.4 MB, free: 8.617 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008467/0.4161, allocations: 0.6194 MB / 491 MB, free: 7.938 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002539/0.4164, allocations: 127.9 kB / 491.1 MB, free: 7.785 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.4165, allocations: 54.48 kB / 491.2 MB, free: 7.723 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.4165, allocations: 4 kB / 491.2 MB, free: 7.719 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002088/0.4167, allocations: 117.9 kB / 491.3 MB, free: 7.582 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.413e-06/0.4168, allocations: 0 / 491.3 MB, free: 7.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004675/0.4172, allocations: 181.3 kB / 491.5 MB, free: 7.398 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.037e-05/0.4173, allocations: 132.5 kB / 491.6 MB, free: 7.238 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003132/0.4176, allocations: 288.9 kB / 491.9 MB, free: 6.945 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.4177, allocations: 29.7 kB / 491.9 MB, free: 6.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.4178, allocations: 128.5 kB / 492 MB, free: 6.777 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.585e-05/0.4178, allocations: 27.72 kB / 492 MB, free: 6.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.201e-06/0.4179, allocations: 0 / 492 MB, free: 6.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.418, allocations: 338.8 kB / 492.4 MB, free: 6.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.012e-05/0.4181, allocations: 31.98 kB / 492.4 MB, free: 6.379 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/0.4182, allocations: 89.98 kB / 492.5 MB, free: 6.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000188/0.4184, allocations: 96.7 kB / 492.6 MB, free: 6.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4184, allocations: 3.938 kB / 492.6 MB, free: 6.156 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002684/0.4187, allocations: 153.3 kB / 492.7 MB, free: 6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.4188, allocations: 7.938 kB / 492.8 MB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4188, allocations: 4 kB / 492.8 MB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.4188, allocations: 0 / 492.8 MB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.565e-05/0.4189, allocations: 15.94 kB / 492.8 MB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.4189, allocations: 11.92 kB / 492.8 MB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.973e-05/0.419, allocations: 11.98 kB / 492.8 MB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.419, allocations: 16.09 kB / 492.8 MB, free: 5.934 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001445/0.4192, allocations: 141.8 kB / 492.9 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.097e-05/0.4192, allocations: 23.72 kB / 493 MB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002612/0.4195, allocations: 119.2 kB / 493.1 MB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.4195, allocations: 7.984 kB / 493.1 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.4195, allocations: 0 / 493.1 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.4196, allocations: 0 / 493.1 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002945/0.4199, allocations: 253.5 kB / 493.3 MB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4199, allocations: 4 kB / 493.3 MB, free: 5.324 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.326e-05/0.4199, allocations: 8 kB / 493.4 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4199, allocations: 0 / 493.4 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.4199, allocations: 4 kB / 493.4 MB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.4199, allocations: 3.938 kB / 493.4 MB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4199, allocations: 0 / 493.4 MB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003066/0.4203, allocations: 194.5 kB / 493.6 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.581e-05/0.4204, allocations: 104.8 kB / 493.7 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.272e-05/0.4204, allocations: 4 kB / 493.7 MB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.637e-05/0.4205, allocations: 15.98 kB / 493.7 MB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.478e-05/0.4206, allocations: 15.97 kB / 493.7 MB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.4206, allocations: 8.125 kB / 493.7 MB, free: 4.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002157/0.4208, allocations: 220.4 kB / 493.9 MB, free: 4.715 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4208, allocations: 3.938 kB / 493.9 MB, free: 4.711 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002793/0.4211, allocations: 40 kB / 494 MB, free: 4.672 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001099/0.4222, allocations: 434.4 kB / 494.4 MB, free: 4.406 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003285/0.4226, allocations: 99.89 kB / 494.5 MB, free: 4.309 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4226, allocations: 4.188 kB / 494.5 MB, free: 4.305 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001324/0.4227, allocations: 51.92 kB / 494.5 MB, free: 4.254 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/0.4231, allocations: 48.7 kB / 494.6 MB, free: 4.203 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007037/0.4238, allocations: 383.8 kB / 495 MB, free: 3.789 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.4242, allocations: 0.7361 MB / 495.7 MB, free: 3.027 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.272e-05/0.4243, allocations: 29.69 kB / 495.7 MB, free: 3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.287e-05/0.4243, allocations: 23.42 kB / 495.7 MB, free: 2.98 MB / 362.7 MB Notification: Performance of SimCode: time 2.755e-06/0.4243, allocations: 0 / 495.7 MB, free: 2.98 MB / 362.7 MB Notification: Performance of Templates: time 0.006297/0.4306, allocations: 2.646 MB / 498.4 MB, free: 368 kB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches