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.0008789/0.0008789, allocations: 88.73 kB / 21.5 MB, free: 2.98 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.001008/0.001008, allocations: 166.2 kB / 24.91 MB, free: 8.758 MB / 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 0.9916/0.9916, allocations: 177 MB / 205.2 MB, free: 5.43 MB / 186.7 MB " [Timeout remaining time 179] 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.224e-06/2.224e-06, allocations: 0 / 273.4 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.822e-05/2.045e-05, allocations: 2.312 kB / 273.4 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002555/0.002575, allocations: 1.888 MB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.004109, allocations: 1.164 MB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.004212, allocations: 4 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005979/0.00481, allocations: 167.4 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003339/0.005144, allocations: 171.2 kB / 276.7 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000316/0.00546, allocations: 155.4 kB / 276.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.005687, allocations: 219.3 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.275e-05/0.00578, allocations: 10.47 kB / 277.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.005913, allocations: 119.6 kB / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.006026, allocations: 79.78 kB / 277.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.006051, allocations: 8 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.006168, allocations: 63.89 kB / 277.4 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.187e-05/0.00624, allocations: 51.78 kB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.335e-05/0.006293, allocations: 51.83 kB / 277.5 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002261/0.006519, allocations: 167.4 kB / 277.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.006521, allocations: 0 / 277.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.006522, allocations: 4 kB / 277.7 MB, free: 12.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.006527, allocations: 0 / 277.7 MB, free: 12.9 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.0005514/0.007078, allocations: 429.3 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.007119, allocations: 15.98 kB / 278.1 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.257e-05/0.007161, allocations: 20.91 kB / 278.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/0.007364, allocations: 193.5 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.007383, allocations: 8.375 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.501e-05/0.007398, allocations: 4.375 kB / 278.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001443/0.007543, allocations: 92.45 kB / 278.4 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.007552, allocations: 8.125 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.007565, allocations: 12.36 kB / 278.4 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.007574, allocations: 7.922 kB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.371e-05/0.007618, allocations: 22.75 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003889/0.008007, allocations: 450.4 kB / 278.9 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000134/0.008141, allocations: 138.5 kB / 279 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.465e-05/0.008175, allocations: 30.56 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.008193, allocations: 8 kB / 279.1 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000124/0.008317, allocations: 108.6 kB / 279.2 MB, free: 11.22 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.112e-06/0.008318, allocations: 7.938 kB / 279.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001628/0.008481, allocations: 92.42 kB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.373e-05/0.008535, allocations: 106.8 kB / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.008688, allocations: 238.7 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.008704, allocations: 25.7 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.65e-05/0.00875, allocations: 112.5 kB / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/0.008779, allocations: 27.91 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.55e-05/0.008824, allocations: 37.69 kB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.753e-05/0.008912, allocations: 338.8 kB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.32e-05/0.008935, allocations: 10.83 kB / 280.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.819e-05/0.008993, allocations: 78.83 kB / 280.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.625e-05/0.00906, allocations: 73.84 kB / 280.3 MB, free: 9.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.009062, allocations: 0 / 280.3 MB, free: 9.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001002/0.009163, allocations: 96.98 kB / 280.4 MB, free: 9.879 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.009174, allocations: 7.938 kB / 280.4 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.00918, allocations: 4 kB / 280.4 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.009191, allocations: 0 / 280.4 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.068e-05/0.009252, allocations: 23.98 kB / 280.4 MB, free: 9.844 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.009257, allocations: 4 kB / 280.4 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.307e-05/0.00931, allocations: 15.95 kB / 280.4 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-06/0.009317, allocations: 3.984 kB / 280.4 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.936e-05/0.009397, allocations: 124.6 kB / 280.6 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.316e-05/0.00942, allocations: 27.92 kB / 280.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.009521, allocations: 71.45 kB / 280.7 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.009524, allocations: 4 kB / 280.7 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.009526, allocations: 0 / 280.7 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.009531, allocations: 3.984 kB / 280.7 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.009643, allocations: 113.8 kB / 280.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.009645, allocations: 0 / 280.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.781e-05/0.009663, allocations: 11.98 kB / 280.8 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.009664, allocations: 0 / 280.8 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.009671, allocations: 0 / 280.8 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.009675, allocations: 11.88 kB / 280.8 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.009676, allocations: 4 kB / 280.8 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001371/0.009813, allocations: 124.5 kB / 280.9 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.177e-05/0.009835, allocations: 27.78 kB / 281 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.009855, allocations: 4 kB / 281 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.418e-05/0.009899, allocations: 15.92 kB / 281 MB, free: 9.223 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.169e-05/0.009941, allocations: 11.98 kB / 281 MB, free: 9.211 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.009952, allocations: 4 kB / 281 MB, free: 9.207 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.959e-05/0.01002, allocations: 85.59 kB / 281.1 MB, free: 9.121 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01002, allocations: 0 / 281.1 MB, free: 9.121 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001456/0.01017, allocations: 43.88 kB / 281.1 MB, free: 9.078 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.00111/0.01128, allocations: 0.5033 MB / 281.6 MB, free: 8.762 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000124/0.0114, allocations: 56.77 kB / 281.7 MB, free: 8.703 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.01141, allocations: 4 kB / 281.7 MB, free: 8.699 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.865e-05/0.01146, allocations: 40.77 kB / 281.7 MB, free: 8.656 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000177/0.01163, allocations: 64.56 kB / 281.8 MB, free: 8.594 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004054/0.01204, allocations: 328.4 kB / 282.1 MB, free: 8.238 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.713e-05/0.01209, allocations: 83.97 kB / 282.2 MB, free: 8.137 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.013e-05/0.01214, allocations: 17.48 kB / 282.2 MB, free: 8.117 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.762e-05/0.01222, allocations: 79.36 kB / 282.3 MB, free: 8.039 MB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01222, allocations: 0 / 282.3 MB, free: 8.039 MB / 266.7 MB Notification: Performance of Templates: time 0.00491/0.01713, allocations: 3.074 MB / 285.4 MB, free: 5.012 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","",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.7849777918308973]