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.0007922/0.0007922, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009439/0.001736, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006724/0.0006724, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008407/0.001513, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9481/0.9481, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09208/1.04, allocations: 53.64 MB / 243.3 MB, free: 15.59 MB / 250.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.323e-06/1.323e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.541e-05/1.673e-05, allocations: 6.312 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002093/0.00211, allocations: 1.936 MB / 246.5 MB, free: 12.38 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.003585, allocations: 1.172 MB / 247.6 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.805e-05/0.003684, allocations: 3.938 kB / 247.6 MB, free: 11.19 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003993/0.004083, allocations: 155.4 kB / 247.8 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002798/0.004363, allocations: 183.2 kB / 248 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002853/0.004648, allocations: 150.2 kB / 248.1 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002035/0.004851, allocations: 211.3 kB / 248.3 MB, free: 10.51 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.5e-05/0.004926, allocations: 18.45 kB / 248.3 MB, free: 10.49 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.005098, allocations: 164.3 kB / 248.5 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001055/0.005203, allocations: 75.78 kB / 248.6 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.005222, allocations: 8 kB / 248.6 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.005351, allocations: 63.89 kB / 248.6 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.135e-05/0.005412, allocations: 43.8 kB / 248.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.178e-05/0.005454, allocations: 31.94 kB / 248.7 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.005659, allocations: 171.3 kB / 248.9 MB, free: 9.945 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.155e-05/0.005671, allocations: 0 / 248.9 MB, free: 9.945 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.005672, allocations: 4 kB / 248.9 MB, free: 9.941 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.005682, allocations: 0 / 248.9 MB, free: 9.941 MB / 250.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.000551/0.006233, allocations: 464.9 kB / 249.3 MB, free: 9.457 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.006268, allocations: 11.97 kB / 249.3 MB, free: 9.445 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.006308, allocations: 24.91 kB / 249.4 MB, free: 9.422 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.006511, allocations: 185.6 kB / 249.6 MB, free: 9.215 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.006529, allocations: 4.375 kB / 249.6 MB, free: 9.211 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.006542, allocations: 8.375 kB / 249.6 MB, free: 9.203 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.006678, allocations: 108.4 kB / 249.7 MB, free: 9.078 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.006687, allocations: 3.938 kB / 249.7 MB, free: 9.074 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.006696, allocations: 4 kB / 249.7 MB, free: 9.07 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.006702, allocations: 3.984 kB / 249.7 MB, free: 9.066 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.299e-05/0.006745, allocations: 26.75 kB / 249.7 MB, free: 9.039 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003649/0.00711, allocations: 446.4 kB / 250.1 MB, free: 8.574 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/0.00725, allocations: 134.5 kB / 250.3 MB, free: 8.414 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.006e-05/0.00728, allocations: 26.58 kB / 250.3 MB, free: 8.379 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.007304, allocations: 11.88 kB / 250.3 MB, free: 8.367 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001247/0.007429, allocations: 112.7 kB / 250.4 MB, free: 8.234 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.032e-06/0.00743, allocations: 0 / 250.4 MB, free: 8.234 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001421/0.007572, allocations: 100.4 kB / 250.5 MB, free: 8.129 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.007617, allocations: 106.8 kB / 250.6 MB, free: 8 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.007756, allocations: 234.7 kB / 250.9 MB, free: 7.754 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.007769, allocations: 25.7 kB / 250.9 MB, free: 7.723 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.054e-05/0.007809, allocations: 116.7 kB / 251 MB, free: 7.605 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.33e-05/0.007832, allocations: 23.84 kB / 251 MB, free: 7.582 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.949e-05/0.007872, allocations: 37.69 kB / 251.1 MB, free: 7.539 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.933e-05/0.007951, allocations: 334.8 kB / 251.4 MB, free: 7.203 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.866e-05/0.00797, allocations: 14.77 kB / 251.4 MB, free: 7.188 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.838e-05/0.008018, allocations: 82.77 kB / 251.5 MB, free: 7.082 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.062e-05/0.008079, allocations: 73.8 kB / 251.5 MB, free: 6.992 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.008081, allocations: 0 / 251.5 MB, free: 6.992 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 9.325e-05/0.008174, allocations: 101 kB / 251.6 MB, free: 6.887 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.008189, allocations: 11.44 kB / 251.7 MB, free: 6.879 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.008193, allocations: 0 / 251.7 MB, free: 6.879 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.232e-06/0.008199, allocations: 0 / 251.7 MB, free: 6.879 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.043e-05/0.008259, allocations: 23.92 kB / 251.7 MB, free: 6.855 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.008263, allocations: 4 kB / 251.7 MB, free: 6.852 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.979e-05/0.008313, allocations: 15.94 kB / 251.7 MB, free: 6.836 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.008319, allocations: 8 kB / 251.7 MB, free: 6.828 MB / 250.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.171e-05/0.008391, allocations: 133.3 kB / 251.8 MB, free: 6.688 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.851e-05/0.008409, allocations: 15.92 kB / 251.9 MB, free: 6.672 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.117e-05/0.0085, allocations: 79.44 kB / 251.9 MB, free: 6.59 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.008503, allocations: 0 / 251.9 MB, free: 6.59 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.008506, allocations: 7.984 kB / 251.9 MB, free: 6.582 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.008509, allocations: 0 / 251.9 MB, free: 6.582 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.008615, allocations: 109.8 kB / 252 MB, free: 6.457 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.008616, allocations: 0 / 252 MB, free: 6.457 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.374e-05/0.00864, allocations: 19.92 kB / 252.1 MB, free: 6.438 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.914e-05/0.008659, allocations: 23.8 kB / 252.1 MB, free: 6.414 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.008661, allocations: 0 / 252.1 MB, free: 6.414 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.008667, allocations: 4 kB / 252.1 MB, free: 6.41 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.008668, allocations: 4 kB / 252.1 MB, free: 6.406 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.008669, allocations: 0 / 252.1 MB, free: 6.406 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.424e-05/0.008764, allocations: 125.4 kB / 252.2 MB, free: 6.258 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.008783, allocations: 3.938 kB / 252.2 MB, free: 6.254 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.988e-05/0.008823, allocations: 15.98 kB / 252.2 MB, free: 6.238 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.703e-05/0.00886, allocations: 15.92 kB / 252.3 MB, free: 6.223 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.00887, allocations: 4 kB / 252.3 MB, free: 6.219 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.596e-05/0.008936, allocations: 89.59 kB / 252.3 MB, free: 6.129 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008936, allocations: 0 / 252.3 MB, free: 6.129 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000152/0.009088, allocations: 39.94 kB / 252.4 MB, free: 6.09 MB / 250.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.00114/0.01023, allocations: 0.5463 MB / 252.9 MB, free: 5.812 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001075/0.01034, allocations: 64.78 kB / 253 MB, free: 5.746 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.01034, allocations: 0 / 253 MB, free: 5.746 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.834e-05/0.01039, allocations: 44.77 kB / 253 MB, free: 5.699 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001717/0.01056, allocations: 74.69 kB / 253.1 MB, free: 5.633 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004948/0.01106, allocations: 332.5 kB / 253.4 MB, free: 5.27 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.811e-05/0.01112, allocations: 87.83 kB / 253.5 MB, free: 5.164 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.105e-05/0.01117, allocations: 25.62 kB / 253.5 MB, free: 5.137 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.992e-05/0.01125, allocations: 75.36 kB / 253.6 MB, free: 5.062 MB / 250.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01125, allocations: 4 kB / 253.6 MB, free: 5.059 MB / 250.7 MB Notification: Performance of Templates: time 0.004897/0.01614, allocations: 3.137 MB / 256.8 MB, free: 1.969 MB / 250.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 -ignoreHideResult -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.6043994957581162]