Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.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.001758/0.001758, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002125/0.002125, allocations: 205.5 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.402/1.402, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.BusUsage,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 51.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2614, allocations: 53.37 MB / 431.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003223/0.2646, allocations: 1.603 MB / 432.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008878/0.2655, allocations: 458.8 kB / 433.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.055e-05/0.2656, allocations: 4 kB / 433.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.091e-05/0.2656, allocations: 15.92 kB / 433.1 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.993e-05/0.2657, allocations: 15.8 kB / 433.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.2659, allocations: 35.91 kB / 433.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001247/0.266, allocations: 59.78 kB / 433.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.2661, allocations: 39.94 kB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.2663, allocations: 31.86 kB / 433.3 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.175e-05/0.2663, allocations: 35.78 kB / 433.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.2664, allocations: 4 kB / 433.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.083e-05/0.2664, allocations: 8 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.121e-05/0.2664, allocations: 23.92 kB / 433.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.437e-05/0.2665, allocations: 23.86 kB / 433.4 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.2666, allocations: 73.53 kB / 433.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2666, allocations: 0 / 433.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2666, allocations: 0 / 433.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.2666, allocations: 0 / 433.5 MB, free: 4.195 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.0004759/0.2671, allocations: 314 kB / 433.8 MB, free: 3.859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.2671, allocations: 12.03 kB / 433.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.227e-05/0.2672, allocations: 34.75 kB / 433.8 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.2673, allocations: 20.88 kB / 433.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.2675, allocations: 134.3 kB / 434 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.2676, allocations: 8.375 kB / 434 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.2676, allocations: 4.375 kB / 434 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/0.2678, allocations: 114.1 kB / 434.1 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.2678, allocations: 7.938 kB / 434.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.2679, allocations: 0 / 434.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2679, allocations: 0 / 434.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.268, allocations: 63.89 kB / 434.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006428/0.2687, allocations: 0.5943 MB / 434.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.2689, allocations: 113 kB / 434.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.269, allocations: 52.34 kB / 434.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.269, allocations: 7.938 kB / 434.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.269, allocations: 34.56 kB / 435 MB, free: 2.488 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.163e-06/0.269, allocations: 8 kB / 435 MB, free: 2.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004446/0.2695, allocations: 125.4 kB / 435.1 MB, free: 2.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.458e-05/0.2696, allocations: 154.2 kB / 435.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.2697, allocations: 121.8 kB / 435.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.2697, allocations: 30.33 kB / 435.4 MB, free: 2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.017e-05/0.2698, allocations: 100 kB / 435.5 MB, free: 1.898 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.2698, allocations: 19.91 kB / 435.5 MB, free: 1.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-05/0.2698, allocations: 21.7 kB / 435.6 MB, free: 1.852 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.27, allocations: 314.8 kB / 435.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.86e-05/0.2701, allocations: 19.98 kB / 435.9 MB, free: 1.516 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.2702, allocations: 56.27 kB / 435.9 MB, free: 1.445 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.2703, allocations: 76.2 kB / 436 MB, free: 1.355 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2703, allocations: 3.938 kB / 436 MB, free: 1.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002327/0.2706, allocations: 97.55 kB / 436.1 MB, free: 1.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.2706, allocations: 8 kB / 436.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.2706, allocations: 0 / 436.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2706, allocations: 8.094 kB / 436.1 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.2707, allocations: 19.92 kB / 436.1 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.2707, allocations: 3.938 kB / 436.1 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.534e-05/0.2708, allocations: 8.109 kB / 436.2 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.2708, allocations: 8 kB / 436.2 MB, free: 1.195 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.263e-05/0.2709, allocations: 117.8 kB / 436.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.692e-05/0.271, allocations: 11.95 kB / 436.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.264e-05/0.271, allocations: 15.58 kB / 436.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.271, allocations: 0 / 436.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.939e-05/0.271, allocations: 19.91 kB / 436.3 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.271, allocations: 0 / 436.3 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003754/0.2714, allocations: 152.7 kB / 436.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.2714, allocations: 4 kB / 436.5 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.04e-05/0.2715, allocations: 11.94 kB / 436.5 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2715, allocations: 3.938 kB / 436.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.2715, allocations: 8 kB / 436.5 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-05/0.2715, allocations: 3.984 kB / 436.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.175e-06/0.2715, allocations: 3.938 kB / 436.5 MB, free: 0.793 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004248/0.272, allocations: 488.6 kB / 437 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.382e-05/0.272, allocations: 7.953 kB / 437 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.272, allocations: 4 kB / 437 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.2722, allocations: 11.92 kB / 437 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.744e-05/0.2722, allocations: 11.94 kB / 437 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.2723, allocations: 7.984 kB / 437 MB, free: 260 kB / 334.1 MB Notification: Performance of sorting global known variables: time 5.707e-05/0.2723, allocations: 87.28 kB / 437.1 MB, free: 172 kB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2723, allocations: 0 / 437.1 MB, free: 172 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003772/0.2727, allocations: 8 kB / 437.1 MB, free: 164 kB / 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.0007398/0.2734, allocations: 1.026 MB / 438.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002166/0.2736, allocations: 55.84 kB / 438.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2737, allocations: 0 / 438.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.2738, allocations: 40.34 kB / 438.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005048/0.2743, allocations: 8 kB / 438.2 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.2763, allocations: 1.763 MB / 440 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001033/0.2764, allocations: 79.27 kB / 440.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.056e-05/0.2765, allocations: 3.984 kB / 440.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.235e-05/0.2766, allocations: 23.44 kB / 440.1 MB, free: 13 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2766, allocations: 0 / 440.1 MB, free: 13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.3049, allocations: 2.231 MB / 442.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/10.97, allocations: 11.03 kB / 442.4 MB, free: 10.88 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --stepSize=0.00039976 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Blocks.Examples.BusUsage_res.mat. Warning: Get data of variable controlBus.realSignal1 from file Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat failed! Error: Could not read variable controlBus.integerSignal in file Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat. Warning: Get data of variable controlBus.integerSignal from file Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat failed! Error: Could not read variable controlBus.booleanSignal in file Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat. Warning: Get data of variable controlBus.booleanSignal from file Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat failed! Error: Could not read variable controlBus.subControlBus.myRealSignal in file Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat. Warning: Get data of variable controlBus.subControlBus.myRealSignal from file Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat failed! Error: Could not read variable controlBus.subControlBus.myBooleanSignal in file Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat. Warning: Get data of variable controlBus.subControlBus.myBooleanSignal from file Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.330625145987142]