Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008244/0.0008244, allocations: 83.7 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009386/0.0009386, allocations: 173.3 kB / 23.95 MB, free: 0.6016 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8953/0.8953, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.963e-06/1.963e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.876e-05/2.072e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002166/0.002187, allocations: 1.818 MB / 326.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.003419, allocations: 1.129 MB / 327.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.155e-05/0.003511, allocations: 4 kB / 327.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005083/0.004019, allocations: 179.3 kB / 327.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003112/0.00433, allocations: 167.2 kB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002814/0.004612, allocations: 154.8 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002174/0.004829, allocations: 219.3 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.119e-05/0.00492, allocations: 5.812 kB / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.005038, allocations: 127.6 kB / 328.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.00514, allocations: 79.78 kB / 328.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.847e-05/0.005158, allocations: 12 kB / 328.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001127/0.005271, allocations: 59.89 kB / 328.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.375e-05/0.005335, allocations: 51.83 kB / 328.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.998e-05/0.005385, allocations: 39.86 kB / 328.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.00563, allocations: 231.2 kB / 328.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.005632, allocations: 3.938 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.005633, allocations: 0 / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.005638, allocations: 0 / 328.8 MB, free: 11.66 MB / 298.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.0006139/0.006251, allocations: 473.6 kB / 329.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.006292, allocations: 8.031 kB / 329.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.15e-05/0.006323, allocations: 42.73 kB / 329.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.625e-05/0.00637, allocations: 20.8 kB / 329.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002337/0.006603, allocations: 204.8 kB / 329.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.006622, allocations: 12.36 kB / 329.6 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.309e-05/0.006635, allocations: 4.375 kB / 329.6 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001717/0.006807, allocations: 113.4 kB / 329.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.006816, allocations: 0 / 329.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.006828, allocations: 8 kB / 329.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.006833, allocations: 0 / 329.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.267e-05/0.006926, allocations: 55.91 kB / 329.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004551/0.007381, allocations: 0.555 MB / 330.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.007537, allocations: 123.9 kB / 330.4 MB, free: 9.902 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.686e-05/0.007594, allocations: 54.5 kB / 330.5 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.007611, allocations: 4 kB / 330.5 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001512/0.007762, allocations: 121.9 kB / 330.6 MB, free: 9.695 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 9.42e-07/0.007763, allocations: 0 / 330.6 MB, free: 9.695 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002728/0.008036, allocations: 177.4 kB / 330.8 MB, free: 9.516 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.008085, allocations: 114.8 kB / 330.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/0.008286, allocations: 297.9 kB / 331.2 MB, free: 9.074 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.008299, allocations: 25.7 kB / 331.2 MB, free: 9.043 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.514e-05/0.008365, allocations: 128.4 kB / 331.3 MB, free: 8.914 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.711e-05/0.008392, allocations: 39.67 kB / 331.3 MB, free: 8.875 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.828e-05/0.00843, allocations: 33.83 kB / 331.4 MB, free: 8.836 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.292e-05/0.008523, allocations: 338.8 kB / 331.7 MB, free: 8.496 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.091e-05/0.008574, allocations: 27.98 kB / 331.7 MB, free: 8.469 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.279e-05/0.008657, allocations: 102.8 kB / 331.8 MB, free: 8.344 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.008763, allocations: 104.7 kB / 331.9 MB, free: 8.227 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.008765, allocations: 0 / 331.9 MB, free: 8.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001573/0.008922, allocations: 149.4 kB / 332.1 MB, free: 8.074 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.008936, allocations: 7.984 kB / 332.1 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.008943, allocations: 4 kB / 332.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.008954, allocations: 0 / 332.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.867e-05/0.009012, allocations: 12 kB / 332.1 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.009019, allocations: 11.92 kB / 332.1 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.499e-05/0.009074, allocations: 11.92 kB / 332.1 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.009083, allocations: 12 kB / 332.1 MB, free: 8.016 MB / 298.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 9.671e-05/0.00918, allocations: 146.5 kB / 332.3 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.009202, allocations: 23.86 kB / 332.3 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001506/0.009352, allocations: 115.4 kB / 332.4 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.009357, allocations: 7.984 kB / 332.4 MB, free: 7.719 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.009362, allocations: 3.938 kB / 332.4 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.009366, allocations: 0 / 332.4 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.009508, allocations: 208.5 kB / 332.6 MB, free: 7.469 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.009511, allocations: 3.984 kB / 332.6 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.81e-05/0.009529, allocations: 4 kB / 332.6 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.009532, allocations: 4 kB / 332.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.009548, allocations: 8 kB / 332.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.009551, allocations: 4.125 kB / 332.7 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.009554, allocations: 4 kB / 332.7 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001741/0.009728, allocations: 190.5 kB / 332.9 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.382e-05/0.009752, allocations: 23.84 kB / 332.9 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.009772, allocations: 8 kB / 332.9 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.334e-05/0.009815, allocations: 7.984 kB / 332.9 MB, free: 7.191 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.009861, allocations: 19.97 kB / 332.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.009874, allocations: 4 kB / 332.9 MB, free: 7.168 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001438/0.01002, allocations: 221.2 kB / 333.1 MB, free: 6.957 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01002, allocations: 0 / 333.1 MB, free: 6.957 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001749/0.01019, allocations: 47.86 kB / 333.2 MB, free: 6.91 MB / 298.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.0009794/0.01117, allocations: 1.051 MB / 334.2 MB, free: 6.008 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001757/0.01135, allocations: 87.91 kB / 334.3 MB, free: 5.922 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.01135, allocations: 8 kB / 334.3 MB, free: 5.914 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.493e-05/0.01143, allocations: 56.09 kB / 334.4 MB, free: 5.859 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002239/0.01165, allocations: 46.77 kB / 334.4 MB, free: 5.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/0.01338, allocations: 2.219 MB / 336.6 MB, free: 3.473 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.355e-05/0.01346, allocations: 127.6 kB / 336.8 MB, free: 3.324 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.04e-05/0.01352, allocations: 25.62 kB / 336.8 MB, free: 3.301 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.153e-05/0.01359, allocations: 64.47 kB / 336.9 MB, free: 3.238 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.01359, allocations: 0 / 336.9 MB, free: 3.238 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01816/0.03175, allocations: 6.105 MB / 343 MB, free: 13.2 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.975/7.006, allocations: 10.81 kB / 343 MB, free: 13.19 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00199283 Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/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_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable table.y in file Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv. Warning: Get data of variable table.y from file Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.83628621418029]