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.001498/0.001498, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001896/0.001896, allocations: 168.4 kB / 24.91 MB, free: 8.262 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.9153/0.9153, allocations: 177.1 MB / 205.3 MB, free: 5.477 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.813e-06/1.813e-06, allocations: 0 / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.879e-05/2.06e-05, allocations: 2.312 kB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002208/0.002229, allocations: 1.887 MB / 275.3 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.003755, allocations: 1.165 MB / 276.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.112e-05/0.003846, allocations: 3.938 kB / 276.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004771/0.004323, allocations: 167.4 kB / 276.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003021/0.004625, allocations: 183.1 kB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00028/0.004905, allocations: 147.4 kB / 277 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002013/0.005106, allocations: 211.4 kB / 277.2 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.111e-05/0.005178, allocations: 10.47 kB / 277.2 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.005296, allocations: 123.6 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.712e-05/0.005394, allocations: 75.84 kB / 277.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.982e-05/0.005413, allocations: 15.94 kB / 277.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.005516, allocations: 63.89 kB / 277.5 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.232e-05/0.005579, allocations: 55.77 kB / 277.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.378e-05/0.005623, allocations: 43.84 kB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.005819, allocations: 163.5 kB / 277.7 MB, free: 13 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.634e-06/0.00582, allocations: 0 / 277.7 MB, free: 13 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.005821, allocations: 0 / 277.7 MB, free: 13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.126e-06/0.005824, allocations: 3.938 kB / 277.7 MB, free: 13 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.000414/0.006238, allocations: 437.3 kB / 278.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.733e-05/0.006266, allocations: 8.031 kB / 278.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.57e-05/0.006301, allocations: 20.91 kB / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003005/0.006602, allocations: 197.6 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.006618, allocations: 12.38 kB / 278.4 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.00663, allocations: 8.375 kB / 278.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001114/0.006742, allocations: 96.41 kB / 278.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.006748, allocations: 3.938 kB / 278.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.203e-06/0.006756, allocations: 0 / 278.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.00676, allocations: 0 / 278.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.965e-05/0.006799, allocations: 34.72 kB / 278.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003016/0.007101, allocations: 458.3 kB / 279 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001091/0.00721, allocations: 130.6 kB / 279.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.818e-05/0.007238, allocations: 30.52 kB / 279.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.007254, allocations: 11.92 kB / 279.1 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.924e-05/0.007353, allocations: 108.7 kB / 279.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 8.91e-07/0.007354, allocations: 0 / 279.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001448/0.007499, allocations: 96.36 kB / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.007539, allocations: 114.9 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.007677, allocations: 234.7 kB / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.007691, allocations: 29.7 kB / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.029e-05/0.007732, allocations: 112.5 kB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.007755, allocations: 27.78 kB / 279.8 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.656e-05/0.007792, allocations: 33.69 kB / 279.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.224e-05/0.007864, allocations: 330.8 kB / 280.2 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.904e-05/0.007883, allocations: 10.83 kB / 280.2 MB, free: 10.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.131e-05/0.007935, allocations: 86.77 kB / 280.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.841e-05/0.007993, allocations: 74.38 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.007995, allocations: 0 / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 9.112e-05/0.008086, allocations: 100.3 kB / 280.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.809e-06/0.008096, allocations: 8 kB / 280.5 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.008099, allocations: 0 / 280.5 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.157e-06/0.008109, allocations: 4 kB / 280.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5e-05/0.008159, allocations: 19.98 kB / 280.5 MB, free: 9.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.045e-06/0.008162, allocations: 0 / 280.5 MB, free: 9.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.533e-05/0.008207, allocations: 16.05 kB / 280.5 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.533e-06/0.008213, allocations: 7.984 kB / 280.5 MB, free: 9.906 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 6.668e-05/0.00828, allocations: 128.5 kB / 280.6 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.183e-05/0.008302, allocations: 19.92 kB / 280.7 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.347e-05/0.008385, allocations: 67.45 kB / 280.7 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.008388, allocations: 4 kB / 280.7 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.008389, allocations: 0 / 280.7 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.008394, allocations: 3.984 kB / 280.7 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/0.008494, allocations: 109.8 kB / 280.8 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.008497, allocations: 11.94 kB / 280.9 MB, free: 9.531 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.665e-05/0.008514, allocations: 11.92 kB / 280.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.008515, allocations: 0 / 280.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.008523, allocations: 11.94 kB / 280.9 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.008524, allocations: 0 / 280.9 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.008525, allocations: 0 / 280.9 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.241e-05/0.008617, allocations: 128.4 kB / 281 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.026e-05/0.008637, allocations: 23.84 kB / 281 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.008655, allocations: 3.938 kB / 281 MB, free: 9.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.759e-05/0.008692, allocations: 12 kB / 281 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.421e-05/0.008727, allocations: 16.09 kB / 281.1 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.008738, allocations: 12 kB / 281.1 MB, free: 9.289 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.568e-05/0.008804, allocations: 89.59 kB / 281.2 MB, free: 9.199 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008804, allocations: 0 / 281.2 MB, free: 9.199 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001427/0.008946, allocations: 35.94 kB / 281.2 MB, free: 9.164 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.0009749/0.009921, allocations: 0.5115 MB / 281.7 MB, free: 8.887 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001021/0.01002, allocations: 64.7 kB / 281.8 MB, free: 8.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.01003, allocations: 4.188 kB / 281.8 MB, free: 8.816 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.136e-05/0.01007, allocations: 36.78 kB / 281.8 MB, free: 8.777 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.01046, allocations: 61.58 kB / 281.9 MB, free: 8.723 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003403/0.0108, allocations: 324.5 kB / 282.2 MB, free: 8.371 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.782e-05/0.01084, allocations: 79.97 kB / 282.3 MB, free: 8.273 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.87e-05/0.01089, allocations: 25.69 kB / 282.3 MB, free: 8.246 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.215e-05/0.01097, allocations: 83.36 kB / 282.4 MB, free: 8.164 MB / 266.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01097, allocations: 0 / 282.4 MB, free: 8.164 MB / 266.7 MB Notification: Performance of Templates: time 0.004349/0.01532, allocations: 3.091 MB / 285.5 MB, free: 5.121 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 -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.730584950186312]