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.002033/0.002033, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.00308/0.00308, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.454/1.454, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001496/0.001496, allocations: 47.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1064, allocations: 53.32 MB / 426.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002963/0.1093, allocations: 1.626 MB / 427.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009148/0.1103, allocations: 490.8 kB / 428.4 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.398e-05/0.1103, allocations: 0 / 428.4 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.199e-05/0.1104, allocations: 15.86 kB / 428.4 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.626e-05/0.1104, allocations: 15.86 kB / 428.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001879/0.1106, allocations: 31.91 kB / 428.5 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.1108, allocations: 63.78 kB / 428.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.1109, allocations: 48.06 kB / 428.6 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.111, allocations: 35.84 kB / 428.6 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.401e-05/0.1111, allocations: 27.86 kB / 428.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.614e-05/0.1111, allocations: 4 kB / 428.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.042e-05/0.1112, allocations: 8 kB / 428.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.811e-05/0.1112, allocations: 15.91 kB / 428.7 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.689e-05/0.1112, allocations: 39.73 kB / 428.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001566/0.1114, allocations: 71.66 kB / 428.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1114, allocations: 7.938 kB / 428.8 MB, free: 2.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1114, allocations: 0 / 428.8 MB, free: 2.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.1114, allocations: 4 kB / 428.8 MB, free: 2.273 MB / 350.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.0005251/0.1119, allocations: 371.2 kB / 429.1 MB, free: 1.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.112, allocations: 12.03 kB / 429.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.287e-05/0.112, allocations: 38.73 kB / 429.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.1122, allocations: 20.84 kB / 429.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.1124, allocations: 188.2 kB / 429.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.1124, allocations: 8.375 kB / 429.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.1124, allocations: 8.312 kB / 429.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002422/0.1127, allocations: 114.1 kB / 429.5 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1127, allocations: 0 / 429.5 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.1127, allocations: 4 kB / 429.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.1127, allocations: 4 kB / 429.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002419/0.1129, allocations: 59.89 kB / 429.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000708/0.1137, allocations: 0.6536 MB / 430.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001891/0.1138, allocations: 109 kB / 430.4 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.114, allocations: 52.41 kB / 430.4 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.114, allocations: 3.938 kB / 430.4 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.114, allocations: 42.55 kB / 430.5 MB, free: 364 kB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.114, allocations: 0 / 430.5 MB, free: 364 kB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004484/0.1145, allocations: 121.5 kB / 430.6 MB, free: 236 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.963e-05/0.1146, allocations: 162.8 kB / 430.7 MB, free: 36 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.1147, allocations: 121.8 kB / 430.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.1147, allocations: 29.7 kB / 430.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.193e-05/0.1148, allocations: 96.08 kB / 431 MB, free: 15.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.765e-05/0.1148, allocations: 11.91 kB / 431 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.327e-05/0.1148, allocations: 25.64 kB / 431 MB, free: 15.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.115, allocations: 318.8 kB / 431.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.432e-05/0.1151, allocations: 23.97 kB / 431.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.1152, allocations: 52.28 kB / 431.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.1154, allocations: 80.2 kB / 431.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1154, allocations: 0 / 431.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002284/0.1156, allocations: 101.5 kB / 431.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.1156, allocations: 7.938 kB / 431.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.1156, allocations: 4 kB / 431.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.1156, allocations: 160 / 431.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.024e-05/0.1157, allocations: 15.98 kB / 431.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.1157, allocations: 7.938 kB / 431.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.768e-05/0.1158, allocations: 11.92 kB / 431.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-06/0.1158, allocations: 7.938 kB / 431.6 MB, free: 15.07 MB / 366.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.619e-05/0.1159, allocations: 113.8 kB / 431.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.969e-05/0.116, allocations: 7.953 kB / 431.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.4e-05/0.116, allocations: 15.64 kB / 431.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.116, allocations: 0 / 431.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.116, allocations: 11.94 kB / 431.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.116, allocations: 4 kB / 431.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003907/0.1164, allocations: 185.6 kB / 432 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1164, allocations: 0 / 432 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.807e-05/0.1165, allocations: 11.98 kB / 432 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1165, allocations: 4 kB / 432 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.1165, allocations: 4 kB / 432 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.1165, allocations: 4 kB / 432 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.1165, allocations: 7.875 kB / 432 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004142/0.1169, allocations: 488.6 kB / 432.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.8e-05/0.117, allocations: 85.06 kB / 432.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.117, allocations: 4 kB / 432.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.1172, allocations: 11.98 kB / 432.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.3e-05/0.1173, allocations: 19.86 kB / 432.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.1173, allocations: 0 / 432.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.191e-05/0.1173, allocations: 99.2 kB / 432.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1173, allocations: 0 / 432.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003741/0.1177, allocations: 8 kB / 432.7 MB, free: 13.9 MB / 366.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.0007521/0.1185, allocations: 1.018 MB / 433.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002218/0.1187, allocations: 63.83 kB / 433.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1187, allocations: 4 kB / 433.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.702e-05/0.1188, allocations: 27.92 kB / 433.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005076/0.1193, allocations: 11.94 kB / 433.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.1213, allocations: 1.76 MB / 435.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/0.1217, allocations: 0.6963 MB / 436.3 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.631e-05/0.1217, allocations: 3.984 kB / 436.3 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.314e-05/0.1218, allocations: 23.44 kB / 436.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1218, allocations: 0 / 436.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02456/0.1464, allocations: 1.689 MB / 438 MB, free: 8.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.791/7.937, allocations: 6.594 kB / 438 MB, free: 8.48 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.565839359071106]