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.001771/0.001771, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.002191/0.002191, allocations: 181.8 kB / 23.72 MB, free: 4.699 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.368/1.368, allocations: 225.6 MB / 252.5 MB, free: 13 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.001707/0.001707, allocations: 43.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2726, allocations: 52.18 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002901/0.2755, allocations: 1.621 MB / 424.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006878/0.2762, allocations: 435 kB / 424.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.017e-05/0.2763, allocations: 0 / 424.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.481e-05/0.2763, allocations: 7.875 kB / 424.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.428e-05/0.2764, allocations: 15.88 kB / 424.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001337/0.2765, allocations: 19.97 kB / 424.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.2766, allocations: 59.72 kB / 424.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.2768, allocations: 39.91 kB / 424.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.074e-05/0.2769, allocations: 31.8 kB / 424.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.994e-05/0.2769, allocations: 27.86 kB / 424.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.072e-05/0.2769, allocations: 4 kB / 424.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.302e-05/0.277, allocations: 8 kB / 424.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.069e-05/0.277, allocations: 15.92 kB / 424.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.447e-05/0.277, allocations: 31.81 kB / 424.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001381/0.2772, allocations: 75.55 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2772, allocations: 0 / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2772, allocations: 0 / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.2772, allocations: 0 / 425 MB, free: 12.2 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.0004723/0.2776, allocations: 306.5 kB / 425.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.2777, allocations: 12.03 kB / 425.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.924e-05/0.2777, allocations: 34.75 kB / 425.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.781e-05/0.2777, allocations: 8.891 kB / 425.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.2779, allocations: 126.4 kB / 425.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.709e-05/0.2779, allocations: 8.125 kB / 425.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.712e-05/0.2779, allocations: 8 kB / 425.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002287/0.2782, allocations: 106 kB / 425.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.2782, allocations: 7.875 kB / 425.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.2782, allocations: 8 kB / 425.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.2782, allocations: 0 / 425.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.2784, allocations: 55.89 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006716/0.2791, allocations: 0.6098 MB / 426.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001821/0.2792, allocations: 112.9 kB / 426.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.2794, allocations: 60.33 kB / 426.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.2794, allocations: 0 / 426.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.2794, allocations: 38.56 kB / 426.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 9.42e-07/0.2794, allocations: 4 kB / 426.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004403/0.2798, allocations: 129.3 kB / 426.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.28, allocations: 162.8 kB / 426.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.2801, allocations: 117.8 kB / 426.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.2801, allocations: 29.7 kB / 426.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.506e-05/0.2802, allocations: 96.08 kB / 427 MB, free: 9.918 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.442e-05/0.2802, allocations: 27.78 kB / 427 MB, free: 9.891 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.763e-05/0.2802, allocations: 17.72 kB / 427 MB, free: 9.867 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.2804, allocations: 322.8 kB / 427.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.802e-05/0.2805, allocations: 15.98 kB / 427.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.38e-05/0.2806, allocations: 52.28 kB / 427.4 MB, free: 9.461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.2807, allocations: 88.12 kB / 427.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.2807, allocations: 0 / 427.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002134/0.2809, allocations: 93.59 kB / 427.6 MB, free: 9.262 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.281, allocations: 7.281 kB / 427.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.281, allocations: 0 / 427.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.281, allocations: 7.938 kB / 427.6 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.2811, allocations: 16.09 kB / 427.6 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.2811, allocations: 3.984 kB / 427.6 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.039e-05/0.2812, allocations: 12.08 kB / 427.6 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.2812, allocations: 4 kB / 427.7 MB, free: 9.215 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 0.0001104/0.2813, allocations: 125.8 kB / 427.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.602e-05/0.2814, allocations: 7.922 kB / 427.8 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.844e-05/0.2814, allocations: 15.56 kB / 427.8 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2814, allocations: 4 kB / 427.8 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.2814, allocations: 4 kB / 427.8 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.2814, allocations: 0 / 427.8 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003785/0.2818, allocations: 156.7 kB / 428 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.2818, allocations: 4 kB / 428 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.379e-05/0.2819, allocations: 15.92 kB / 428 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2819, allocations: 0 / 428 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.2819, allocations: 7.938 kB / 428 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2819, allocations: 0 / 428 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.2819, allocations: 4 kB / 428 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003926/0.2823, allocations: 488.6 kB / 428.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.55e-05/0.2823, allocations: 11.89 kB / 428.5 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.2823, allocations: 11.86 kB / 428.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.2825, allocations: 12 kB / 428.5 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.385e-05/0.2826, allocations: 7.984 kB / 428.5 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.2826, allocations: 4 kB / 428.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.648e-05/0.2826, allocations: 91.27 kB / 428.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2826, allocations: 0 / 428.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003697/0.283, allocations: 12 kB / 428.6 MB, free: 8.176 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.000682/0.2837, allocations: 1.014 MB / 429.6 MB, free: 7.133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002141/0.2839, allocations: 59.89 kB / 429.7 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2839, allocations: 0 / 429.7 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.806e-05/0.284, allocations: 35.92 kB / 429.7 MB, free: 7.039 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004927/0.2845, allocations: 4.766 kB / 429.7 MB, free: 7.035 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006875/0.2852, allocations: 237.1 kB / 430 MB, free: 6.754 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.2855, allocations: 0.6961 MB / 430.7 MB, free: 6.031 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.309e-05/0.2855, allocations: 3.984 kB / 430.7 MB, free: 6.027 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.76e-05/0.2856, allocations: 19.44 kB / 430.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2856, allocations: 4 kB / 430.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0295/0.3151, allocations: 1.787 MB / 432.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.47, allocations: 11.91 kB / 432.5 MB, free: 4.316 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 & /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.838741573970765]