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.001731/0.001731, allocations: 116 kB / 17.78 MB, free: 5.289 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.002041/0.002041, allocations: 190.9 kB / 20.73 MB, free: 2.352 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.536/1.536, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.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: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 51.92 kB / 365.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.104, allocations: 52.14 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003478/0.1075, allocations: 1.84 MB / 419.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.1094, allocations: 1.04 MB / 420.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.59e-05/0.1095, allocations: 4 kB / 420.6 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007053/0.1102, allocations: 163.5 kB / 420.8 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003406/0.1105, allocations: 135.5 kB / 420.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004986/0.111, allocations: 178.9 kB / 421.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002912/0.1113, allocations: 195.4 kB / 421.3 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.1114, allocations: 21.48 kB / 421.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.1116, allocations: 91.56 kB / 421.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.1117, allocations: 87.67 kB / 421.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.833e-05/0.1117, allocations: 15.94 kB / 421.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.1119, allocations: 59.95 kB / 421.6 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.12e-05/0.112, allocations: 43.83 kB / 421.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.699e-05/0.1121, allocations: 79.55 kB / 421.7 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003371/0.1124, allocations: 219 kB / 421.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1124, allocations: 3.938 kB / 421.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1124, allocations: 0 / 421.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.1124, allocations: 0 / 421.9 MB, free: 8.496 MB / 350.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.0009602/0.1134, allocations: 0.5311 MB / 422.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.1134, allocations: 8.031 kB / 422.5 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.449e-05/0.1135, allocations: 38.75 kB / 422.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.921e-05/0.1135, allocations: 20.8 kB / 422.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.1139, allocations: 262.5 kB / 422.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.1139, allocations: 4 kB / 422.8 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.283e-05/0.1139, allocations: 8 kB / 422.8 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002635/0.1142, allocations: 116.9 kB / 422.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1142, allocations: 7.938 kB / 422.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.1142, allocations: 4 kB / 422.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.1142, allocations: 0 / 422.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001594/0.1144, allocations: 47.97 kB / 423 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007038/0.1151, allocations: 0.6027 MB / 423.6 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.1154, allocations: 123.9 kB / 423.7 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.1155, allocations: 50.5 kB / 423.7 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.1155, allocations: 7.938 kB / 423.7 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002453/0.1157, allocations: 113.9 kB / 423.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.1157, allocations: 0 / 423.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004897/0.1162, allocations: 185.7 kB / 424 MB, free: 6.137 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.1163, allocations: 132.5 kB / 424.2 MB, free: 5.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000335/0.1167, allocations: 285 kB / 424.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.1167, allocations: 33.7 kB / 424.5 MB, free: 5.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.791e-05/0.1168, allocations: 124.3 kB / 424.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.711e-05/0.1168, allocations: 32.03 kB / 424.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.346e-05/0.1169, allocations: 37.7 kB / 424.7 MB, free: 5.441 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1171, allocations: 326.8 kB / 425 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.775e-05/0.1172, allocations: 31.98 kB / 425 MB, free: 5.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.1173, allocations: 81.92 kB / 425.1 MB, free: 4.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.1175, allocations: 104.3 kB / 425.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.1175, allocations: 0 / 425.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003011/0.1178, allocations: 141.4 kB / 425.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.1178, allocations: 16.03 kB / 425.3 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1178, allocations: 0 / 425.3 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.1178, allocations: 3.938 kB / 425.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.237e-05/0.1179, allocations: 19.92 kB / 425.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.118, allocations: 4 kB / 425.4 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.1181, allocations: 19.94 kB / 425.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.1181, allocations: 4 kB / 425.4 MB, free: 4.652 MB / 350.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.0001507/0.1182, allocations: 145.7 kB / 425.5 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.725e-05/0.1183, allocations: 27.86 kB / 425.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.241e-05/0.1183, allocations: 25.7 kB / 425.6 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.1183, allocations: 3.938 kB / 425.6 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.1184, allocations: 7.938 kB / 425.6 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1184, allocations: 3.938 kB / 425.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002704/0.1186, allocations: 237.6 kB / 425.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.1186, allocations: 8 kB / 425.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.948e-05/0.1187, allocations: 7.984 kB / 425.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1187, allocations: 0 / 425.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.1187, allocations: 4 kB / 425.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.1187, allocations: 7.938 kB / 425.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1187, allocations: 0 / 425.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003463/0.119, allocations: 178.5 kB / 426 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.19e-05/0.1191, allocations: 101 kB / 426.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.046e-05/0.1191, allocations: 0 / 426.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.1193, allocations: 19.92 kB / 426.2 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.718e-05/0.1193, allocations: 11.98 kB / 426.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.1193, allocations: 8 kB / 426.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002261/0.1196, allocations: 212.5 kB / 426.4 MB, free: 3.559 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1196, allocations: 3.938 kB / 426.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002819/0.1199, allocations: 39.92 kB / 426.4 MB, free: 3.516 MB / 350.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.002072/0.1219, allocations: 1.029 MB / 427.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003182/0.1222, allocations: 87.91 kB / 427.5 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1222, allocations: 0 / 427.5 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.1224, allocations: 52.09 kB / 427.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003681/0.1227, allocations: 48.23 kB / 427.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.1256, allocations: 2.162 MB / 429.8 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003871/0.126, allocations: 0.7357 MB / 430.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.366e-05/0.1261, allocations: 29.91 kB / 430.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.1262, allocations: 59.41 kB / 430.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1262, allocations: 0 / 430.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03052/0.1567, allocations: 5.143 MB / 435.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.379/8.536, allocations: 12.42 kB / 435.8 MB, free: 10.23 MB / 366.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv. Warning: Get data of variable table.y from file Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.441292393021286]