Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009636/0.0009638, allocations: 175.2 kB / 14.1 MB, free: 1.211 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.483/1.483, allocations: 205.2 MB / 219.8 MB, free: 14.28 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.0007673/0.0007675, allocations: 86.66 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.001e-05/3.003e-05, allocations: 4 kB / 322.4 MB, free: 17.37 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1175, allocations: 47.57 MB / 370 MB, free: 1.727 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3831/0.5007, allocations: 79.28 MB / 449.3 MB, free: 14.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/0.5011, allocations: 69.22 kB / 449.4 MB, free: 13.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02142/0.5225, allocations: 5.698 MB / 455.1 MB, free: 9.168 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.866e-06/0.5226, allocations: 4 kB / 455.1 MB, free: 9.164 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.643e-05/0.5226, allocations: 4 kB / 455.1 MB, free: 9.16 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007028/0.5233, allocations: 487.8 kB / 455.5 MB, free: 8.645 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.5234, allocations: 8.031 kB / 455.5 MB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.487e-05/0.5234, allocations: 15.81 kB / 455.6 MB, free: 8.621 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.5239, allocations: 272.2 kB / 455.8 MB, free: 8.332 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.5239, allocations: 4 kB / 455.8 MB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.5239, allocations: 7.938 kB / 455.8 MB, free: 8.324 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.5242, allocations: 113.1 kB / 455.9 MB, free: 8.207 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.5242, allocations: 0 / 455.9 MB, free: 8.207 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.5242, allocations: 3.75 kB / 456 MB, free: 8.207 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.5242, allocations: 4 kB / 456 MB, free: 8.203 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.5243, allocations: 51.16 kB / 456 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007253/0.5251, allocations: 0.6126 MB / 456.6 MB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.5253, allocations: 123 kB / 456.7 MB, free: 7.418 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.723e-05/0.5253, allocations: 45.83 kB / 456.8 MB, free: 7.375 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.5254, allocations: 0 / 456.8 MB, free: 7.375 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.5256, allocations: 124.9 kB / 456.9 MB, free: 7.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.5256, allocations: 0 / 456.9 MB, free: 7.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002726/0.5258, allocations: 136 kB / 457 MB, free: 7.133 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/0.5259, allocations: 128.5 kB / 457.2 MB, free: 6.977 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.5262, allocations: 261.4 kB / 457.4 MB, free: 6.762 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.5262, allocations: 37.55 kB / 457.5 MB, free: 6.723 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.186e-05/0.5263, allocations: 123 kB / 457.6 MB, free: 6.621 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.083e-05/0.5263, allocations: 31.42 kB / 457.6 MB, free: 6.594 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.662e-06/0.5264, allocations: 3.875 kB / 457.6 MB, free: 6.594 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.5265, allocations: 330.3 kB / 457.9 MB, free: 6.27 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.238e-05/0.5265, allocations: 31.44 kB / 458 MB, free: 6.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.683e-05/0.5266, allocations: 85.31 kB / 458 MB, free: 6.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.976e-05/0.5267, allocations: 35.31 kB / 458.1 MB, free: 6.133 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.5267, allocations: 0 / 458.1 MB, free: 6.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000204/0.5269, allocations: 136.4 kB / 458.2 MB, free: 6.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.5269, allocations: 4 kB / 458.2 MB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.5269, allocations: 4.125 kB / 458.2 MB, free: 6.012 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.527, allocations: 4 kB / 458.2 MB, free: 6.008 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.776e-05/0.5271, allocations: 19.92 kB / 458.2 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.5271, allocations: 0 / 458.2 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.5272, allocations: 15.98 kB / 458.3 MB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.5272, allocations: 7.5 kB / 458.3 MB, free: 5.969 MB / 330.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 () * 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 7.942e-05/0.5273, allocations: 120.7 kB / 458.4 MB, free: 5.848 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.318e-05/0.5273, allocations: 23.72 kB / 458.4 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001921/0.5275, allocations: 110.3 kB / 458.5 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/0.5276, allocations: 4 kB / 458.5 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.5276, allocations: 0 / 458.5 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.5276, allocations: 3.984 kB / 458.5 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002051/0.5278, allocations: 252.5 kB / 458.8 MB, free: 5.465 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.5278, allocations: 7.953 kB / 458.8 MB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.45e-05/0.5278, allocations: 7.984 kB / 458.8 MB, free: 5.449 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.5278, allocations: 4 kB / 458.8 MB, free: 5.445 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.5279, allocations: 0 / 458.8 MB, free: 5.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.5279, allocations: 8 kB / 458.8 MB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.5279, allocations: 0 / 458.8 MB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002364/0.5281, allocations: 197.7 kB / 459 MB, free: 5.234 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.09e-05/0.5282, allocations: 112.5 kB / 459.1 MB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.002e-05/0.5283, allocations: 4 kB / 459.1 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.5284, allocations: 19.67 kB / 459.1 MB, free: 5.094 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.383e-05/0.5285, allocations: 11.97 kB / 459.1 MB, free: 5.082 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.5285, allocations: 4 kB / 459.1 MB, free: 5.078 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001984/0.5287, allocations: 215.8 kB / 459.3 MB, free: 4.906 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5287, allocations: 0 / 459.3 MB, free: 4.906 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002521/0.5289, allocations: 39.94 kB / 459.4 MB, free: 4.871 MB / 330.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) * 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.0008716/0.5298, allocations: 394.8 kB / 459.8 MB, free: 4.492 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002161/0.53, allocations: 86.59 kB / 459.9 MB, free: 4.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5301, allocations: 4 kB / 459.9 MB, free: 4.426 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.331e-05/0.5302, allocations: 51.38 kB / 459.9 MB, free: 4.391 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.5305, allocations: 43.98 kB / 460 MB, free: 4.355 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005689/0.5311, allocations: 274.2 kB / 460.2 MB, free: 4.094 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.5314, allocations: 0.7397 MB / 461 MB, free: 3.332 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.944e-05/0.5315, allocations: 29.69 kB / 461 MB, free: 3.305 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.491e-05/0.5315, allocations: 19.44 kB / 461 MB, free: 3.285 MB / 330.7 MB Notification: Performance of SimCode: time 2.695e-06/0.5315, allocations: 0 / 461 MB, free: 3.285 MB / 330.7 MB Notification: Performance of Templates: time 0.005839/0.5374, allocations: 2.641 MB / 463.7 MB, free: 0.6484 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches