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.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.001303/0.001303, allocations: 111.6 kB / 18.45 MB, free: 4.59 MB / 14.72 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.002021/0.002021, allocations: 215.2 kB / 21.42 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 207.6 MB / 231.8 MB, free: 4.188 MB / 174.1 MB " [Timeout remaining time 178] 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.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_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 48.27 kB / 342.3 MB, free: 10.03 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1021, allocations: 49.13 MB / 391.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003283/0.1054, allocations: 1.828 MB / 393.2 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.107, allocations: 0.9672 MB / 394.2 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.756e-05/0.1071, allocations: 0 / 394.2 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006421/0.1078, allocations: 175.5 kB / 394.4 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003014/0.1081, allocations: 123.5 kB / 394.5 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003942/0.1085, allocations: 147.7 kB / 394.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002636/0.1087, allocations: 211.3 kB / 394.8 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.1088, allocations: 21.48 kB / 394.9 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.109, allocations: 79.69 kB / 394.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.1091, allocations: 95.59 kB / 395 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.73e-05/0.1091, allocations: 12 kB / 395 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.1093, allocations: 55.97 kB / 395.1 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.648e-05/0.1093, allocations: 51.83 kB / 395.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.029e-05/0.1094, allocations: 75.47 kB / 395.2 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003231/0.1097, allocations: 211.1 kB / 395.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1098, allocations: 0 / 395.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1098, allocations: 4 kB / 395.4 MB, free: 4.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1098, allocations: 3.984 kB / 395.4 MB, free: 4.672 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.0009456/0.1107, allocations: 0.5349 MB / 396 MB, free: 4.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1107, allocations: 8.031 kB / 396 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.722e-05/0.1108, allocations: 42.62 kB / 396 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.292e-05/0.1108, allocations: 20.8 kB / 396 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/0.1112, allocations: 263.1 kB / 396.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.1112, allocations: 4.375 kB / 396.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.792e-05/0.1112, allocations: 7.938 kB / 396.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.1115, allocations: 121.9 kB / 396.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.1115, allocations: 4 kB / 396.4 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.1115, allocations: 0 / 396.4 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.1115, allocations: 0 / 396.4 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001563/0.1117, allocations: 59.91 kB / 396.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007027/0.1124, allocations: 0.6104 MB / 397.1 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.1127, allocations: 119.9 kB / 397.2 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.1128, allocations: 46.56 kB / 397.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.1128, allocations: 4 kB / 397.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002388/0.113, allocations: 121.9 kB / 397.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.113, allocations: 0 / 397.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004786/0.1135, allocations: 173.4 kB / 397.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.817e-05/0.1136, allocations: 132.5 kB / 397.7 MB, free: 2.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003282/0.1139, allocations: 289.1 kB / 398 MB, free: 1.848 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.114, allocations: 33.7 kB / 398 MB, free: 1.809 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.1141, allocations: 128.3 kB / 398.1 MB, free: 1.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.926e-05/0.1141, allocations: 27.86 kB / 398.2 MB, free: 1.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.024e-05/0.1142, allocations: 33.7 kB / 398.2 MB, free: 1.613 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1143, allocations: 334.8 kB / 398.5 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.539e-05/0.1144, allocations: 35.98 kB / 398.5 MB, free: 1.242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.1146, allocations: 85.88 kB / 398.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.1147, allocations: 96.2 kB / 398.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1147, allocations: 4.031 kB / 398.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003081/0.1151, allocations: 138.1 kB / 398.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.1151, allocations: 8 kB / 398.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.1151, allocations: 7.938 kB / 398.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.1151, allocations: 0 / 398.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.311e-05/0.1152, allocations: 15.98 kB / 398.9 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.1152, allocations: 4 kB / 398.9 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.1153, allocations: 23.81 kB / 398.9 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.1153, allocations: 12.09 kB / 398.9 MB, free: 0.8125 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.0001389/0.1155, allocations: 145.6 kB / 399.1 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.775e-05/0.1155, allocations: 19.91 kB / 399.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.269e-05/0.1156, allocations: 25.7 kB / 399.1 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.1156, allocations: 0 / 399.1 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.1156, allocations: 4 kB / 399.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1156, allocations: 3.938 kB / 399.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.1158, allocations: 241.5 kB / 399.4 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1158, allocations: 4 kB / 399.4 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.76e-05/0.1159, allocations: 8 kB / 399.4 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.1159, allocations: 0 / 399.4 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.1159, allocations: 8 kB / 399.4 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1159, allocations: 0 / 399.4 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.1159, allocations: 3.984 kB / 399.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003477/0.1162, allocations: 190.4 kB / 399.6 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.57e-05/0.1163, allocations: 93.02 kB / 399.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.35e-05/0.1164, allocations: 4 kB / 399.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.1165, allocations: 11.98 kB / 399.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.624e-05/0.1165, allocations: 19.92 kB / 399.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.1165, allocations: 7.984 kB / 399.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002261/0.1168, allocations: 212.5 kB / 399.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1168, allocations: 0 / 399.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002703/0.117, allocations: 35.94 kB / 400 MB, free: 15.7 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.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.002113/0.1192, allocations: 1.033 MB / 401 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003068/0.1195, allocations: 91.84 kB / 401.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1195, allocations: 0 / 401.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.1196, allocations: 48.34 kB / 401.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000391/0.12, allocations: 60.33 kB / 401.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00292/0.1229, allocations: 2.177 MB / 403.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.1233, allocations: 0.728 MB / 404.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.049e-05/0.1234, allocations: 25.53 kB / 404.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.1235, allocations: 55.42 kB / 404.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1235, allocations: 0 / 404.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02855/0.1521, allocations: 5.141 MB / 409.3 MB, free: 6.078 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.031/8.183, allocations: 7.969 kB / 409.3 MB, free: 6.07 MB / 334.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv. Warning: Get data of variable table.y from file Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.842275478004012]