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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008547/0.0008547, allocations: 78.19 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000911/0.000911, allocations: 149.2 kB / 24.8 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8975/0.8975, allocations: 173.4 MB / 201.5 MB, free: 8.305 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 268.4 MB, free: 9.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.943e-05/2.077e-05, allocations: 2.312 kB / 268.4 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002119/0.002139, allocations: 1.848 MB / 270.2 MB, free: 7.926 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.003239, allocations: 0.9927 MB / 271.2 MB, free: 6.934 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.959e-05/0.003329, allocations: 4 kB / 271.2 MB, free: 6.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004953/0.003824, allocations: 180.6 kB / 271.4 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000215/0.004039, allocations: 130.5 kB / 271.5 MB, free: 6.629 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003033/0.004342, allocations: 179.4 kB / 271.7 MB, free: 6.453 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001957/0.004538, allocations: 211.2 kB / 271.9 MB, free: 6.246 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.686e-05/0.004615, allocations: 7.656 kB / 271.9 MB, free: 6.238 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.004731, allocations: 123.6 kB / 272.1 MB, free: 6.117 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.159e-05/0.004822, allocations: 71.84 kB / 272.1 MB, free: 6.047 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.004e-05/0.004842, allocations: 11.94 kB / 272.1 MB, free: 6.035 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.004947, allocations: 59.89 kB / 272.2 MB, free: 5.977 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.972e-05/0.005007, allocations: 52.73 kB / 272.2 MB, free: 5.926 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.108e-05/0.005048, allocations: 39.86 kB / 272.3 MB, free: 5.887 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001927/0.005241, allocations: 168.1 kB / 272.4 MB, free: 5.723 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.005243, allocations: 0 / 272.4 MB, free: 5.723 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.005244, allocations: 0.6875 kB / 272.4 MB, free: 5.723 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.005247, allocations: 0 / 272.4 MB, free: 5.723 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.0005073/0.005755, allocations: 0.5639 MB / 273 MB, free: 5.117 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.005791, allocations: 11 kB / 273 MB, free: 5.109 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.112e-05/0.005832, allocations: 20.84 kB / 273 MB, free: 5.09 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001708/0.006003, allocations: 212.3 kB / 273.3 MB, free: 4.855 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.00602, allocations: 4.375 kB / 273.3 MB, free: 4.852 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.006031, allocations: 11.94 kB / 273.3 MB, free: 4.84 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001227/0.006154, allocations: 96.39 kB / 273.4 MB, free: 4.723 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.595e-06/0.006161, allocations: 3.984 kB / 273.4 MB, free: 4.719 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.006169, allocations: 12.91 kB / 273.4 MB, free: 4.707 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.006174, allocations: 0 / 273.4 MB, free: 4.707 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.646e-05/0.006211, allocations: 24.47 kB / 273.4 MB, free: 4.684 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003695/0.00658, allocations: 0.6768 MB / 274.1 MB, free: 3.965 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001095/0.00669, allocations: 121.4 kB / 274.2 MB, free: 3.809 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.155e-05/0.006721, allocations: 39.05 kB / 274.2 MB, free: 3.758 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.006738, allocations: 0 / 274.2 MB, free: 3.758 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001055/0.006844, allocations: 120 kB / 274.4 MB, free: 3.613 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 8.61e-07/0.006845, allocations: 0 / 274.4 MB, free: 3.613 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001884/0.007033, allocations: 137.5 kB / 274.5 MB, free: 3.473 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.007072, allocations: 110.8 kB / 274.6 MB, free: 3.34 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.007218, allocations: 288.2 kB / 274.9 MB, free: 3.039 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.00723, allocations: 25.7 kB / 274.9 MB, free: 3.008 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.063e-05/0.007301, allocations: 182.8 kB / 275.1 MB, free: 2.824 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.585e-05/0.007327, allocations: 27.73 kB / 275.1 MB, free: 2.797 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.9e-05/0.007366, allocations: 43.34 kB / 275.1 MB, free: 2.746 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.007474, allocations: 0.5078 MB / 275.7 MB, free: 2.227 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.073e-05/0.007494, allocations: 11.98 kB / 275.7 MB, free: 2.215 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.144e-05/0.007546, allocations: 99.8 kB / 275.8 MB, free: 2.086 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.259e-05/0.007609, allocations: 82.94 kB / 275.8 MB, free: 1.984 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.00761, allocations: 0 / 275.8 MB, free: 1.984 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001074/0.007717, allocations: 109.5 kB / 276 MB, free: 1.871 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.007728, allocations: 8 kB / 276 MB, free: 1.863 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.007732, allocations: 0 / 276 MB, free: 1.863 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.889e-06/0.007742, allocations: 0 / 276 MB, free: 1.863 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.305e-05/0.007795, allocations: 23.92 kB / 276 MB, free: 1.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.007799, allocations: 96 / 276 MB, free: 1.84 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.902e-05/0.007848, allocations: 27.88 kB / 276 MB, free: 1.812 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.007855, allocations: 4 kB / 276 MB, free: 1.809 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.25e-05/0.007927, allocations: 169.3 kB / 276.2 MB, free: 1.633 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.00795, allocations: 23.86 kB / 276.2 MB, free: 1.609 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.008061, allocations: 99.42 kB / 276.3 MB, free: 1.504 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.008063, allocations: 0 / 276.3 MB, free: 1.504 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-06/0.008065, allocations: 0 / 276.3 MB, free: 1.504 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.008068, allocations: 4 kB / 276.3 MB, free: 1.5 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001112/0.008179, allocations: 149.1 kB / 276.5 MB, free: 1.328 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.008181, allocations: 4 kB / 276.5 MB, free: 1.324 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.131e-05/0.008202, allocations: 8 kB / 276.5 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.008204, allocations: 128 / 276.5 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.008213, allocations: 15.94 kB / 276.5 MB, free: 1.301 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.008214, allocations: 0 / 276.5 MB, free: 1.301 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.008216, allocations: 0 / 276.5 MB, free: 1.301 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001231/0.008339, allocations: 175 kB / 276.6 MB, free: 1.102 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.111e-05/0.00836, allocations: 27.8 kB / 276.7 MB, free: 1.074 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.008379, allocations: 11.92 kB / 276.7 MB, free: 1.062 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.764e-05/0.008416, allocations: 8 kB / 276.7 MB, free: 1.055 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.008454, allocations: 23.97 kB / 276.7 MB, free: 1.031 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.008464, allocations: 7.938 kB / 276.7 MB, free: 1.023 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.973e-05/0.008544, allocations: 193.1 kB / 276.9 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008544, allocations: 0 / 276.9 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001625/0.008706, allocations: 35.94 kB / 277 MB, free: 0.8008 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.0007498/0.009456, allocations: 390.5 kB / 277.3 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001095/0.009566, allocations: 67.58 kB / 277.4 MB, free: 496 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.009567, allocations: 0 / 277.4 MB, free: 496 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.434e-05/0.009611, allocations: 39.59 kB / 277.4 MB, free: 452 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.009815, allocations: 60.64 kB / 277.5 MB, free: 392 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003396/0.01015, allocations: 317.9 kB / 277.8 MB, free: 36 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.842e-05/0.0102, allocations: 75.98 kB / 277.9 MB, free: 15.94 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.758e-05/0.01025, allocations: 21.47 kB / 277.9 MB, free: 15.92 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.341e-05/0.01033, allocations: 102.2 kB / 278 MB, free: 15.82 MB / 266.7 MB Notification: Performance of SimCode: time 3.7e-07/0.01033, allocations: 4 kB / 278 MB, free: 15.82 MB / 266.7 MB Notification: Performance of Templates: time 0.004421/0.01476, allocations: 3.151 MB / 281.2 MB, free: 12.73 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.6150103420950472]