Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 167.3 kB / 24.91 MB, free: 9.152 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9412/0.9412, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.935e-05/2.058e-05, allocations: 2.312 kB / 273.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.005902/0.005923, allocations: 1.934 MB / 275.4 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.007495, allocations: 1.165 MB / 276.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003098/0.01059, allocations: 7.938 kB / 276.6 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005044/0.0111, allocations: 163.5 kB / 276.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002886/0.01139, allocations: 175.1 kB / 276.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.01166, allocations: 143.5 kB / 277 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002179/0.01188, allocations: 219.3 kB / 277.3 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.044e-05/0.01196, allocations: 14.47 kB / 277.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.0121, allocations: 115.6 kB / 277.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001089/0.01221, allocations: 79.78 kB / 277.5 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.07e-05/0.01223, allocations: 12 kB / 277.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.01236, allocations: 63.89 kB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.085e-05/0.01242, allocations: 55.78 kB / 277.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.909e-05/0.01247, allocations: 43.84 kB / 277.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002289/0.01269, allocations: 175.4 kB / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.0127, allocations: 0 / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.0127, allocations: 0 / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.0127, allocations: 0 / 277.8 MB, free: 12.89 MB / 266.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.0004984/0.0132, allocations: 437.2 kB / 278.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.01323, allocations: 8.031 kB / 278.2 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.944e-05/0.01327, allocations: 16.92 kB / 278.3 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.01452, allocations: 193.6 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.01454, allocations: 8.375 kB / 278.5 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.01456, allocations: 8.375 kB / 278.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001526/0.01471, allocations: 96.39 kB / 278.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.01472, allocations: 7.938 kB / 278.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.01473, allocations: 4 kB / 278.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.01473, allocations: 0 / 278.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.069e-05/0.01478, allocations: 26.75 kB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003623/0.01515, allocations: 450.4 kB / 279 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.01527, allocations: 134.5 kB / 279.2 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.669e-05/0.01531, allocations: 30.5 kB / 279.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.01532, allocations: 7.938 kB / 279.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001294/0.01545, allocations: 104.7 kB / 279.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.042e-06/0.01546, allocations: 0 / 279.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001636/0.01562, allocations: 104.3 kB / 279.4 MB, free: 11.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.01566, allocations: 106.8 kB / 279.5 MB, free: 10.99 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001772/0.01584, allocations: 242.8 kB / 279.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.01585, allocations: 25.7 kB / 279.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.673e-05/0.0159, allocations: 108.5 kB / 279.9 MB, free: 10.6 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.481e-05/0.01593, allocations: 31.77 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-05/0.01598, allocations: 33.69 kB / 279.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.136e-05/0.01607, allocations: 334.8 kB / 280.3 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.496e-05/0.0161, allocations: 14.81 kB / 280.3 MB, free: 10.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.638e-05/0.01615, allocations: 78.83 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.752e-05/0.01623, allocations: 82.33 kB / 280.4 MB, free: 9.977 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01623, allocations: 0 / 280.4 MB, free: 9.977 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001141/0.01635, allocations: 92.36 kB / 280.5 MB, free: 9.879 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.759e-06/0.01636, allocations: 4 kB / 280.5 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.01636, allocations: 4 kB / 280.5 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.01637, allocations: 0 / 280.5 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.555e-05/0.01644, allocations: 19.94 kB / 280.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.197e-06/0.01644, allocations: 3.984 kB / 280.6 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.439e-05/0.01651, allocations: 15.89 kB / 280.6 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.01652, allocations: 12.09 kB / 280.6 MB, free: 9.82 MB / 266.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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.825e-05/0.01659, allocations: 128.6 kB / 280.7 MB, free: 9.684 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.01662, allocations: 23.91 kB / 280.7 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.01672, allocations: 71.45 kB / 280.8 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.01672, allocations: 4 kB / 280.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.01673, allocations: 0 / 280.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.01673, allocations: 4 kB / 280.8 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.01685, allocations: 109.8 kB / 280.9 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-06/0.01685, allocations: 4 kB / 280.9 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.58e-05/0.01688, allocations: 15.94 kB / 280.9 MB, free: 9.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.01688, allocations: 4 kB / 281 MB, free: 9.426 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.01689, allocations: 8.047 kB / 281 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.0169, allocations: 4 kB / 281 MB, free: 9.414 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.0169, allocations: 4 kB / 281 MB, free: 9.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000117/0.01702, allocations: 120.5 kB / 281.1 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.412e-05/0.01704, allocations: 23.8 kB / 281.1 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.01707, allocations: 11.92 kB / 281.1 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.364e-05/0.01712, allocations: 8 kB / 281.1 MB, free: 9.223 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.43e-05/0.01716, allocations: 27.84 kB / 281.2 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.01717, allocations: 4 kB / 281.2 MB, free: 9.191 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.637e-05/0.01726, allocations: 85.61 kB / 281.2 MB, free: 9.105 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01726, allocations: 0 / 281.2 MB, free: 9.105 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002077/0.01747, allocations: 35.98 kB / 281.3 MB, free: 9.07 MB / 266.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 (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.001192/0.01866, allocations: 0.5052 MB / 281.8 MB, free: 8.797 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001163/0.01878, allocations: 56.77 kB / 281.8 MB, free: 8.738 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.01878, allocations: 4 kB / 281.8 MB, free: 8.734 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.443e-05/0.01884, allocations: 44.95 kB / 281.9 MB, free: 8.688 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001896/0.01903, allocations: 47.39 kB / 281.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004343/0.01946, allocations: 336.4 kB / 282.3 MB, free: 8.285 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.335e-05/0.01951, allocations: 83.97 kB / 282.3 MB, free: 8.184 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.539e-05/0.01958, allocations: 25.55 kB / 282.4 MB, free: 8.156 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.01969, allocations: 75.36 kB / 282.4 MB, free: 8.082 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01969, allocations: 0 / 282.4 MB, free: 8.082 MB / 266.7 MB Notification: Performance of Templates: time 0.005608/0.0253, allocations: 3.096 MB / 285.5 MB, free: 5.035 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6017727847211063]