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.001313/0.001313, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001297/0.001297, allocations: 187.5 kB / 23.7 MB, free: 4.191 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.363/1.363, allocations: 225.7 MB / 252.5 MB, free: 12.84 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.001456/0.001456, allocations: 47.94 kB / 370.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2393, allocations: 52.18 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003016/0.2423, allocations: 1.589 MB / 424.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007648/0.243, allocations: 403.1 kB / 424.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.054e-05/0.2431, allocations: 0 / 424.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.474e-05/0.2431, allocations: 11.86 kB / 424.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.657e-05/0.2432, allocations: 15.86 kB / 424.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001363/0.2434, allocations: 11.98 kB / 424.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.2435, allocations: 59.78 kB / 424.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001772/0.2436, allocations: 43.64 kB / 424.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.2437, allocations: 31.86 kB / 424.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.24e-05/0.2438, allocations: 27.84 kB / 424.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.304e-05/0.2438, allocations: 8 kB / 424.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.32e-05/0.2438, allocations: 4 kB / 424.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.009e-05/0.2439, allocations: 19.92 kB / 424.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.42e-05/0.2439, allocations: 15.88 kB / 424.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.244, allocations: 69.55 kB / 424.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.244, allocations: 0 / 424.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.244, allocations: 4 kB / 424.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.2441, allocations: 3.984 kB / 424.9 MB, free: 12.08 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.0004938/0.2446, allocations: 298 kB / 425.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.2446, allocations: 16.02 kB / 425.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.262e-05/0.2446, allocations: 42.69 kB / 425.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.754e-05/0.2447, allocations: 8.891 kB / 425.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.2448, allocations: 118.5 kB / 425.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.78e-05/0.2448, allocations: 12.11 kB / 425.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.2448, allocations: 4 kB / 425.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002497/0.2451, allocations: 117.9 kB / 425.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.2451, allocations: 0 / 425.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.2451, allocations: 4 kB / 425.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.2451, allocations: 4 kB / 425.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.2453, allocations: 55.89 kB / 425.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006821/0.246, allocations: 0.602 MB / 426.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001865/0.2461, allocations: 116.9 kB / 426.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.2462, allocations: 48.41 kB / 426.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.2463, allocations: 7.984 kB / 426.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.2463, allocations: 46.5 kB / 426.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.2463, allocations: 0 / 426.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004325/0.2467, allocations: 121.4 kB / 426.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.197e-05/0.2468, allocations: 162.2 kB / 426.6 MB, free: 10.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.2469, allocations: 126.4 kB / 426.7 MB, free: 9.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.2469, allocations: 25.7 kB / 426.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.057e-05/0.247, allocations: 96.09 kB / 426.9 MB, free: 9.801 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.71e-05/0.247, allocations: 23.8 kB / 426.9 MB, free: 9.777 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.033e-05/0.2471, allocations: 21.7 kB / 426.9 MB, free: 9.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.2472, allocations: 314.8 kB / 427.2 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.842e-05/0.2473, allocations: 23.97 kB / 427.2 MB, free: 9.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.2474, allocations: 48.28 kB / 427.3 MB, free: 9.348 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001766/0.2476, allocations: 80.2 kB / 427.4 MB, free: 9.254 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2476, allocations: 0 / 427.4 MB, free: 9.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002174/0.2478, allocations: 101.5 kB / 427.5 MB, free: 9.148 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.2478, allocations: 4 kB / 427.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.2478, allocations: 8.156 kB / 427.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.2478, allocations: 3.938 kB / 427.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.464e-05/0.2479, allocations: 11.98 kB / 427.5 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/0.2479, allocations: 4 kB / 427.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.248, allocations: 11.94 kB / 427.5 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.2481, allocations: 4 kB / 427.5 MB, free: 9.102 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.913e-05/0.2482, allocations: 121.8 kB / 427.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.132e-05/0.2482, allocations: 4 kB / 427.6 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.276e-05/0.2483, allocations: 19.55 kB / 427.6 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2483, allocations: 4 kB / 427.7 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.2483, allocations: 4 kB / 427.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.2483, allocations: 0 / 427.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000377/0.2487, allocations: 152.7 kB / 427.8 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2487, allocations: 0 / 427.8 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.553e-05/0.2487, allocations: 12 kB / 427.8 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.2487, allocations: 4 kB / 427.8 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.2487, allocations: 7.922 kB / 427.8 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.211e-06/0.2488, allocations: 4 kB / 427.8 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2488, allocations: 128 / 427.8 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004152/0.2492, allocations: 496.6 kB / 428.3 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.806e-05/0.2492, allocations: 11.89 kB / 428.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.2492, allocations: 3.938 kB / 428.3 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.2494, allocations: 11.98 kB / 428.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.2494, allocations: 11.98 kB / 428.4 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.2495, allocations: 0 / 428.4 MB, free: 8.176 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.258e-05/0.2495, allocations: 87.28 kB / 428.4 MB, free: 8.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2495, allocations: 0 / 428.4 MB, free: 8.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003571/0.2499, allocations: 19.88 kB / 428.5 MB, free: 8.07 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.0006918/0.2506, allocations: 1.022 MB / 429.5 MB, free: 7.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002076/0.2508, allocations: 55.84 kB / 429.5 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/0.2508, allocations: 4 kB / 429.5 MB, free: 6.961 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.715e-05/0.2509, allocations: 40.16 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.000497/0.2514, allocations: 8 kB / 429.6 MB, free: 6.914 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006592/0.252, allocations: 228.5 kB / 429.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.554e-05/0.2521, allocations: 91.06 kB / 429.9 MB, free: 6.531 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.257e-05/0.2522, allocations: 4.312 kB / 429.9 MB, free: 6.527 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.918e-05/0.2522, allocations: 23.42 kB / 429.9 MB, free: 6.504 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2522, allocations: 0 / 429.9 MB, free: 6.504 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02856/0.2808, allocations: 2.177 MB / 432.1 MB, free: 4.441 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.94, allocations: 8.094 kB / 432.1 MB, free: 4.438 MB / 334.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --stepSize=0.00039976 --timeout=50 --tolerance=1e-06 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.mat","/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.mat. Warning: Get data of variable controlBus.realSignal1 from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat failed! Error: Could not read variable controlBus.integerSignal in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat. Warning: Get data of variable controlBus.integerSignal from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat failed! Error: Could not read variable controlBus.booleanSignal in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat. Warning: Get data of variable controlBus.booleanSignal from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat failed! Error: Could not read variable controlBus.subControlBus.myRealSignal in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat. Warning: Get data of variable controlBus.subControlBus.myRealSignal from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat failed! Error: Could not read variable controlBus.subControlBus.myBooleanSignal in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat. Warning: Get data of variable controlBus.subControlBus.myBooleanSignal from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.208519916050136]