Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001922/0.001922, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001922/0.001922, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 177 MB / 204.4 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.681e-05/3.902e-05, allocations: 2.312 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004771/0.00481, allocations: 1.851 MB / 274 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003146/0.007955, allocations: 1.145 MB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.0081, allocations: 4 kB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009613/0.009061, allocations: 175.4 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006082/0.009669, allocations: 175.1 kB / 275.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005484/0.01022, allocations: 143.5 kB / 275.7 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004126/0.01063, allocations: 215.3 kB / 275.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.01074, allocations: 21.73 kB / 275.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002596/0.011, allocations: 115.7 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001833/0.01119, allocations: 75.78 kB / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.024e-05/0.01123, allocations: 12 kB / 276.1 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000202/0.01143, allocations: 63.83 kB / 276.2 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.01154, allocations: 47.84 kB / 276.2 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.01165, allocations: 51.84 kB / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004993/0.01215, allocations: 223.3 kB / 276.5 MB, free: 13.49 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.01215, allocations: 7.938 kB / 276.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.01215, allocations: 0 / 276.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.01216, allocations: 0 / 276.5 MB, free: 13.48 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.001191/0.01335, allocations: 0.5709 MB / 277.1 MB, free: 12.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.0134, allocations: 11.98 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.0135, allocations: 28.8 kB / 277.1 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004704/0.01397, allocations: 203.7 kB / 277.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.01399, allocations: 4.359 kB / 277.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.01402, allocations: 12.38 kB / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003449/0.01436, allocations: 124.8 kB / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.01438, allocations: 192 / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.01439, allocations: 384 / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.0144, allocations: 7.938 kB / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002237/0.01463, allocations: 47.91 kB / 277.5 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.01578, allocations: 0.7581 MB / 278.2 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000408/0.01619, allocations: 141.4 kB / 278.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.01637, allocations: 59.05 kB / 278.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.192e-05/0.01641, allocations: 3.938 kB / 278.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003895/0.0168, allocations: 143.9 kB / 278.6 MB, free: 11.17 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.543e-06/0.01681, allocations: 0 / 278.6 MB, free: 11.17 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.00081/0.01762, allocations: 169.5 kB / 278.7 MB, free: 11 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.01773, allocations: 110.8 kB / 278.9 MB, free: 10.87 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000558/0.01829, allocations: 348.2 kB / 279.2 MB, free: 10.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.01833, allocations: 29.7 kB / 279.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002193/0.01855, allocations: 186.8 kB / 279.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.175e-05/0.01861, allocations: 35.94 kB / 279.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.01871, allocations: 47.3 kB / 279.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003907/0.0191, allocations: 0.5196 MB / 280 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.01924, allocations: 27.98 kB / 280 MB, free: 9.641 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.01948, allocations: 111.8 kB / 280.1 MB, free: 9.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003012/0.01978, allocations: 110.8 kB / 280.3 MB, free: 9.371 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.01978, allocations: 0 / 280.3 MB, free: 9.371 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005731/0.02035, allocations: 153.4 kB / 280.4 MB, free: 9.215 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.02038, allocations: 8 kB / 280.4 MB, free: 9.207 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.02038, allocations: 0 / 280.4 MB, free: 9.207 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.2e-05/0.02041, allocations: 4 kB / 280.4 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.02055, allocations: 15.98 kB / 280.4 MB, free: 9.188 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.02056, allocations: 3.938 kB / 280.4 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001459/0.0207, allocations: 12 kB / 280.4 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.02072, allocations: 4 kB / 280.4 MB, free: 9.168 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 0.0002122/0.02093, allocations: 176.7 kB / 280.6 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.37e-05/0.02101, allocations: 35.8 kB / 280.7 MB, free: 8.949 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003779/0.02139, allocations: 111.4 kB / 280.8 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.02139, allocations: 0 / 280.8 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.0214, allocations: 4 kB / 280.8 MB, free: 8.824 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.0214, allocations: 0 / 280.8 MB, free: 8.824 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003854/0.02179, allocations: 216.5 kB / 281 MB, free: 8.578 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.02179, allocations: 0 / 281 MB, free: 8.578 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.156e-05/0.02184, allocations: 15.92 kB / 281 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.02185, allocations: 3.938 kB / 281 MB, free: 8.559 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/0.02187, allocations: 4 kB / 281 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.02187, allocations: 4 kB / 281 MB, free: 8.551 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.02187, allocations: 0 / 281 MB, free: 8.551 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005257/0.0224, allocations: 207.6 kB / 281.2 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.66e-05/0.02246, allocations: 15.84 kB / 281.2 MB, free: 8.301 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.766e-05/0.0225, allocations: 11.98 kB / 281.2 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.02263, allocations: 8.125 kB / 281.2 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.828e-05/0.02272, allocations: 19.97 kB / 281.3 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.02274, allocations: 4 kB / 281.3 MB, free: 8.258 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003455/0.02309, allocations: 237.1 kB / 281.5 MB, free: 8.027 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.02309, allocations: 0 / 281.5 MB, free: 8.027 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000435/0.02352, allocations: 43.92 kB / 281.5 MB, free: 7.984 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.003811/0.02733, allocations: 430.1 kB / 282 MB, free: 7.707 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004162/0.02775, allocations: 103.6 kB / 282.1 MB, free: 7.602 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.02775, allocations: 3.938 kB / 282.1 MB, free: 7.598 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001997/0.02795, allocations: 59.84 kB / 282.1 MB, free: 7.535 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005782/0.02853, allocations: 82.92 kB / 282.2 MB, free: 7.457 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009229/0.02945, allocations: 342.2 kB / 282.5 MB, free: 7.086 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001742/0.02963, allocations: 119.6 kB / 282.7 MB, free: 6.953 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.02974, allocations: 25.48 kB / 282.7 MB, free: 6.926 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.154e-05/0.02983, allocations: 24.48 kB / 282.7 MB, free: 6.898 MB / 266.7 MB Notification: Performance of SimCode: time 8.41e-07/0.02983, allocations: 3.938 kB / 282.7 MB, free: 6.895 MB / 266.7 MB Notification: Performance of Templates: time 0.01069/0.04052, allocations: 2.885 MB / 285.6 MB, free: 4.043 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.631087473942898]