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.001321/0.001321, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.001958/0.001958, allocations: 190.8 kB / 23.71 MB, free: 4.406 MB / 14.72 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 1.428/1.428, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002131/0.002131, allocations: 47.92 kB / 370.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3113, allocations: 52.18 MB / 423 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003754/0.315, allocations: 1.809 MB / 424.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00186/0.3169, allocations: 0.9898 MB / 425.8 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.317, allocations: 0 / 425.8 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00081/0.3178, allocations: 171.5 kB / 426 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003278/0.3181, allocations: 127.5 kB / 426.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.3186, allocations: 181.9 kB / 426.3 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002706/0.3188, allocations: 203.4 kB / 426.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.3189, allocations: 9.75 kB / 426.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.3191, allocations: 87.67 kB / 426.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.3192, allocations: 95.53 kB / 426.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.023e-05/0.3193, allocations: 12 kB / 426.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001546/0.3194, allocations: 55.95 kB / 426.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.143e-05/0.3195, allocations: 47.78 kB / 426.8 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.95e-05/0.3196, allocations: 63.67 kB / 426.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003554/0.3199, allocations: 221.3 kB / 427.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.32, allocations: 0 / 427.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.32, allocations: 0 / 427.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.32, allocations: 4 kB / 427.1 MB, free: 10.45 MB / 334.1 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.0009243/0.3209, allocations: 458.7 kB / 427.5 MB, free: 9.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.3209, allocations: 12.03 kB / 427.6 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.75e-05/0.321, allocations: 20.8 kB / 427.6 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.3213, allocations: 197 kB / 427.8 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.3213, allocations: 12 kB / 427.8 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.208e-05/0.3214, allocations: 4 kB / 427.8 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002549/0.3216, allocations: 119 kB / 427.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.3216, allocations: 0 / 427.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.3216, allocations: 0 / 427.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.3217, allocations: 0 / 427.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001718/0.3218, allocations: 55.91 kB / 428 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000666/0.3225, allocations: 0.536 MB / 428.5 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003102/0.3228, allocations: 131.8 kB / 428.6 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.3229, allocations: 46.55 kB / 428.7 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.3229, allocations: 8 kB / 428.7 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.3232, allocations: 117.9 kB / 428.8 MB, free: 8.574 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.3232, allocations: 0 / 428.8 MB, free: 8.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004968/0.3237, allocations: 181.9 kB / 429 MB, free: 8.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.914e-05/0.3238, allocations: 102.9 kB / 429.1 MB, free: 8.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003317/0.3241, allocations: 296.8 kB / 429.4 MB, free: 7.969 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.3241, allocations: 33.7 kB / 429.4 MB, free: 7.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.52e-05/0.3242, allocations: 120.1 kB / 429.5 MB, free: 7.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.64e-05/0.3243, allocations: 27.86 kB / 429.5 MB, free: 7.781 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.652e-05/0.3243, allocations: 37.7 kB / 429.6 MB, free: 7.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.3245, allocations: 330.8 kB / 429.9 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.051e-05/0.3246, allocations: 31.97 kB / 429.9 MB, free: 7.375 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.3247, allocations: 110.4 kB / 430 MB, free: 7.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/0.3249, allocations: 104.3 kB / 430.1 MB, free: 7.129 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3249, allocations: 0 / 430.1 MB, free: 7.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002759/0.3252, allocations: 145.5 kB / 430.3 MB, free: 6.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.3252, allocations: 6.188 kB / 430.3 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.3252, allocations: 0 / 430.3 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.3252, allocations: 7.984 kB / 430.3 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.872e-05/0.3253, allocations: 15.94 kB / 430.3 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.3253, allocations: 12.02 kB / 430.3 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.3254, allocations: 19.89 kB / 430.3 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.3254, allocations: 4 kB / 430.3 MB, free: 6.918 MB / 334.1 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.0001334/0.3256, allocations: 146.7 kB / 430.5 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.919e-05/0.3256, allocations: 23.84 kB / 430.5 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002512/0.3259, allocations: 119.4 kB / 430.6 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3259, allocations: 3.938 kB / 430.6 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.3259, allocations: 3.938 kB / 430.6 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3259, allocations: 4 kB / 430.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001963/0.3261, allocations: 169.4 kB / 430.8 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.3261, allocations: 4 kB / 430.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.985e-05/0.3261, allocations: 15.94 kB / 430.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.3261, allocations: 0 / 430.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.3261, allocations: 7.984 kB / 430.8 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.3261, allocations: 0 / 430.8 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3261, allocations: 0 / 430.8 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003286/0.3265, allocations: 186.7 kB / 431 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.268e-05/0.3265, allocations: 23.83 kB / 431 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.108e-05/0.3265, allocations: 4 kB / 431 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.766e-05/0.3266, allocations: 15.98 kB / 431.1 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.539e-05/0.3267, allocations: 23.86 kB / 431.1 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.3267, allocations: 4 kB / 431.1 MB, free: 6.105 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002201/0.3269, allocations: 208.5 kB / 431.3 MB, free: 5.902 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3269, allocations: 0 / 431.3 MB, free: 5.902 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002647/0.3272, allocations: 43.94 kB / 431.3 MB, free: 5.859 MB / 334.1 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.001733/0.3289, allocations: 444.8 kB / 431.8 MB, free: 5.602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003034/0.3292, allocations: 95.89 kB / 431.9 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3292, allocations: 0 / 431.9 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.3294, allocations: 59.89 kB / 431.9 MB, free: 5.449 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/0.3297, allocations: 50.92 kB / 432 MB, free: 5.406 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007557/0.3305, allocations: 344.5 kB / 432.3 MB, free: 5.039 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.3306, allocations: 123.6 kB / 432.4 MB, free: 4.895 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.051e-05/0.3307, allocations: 25.47 kB / 432.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.396e-05/0.3308, allocations: 23.44 kB / 432.5 MB, free: 4.848 MB / 334.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3308, allocations: 0 / 432.5 MB, free: 4.848 MB / 334.1 MB Notification: Performance of Templates: time 0.007136/0.3379, allocations: 2.985 MB / 435.5 MB, free: 1.902 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.544975318014622]