Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 113.2 kB / 17.73 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 184.2 kB / 18.66 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.674/1.674, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001157, allocations: 43.94 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1297, allocations: 46.62 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004875/0.1346, allocations: 1.828 MB / 377 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.137, allocations: 0.9447 MB / 377.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.1372, allocations: 4 kB / 377.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007426/0.138, allocations: 171.5 kB / 378.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004016/0.1384, allocations: 131.5 kB / 378.2 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005429/0.1389, allocations: 147.6 kB / 378.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000327/0.1393, allocations: 207.4 kB / 378.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.1394, allocations: 25.53 kB / 378.6 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.1396, allocations: 87.61 kB / 378.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.1397, allocations: 91.67 kB / 378.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.199e-05/0.1398, allocations: 8 kB / 378.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.1399, allocations: 51.92 kB / 378.8 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.674e-05/0.14, allocations: 51.81 kB / 378.9 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.747e-05/0.1401, allocations: 71.55 kB / 378.9 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003668/0.1405, allocations: 219.2 kB / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.1405, allocations: 0 / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1405, allocations: 0 / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.1406, allocations: 4 kB / 379.1 MB, free: 0.5508 MB / 318.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.2866/0.4272, allocations: 0.5243 MB / 379.7 MB, free: 13.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.4273, allocations: 10.23 kB / 379.7 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.4274, allocations: 22.28 kB / 379.7 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004352/0.4278, allocations: 253.2 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.4279, allocations: 5.938 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.764e-05/0.4279, allocations: 6.594 kB / 380 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003252/0.4282, allocations: 117.8 kB / 380.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.4282, allocations: 3.516 kB / 380.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.4283, allocations: 6.938 kB / 380.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.4283, allocations: 2.234 kB / 380.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.4285, allocations: 49.3 kB / 380.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007128/0.4292, allocations: 0.6046 MB / 380.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002678/0.4295, allocations: 127.1 kB / 380.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.4296, allocations: 49.5 kB / 380.9 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.4296, allocations: 2.391 kB / 380.9 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002338/0.4299, allocations: 131.8 kB / 381 MB, free: 12.22 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.605e-06/0.4299, allocations: 0 / 381 MB, free: 12.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004783/0.4304, allocations: 171.5 kB / 381.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.4304, allocations: 138.7 kB / 381.3 MB, free: 12.03 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003234/0.4308, allocations: 280.2 kB / 381.6 MB, free: 11.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.4308, allocations: 30.58 kB / 381.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.68e-05/0.4309, allocations: 132.2 kB / 381.8 MB, free: 11.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.016e-05/0.4309, allocations: 26.25 kB / 381.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.759e-05/0.431, allocations: 33.78 kB / 381.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.53e-05/0.4311, allocations: 334.1 kB / 382.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.4312, allocations: 38.58 kB / 382.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.4314, allocations: 83.02 kB / 382.3 MB, free: 11.4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.4315, allocations: 98.88 kB / 382.4 MB, free: 11.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4316, allocations: 1.875 kB / 382.4 MB, free: 11.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002707/0.4318, allocations: 144.5 kB / 382.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.4319, allocations: 6.875 kB / 382.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.4319, allocations: 1.938 kB / 382.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.4319, allocations: 4.219 kB / 382.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.59e-05/0.432, allocations: 13.44 kB / 382.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.432, allocations: 2.75 kB / 382.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.4321, allocations: 18.73 kB / 382.6 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.4322, allocations: 8.234 kB / 382.6 MB, free: 11.3 MB / 318.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.000156/0.4323, allocations: 148.9 kB / 382.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.387e-05/0.4324, allocations: 29.55 kB / 382.7 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.013e-05/0.4324, allocations: 24.62 kB / 382.8 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.4325, allocations: 2.281 kB / 382.8 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.4325, allocations: 1.781 kB / 382.8 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.4325, allocations: 1.328 kB / 382.8 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002568/0.4328, allocations: 241 kB / 383 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.4328, allocations: 1.156 kB / 383 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.224e-05/0.4328, allocations: 10.86 kB / 383 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.4328, allocations: 4.938 kB / 383 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.4328, allocations: 2.109 kB / 383 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.4328, allocations: 6.75 kB / 383 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4328, allocations: 6.156 kB / 383 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003328/0.4332, allocations: 174 kB / 383.2 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.4332, allocations: 99.44 kB / 383.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.999e-05/0.4333, allocations: 9.5 kB / 383.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.838e-05/0.4334, allocations: 17.39 kB / 383.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.082e-05/0.4335, allocations: 15.7 kB / 383.4 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.388e-05/0.4335, allocations: 3.938 kB / 383.4 MB, free: 10.74 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000355/0.4339, allocations: 213.7 kB / 383.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.803e-06/0.4339, allocations: 0.625 kB / 383.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003188/0.4342, allocations: 38.86 kB / 383.6 MB, free: 10.62 MB / 318.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.001036/0.4353, allocations: 422.1 kB / 384 MB, free: 10.31 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003363/0.4356, allocations: 88.86 kB / 384.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4356, allocations: 0 / 384.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.4358, allocations: 51.31 kB / 384.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003936/0.4362, allocations: 71.27 kB / 384.2 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007357/0.4369, allocations: 352.7 kB / 384.6 MB, free: 10 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.4372, allocations: 0.7295 MB / 385.3 MB, free: 9.301 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.4373, allocations: 31 kB / 385.3 MB, free: 9.293 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.105e-05/0.4374, allocations: 21.02 kB / 385.3 MB, free: 9.285 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4374, allocations: 0 / 385.3 MB, free: 9.285 MB / 318.1 MB Notification: Performance of Templates: time 0.008591/0.446, allocations: 2.75 MB / 388.1 MB, free: 9.02 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches