Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.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.001323/0.001323, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.001526/0.001526, allocations: 186.5 kB / 23.71 MB, free: 4.434 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.436/1.436, allocations: 225.7 MB / 252.5 MB, free: 12.82 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: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 43.92 kB / 370.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2553, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003002/0.2583, allocations: 1.59 MB / 424.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006633/0.2589, allocations: 403 kB / 424.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.466e-05/0.259, allocations: 0 / 424.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.538e-05/0.259, allocations: 11.81 kB / 424.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.965e-05/0.2591, allocations: 11.88 kB / 424.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001383/0.2592, allocations: 19.97 kB / 424.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.645e-05/0.2593, allocations: 59.84 kB / 424.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.2595, allocations: 47.58 kB / 424.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.854e-05/0.2596, allocations: 23.92 kB / 424.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.589e-05/0.2596, allocations: 27.84 kB / 424.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.769e-05/0.2596, allocations: 4 kB / 424.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.675e-05/0.2597, allocations: 11.94 kB / 424.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.043e-05/0.2597, allocations: 11.94 kB / 424.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.657e-05/0.2597, allocations: 27.84 kB / 424.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.2598, allocations: 73.48 kB / 424.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2598, allocations: 0 / 424.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2598, allocations: 0 / 424.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.2598, allocations: 4 kB / 424.9 MB, free: 12.07 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004936/0.2603, allocations: 310 kB / 425.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.2604, allocations: 8.031 kB / 425.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.879e-05/0.2604, allocations: 38.75 kB / 425.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.016e-05/0.2604, allocations: 12.88 kB / 425.2 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.2606, allocations: 110.5 kB / 425.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.2606, allocations: 8.125 kB / 425.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.2606, allocations: 8 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.2608, allocations: 117.9 kB / 425.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.2608, allocations: 0 / 425.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.2608, allocations: 0 / 425.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.2608, allocations: 4 kB / 425.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.261, allocations: 55.89 kB / 425.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006648/0.2617, allocations: 0.5981 MB / 426.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001832/0.2619, allocations: 121 kB / 426.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.262, allocations: 52.34 kB / 426.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.262, allocations: 4 kB / 426.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.262, allocations: 38.5 kB / 426.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.262, allocations: 0 / 426.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004281/0.2624, allocations: 129.9 kB / 426.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.338e-05/0.2625, allocations: 166.1 kB / 426.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.86e-05/0.2626, allocations: 117.8 kB / 426.7 MB, free: 9.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.2627, allocations: 25.7 kB / 426.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.166e-05/0.2627, allocations: 100.1 kB / 426.9 MB, free: 9.797 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.457e-05/0.2627, allocations: 23.73 kB / 426.9 MB, free: 9.773 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.873e-05/0.2628, allocations: 17.72 kB / 426.9 MB, free: 9.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.2629, allocations: 322.8 kB / 427.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.263, allocations: 19.98 kB / 427.2 MB, free: 9.406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.446e-05/0.2631, allocations: 56.36 kB / 427.3 MB, free: 9.336 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/0.2633, allocations: 76.2 kB / 427.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2633, allocations: 0 / 427.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002219/0.2635, allocations: 97.53 kB / 427.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.2635, allocations: 8 kB / 427.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2635, allocations: 0 / 427.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.2636, allocations: 3.938 kB / 427.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.361e-05/0.2636, allocations: 15.98 kB / 427.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.2637, allocations: 3.938 kB / 427.5 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.57e-05/0.2637, allocations: 11.95 kB / 427.5 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.2637, allocations: 4.156 kB / 427.5 MB, free: 9.098 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: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.238e-05/0.2638, allocations: 125.8 kB / 427.6 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.2639, allocations: 8.109 kB / 427.6 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.384e-05/0.264, allocations: 15.56 kB / 427.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.264, allocations: 4 kB / 427.7 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.264, allocations: 4 kB / 427.7 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.264, allocations: 0 / 427.7 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003685/0.2643, allocations: 152.7 kB / 427.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2643, allocations: 0 / 427.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.844e-05/0.2644, allocations: 15.98 kB / 427.8 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2644, allocations: 0 / 427.8 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.2644, allocations: 11.94 kB / 427.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2644, allocations: 0 / 427.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2644, allocations: 0 / 427.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003752/0.2648, allocations: 488.6 kB / 428.3 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.968e-05/0.2648, allocations: 15.88 kB / 428.3 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.2648, allocations: 7.938 kB / 428.3 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.2651, allocations: 8 kB / 428.3 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.111e-05/0.2651, allocations: 11.98 kB / 428.4 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.91e-06/0.2651, allocations: 0 / 428.4 MB, free: 8.172 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.899e-05/0.2652, allocations: 99.2 kB / 428.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2652, allocations: 0 / 428.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000372/0.2655, allocations: 12 kB / 428.5 MB, free: 8.062 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0006584/0.2662, allocations: 1.01 MB / 429.5 MB, free: 7.023 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000222/0.2664, allocations: 67.83 kB / 429.5 MB, free: 6.957 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2664, allocations: 0 / 429.5 MB, free: 6.957 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.2665, allocations: 35.92 kB / 429.6 MB, free: 6.922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005025/0.267, allocations: 3.984 kB / 429.6 MB, free: 6.918 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000684/0.2677, allocations: 233.2 kB / 429.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/0.2678, allocations: 91.06 kB / 429.9 MB, free: 6.531 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.363e-05/0.2679, allocations: 7.922 kB / 429.9 MB, free: 6.523 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.335e-05/0.2679, allocations: 19.44 kB / 429.9 MB, free: 6.504 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2679, allocations: 0 / 429.9 MB, free: 6.504 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0306/0.2985, allocations: 2.18 MB / 432.1 MB, free: 4.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.68, allocations: 3.922 kB / 432.1 MB, free: 4.43 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039976 Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable controlBus.realSignal1 in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv. Warning: Get data of variable controlBus.realSignal1 from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv failed! Error: Could not read variable controlBus.integerSignal in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv. Warning: Get data of variable controlBus.integerSignal from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv failed! Error: Could not read variable controlBus.booleanSignal in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv. Warning: Get data of variable controlBus.booleanSignal from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv failed! Error: Could not read variable controlBus.subControlBus.myRealSignal in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv. Warning: Get data of variable controlBus.subControlBus.myRealSignal from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv failed! Error: Could not read variable controlBus.subControlBus.myBooleanSignal in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv. Warning: Get data of variable controlBus.subControlBus.myBooleanSignal from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.193032123614103]