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.001273/0.001273, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001453/0.001453, allocations: 210.7 kB / 23.73 MB, free: 4.387 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.404/1.404, allocations: 230.6 MB / 257.5 MB, free: 7.785 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: 43.92 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2508, allocations: 53.37 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002924/0.2537, allocations: 1.599 MB / 432.7 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008081/0.2545, allocations: 458.8 kB / 433.1 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.342e-05/0.2546, allocations: 8 kB / 433.1 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.894e-05/0.2546, allocations: 11.86 kB / 433.1 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.402e-05/0.2547, allocations: 11.88 kB / 433.2 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001955/0.2549, allocations: 35.89 kB / 433.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001186/0.255, allocations: 63.78 kB / 433.3 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.2551, allocations: 31.95 kB / 433.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001193/0.2552, allocations: 35.84 kB / 433.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.155e-05/0.2553, allocations: 27.84 kB / 433.3 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.2553, allocations: 4 kB / 433.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.112e-05/0.2554, allocations: 16 kB / 433.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.987e-05/0.2554, allocations: 15.92 kB / 433.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.086e-05/0.2554, allocations: 27.75 kB / 433.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.2556, allocations: 77.52 kB / 433.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2556, allocations: 0 / 433.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2556, allocations: 0 / 433.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.2556, allocations: 0 / 433.5 MB, free: 4.25 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.0004716/0.256, allocations: 314 kB / 433.8 MB, free: 3.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.2561, allocations: 12.03 kB / 433.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.012e-05/0.2561, allocations: 34.75 kB / 433.8 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.2563, allocations: 24.88 kB / 433.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000188/0.2564, allocations: 126.4 kB / 434 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.2565, allocations: 4.375 kB / 434 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.2565, allocations: 4.375 kB / 434 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.2567, allocations: 122 kB / 434.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2567, allocations: 0 / 434.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.2567, allocations: 0 / 434.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.2567, allocations: 4 kB / 434.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.2569, allocations: 59.89 kB / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006213/0.2575, allocations: 0.5942 MB / 434.8 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.2577, allocations: 113 kB / 434.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.2578, allocations: 48.41 kB / 434.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.2578, allocations: 7.938 kB / 434.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.2579, allocations: 46.55 kB / 435 MB, free: 2.543 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.2579, allocations: 0 / 435 MB, free: 2.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004234/0.2583, allocations: 117.5 kB / 435.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.718e-05/0.2584, allocations: 158.2 kB / 435.2 MB, free: 2.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.2585, allocations: 121.8 kB / 435.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.2585, allocations: 34.27 kB / 435.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.352e-05/0.2586, allocations: 108 kB / 435.5 MB, free: 1.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.2586, allocations: 15.91 kB / 435.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.118e-05/0.2586, allocations: 21.7 kB / 435.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.2588, allocations: 318.8 kB / 435.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.713e-05/0.2589, allocations: 19.97 kB / 435.9 MB, free: 1.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.186e-05/0.2589, allocations: 52.28 kB / 435.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001767/0.2591, allocations: 76.2 kB / 436 MB, free: 1.414 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.2591, allocations: 4 kB / 436 MB, free: 1.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.00022/0.2593, allocations: 97.48 kB / 436.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.2594, allocations: 8 kB / 436.1 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.207e-06/0.2594, allocations: 4.281 kB / 436.1 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.2594, allocations: 8 kB / 436.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.093e-05/0.2595, allocations: 11.98 kB / 436.1 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.2595, allocations: 3.938 kB / 436.1 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.58e-05/0.2595, allocations: 11.98 kB / 436.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.2595, allocations: 3.938 kB / 436.1 MB, free: 1.258 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.489e-05/0.2596, allocations: 129.7 kB / 436.3 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.5e-05/0.2597, allocations: 7.953 kB / 436.3 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.304e-05/0.2598, allocations: 15.56 kB / 436.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2598, allocations: 4 kB / 436.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2598, allocations: 7.938 kB / 436.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2598, allocations: 0 / 436.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003629/0.2601, allocations: 148.7 kB / 436.5 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2601, allocations: 4 kB / 436.5 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.773e-05/0.2602, allocations: 12 kB / 436.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2602, allocations: 0 / 436.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.2602, allocations: 7.984 kB / 436.5 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2602, allocations: 0 / 436.5 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.2602, allocations: 11.88 kB / 436.5 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003768/0.2606, allocations: 492.6 kB / 437 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.302e-05/0.2606, allocations: 3.953 kB / 437 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.2606, allocations: 4 kB / 437 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.2608, allocations: 7.984 kB / 437 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.734e-05/0.2609, allocations: 19.81 kB / 437 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.2609, allocations: 7.984 kB / 437 MB, free: 324 kB / 334.1 MB Notification: Performance of sorting global known variables: time 5.687e-05/0.261, allocations: 87.72 kB / 437.1 MB, free: 236 kB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.261, allocations: 0 / 437.1 MB, free: 236 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003725/0.2613, allocations: 12 kB / 437.1 MB, free: 224 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.0006967/0.262, allocations: 1.022 MB / 438.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002152/0.2622, allocations: 55.84 kB / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2622, allocations: 0 / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.2623, allocations: 40.22 kB / 438.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.2628, allocations: 8.328 kB / 438.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.2647, allocations: 1.773 MB / 440 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.718e-05/0.2648, allocations: 75.33 kB / 440.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.639e-05/0.2648, allocations: 11.92 kB / 440.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.095e-05/0.2649, allocations: 19.44 kB / 440.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2649, allocations: 0 / 440.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.2912, allocations: 2.195 MB / 442.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.26, allocations: 18.06 kB / 442.3 MB, free: 10.96 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.548252663109452]