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.001556/0.001556, allocations: 115.6 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.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.002063/0.002063, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.598/1.598, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.001627/0.001627, allocations: 43.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2694, allocations: 53.37 MB / 431.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002886/0.2723, allocations: 1.628 MB / 432.8 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000907/0.2732, allocations: 0.4947 MB / 433.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.398e-05/0.2733, allocations: 4 kB / 433.3 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.159e-05/0.2733, allocations: 7.875 kB / 433.3 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.412e-05/0.2734, allocations: 11.86 kB / 433.3 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000207/0.2736, allocations: 39.89 kB / 433.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001513/0.2738, allocations: 59.78 kB / 433.4 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.274, allocations: 36.16 kB / 433.4 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.2741, allocations: 31.91 kB / 433.4 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.459e-05/0.2742, allocations: 35.78 kB / 433.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.2742, allocations: 4 kB / 433.5 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.581e-05/0.2743, allocations: 12 kB / 433.5 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.291e-05/0.2743, allocations: 4 kB / 433.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.815e-05/0.2743, allocations: 35.8 kB / 433.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.2745, allocations: 78.91 kB / 433.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.2745, allocations: 8 kB / 433.6 MB, free: 4.355 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2745, allocations: 0 / 433.6 MB, free: 4.355 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.2745, allocations: 4 kB / 433.6 MB, free: 4.352 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.0005351/0.275, allocations: 307.1 kB / 433.9 MB, free: 4.023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.2751, allocations: 8.031 kB / 433.9 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.055e-05/0.2751, allocations: 38.75 kB / 434 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.2753, allocations: 20.83 kB / 434 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002225/0.2755, allocations: 130.4 kB / 434.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.845e-05/0.2755, allocations: 8.375 kB / 434.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.2756, allocations: 8.375 kB / 434.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.2758, allocations: 125.6 kB / 434.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.2758, allocations: 0 / 434.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.2758, allocations: 4 kB / 434.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.2758, allocations: 0 / 434.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.276, allocations: 59.89 kB / 434.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006949/0.2767, allocations: 0.6059 MB / 434.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002036/0.2769, allocations: 113 kB / 435 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.277, allocations: 52.34 kB / 435.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.2771, allocations: 15.86 kB / 435.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.2771, allocations: 30.56 kB / 435.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.2771, allocations: 0 / 435.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.00045/0.2775, allocations: 129.5 kB / 435.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.2776, allocations: 162.1 kB / 435.4 MB, free: 2.309 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.2778, allocations: 125.7 kB / 435.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.2778, allocations: 25.7 kB / 435.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.549e-05/0.2778, allocations: 104.6 kB / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.344e-05/0.2779, allocations: 19.89 kB / 435.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.174e-05/0.2779, allocations: 21.72 kB / 435.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.2781, allocations: 314.8 kB / 436 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.729e-05/0.2781, allocations: 19.98 kB / 436 MB, free: 1.656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.2782, allocations: 52.27 kB / 436.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.2784, allocations: 80.2 kB / 436.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.2784, allocations: 0 / 436.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002424/0.2787, allocations: 105.5 kB / 436.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2787, allocations: 8 kB / 436.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.2787, allocations: 0 / 436.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.2787, allocations: 0 / 436.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.558e-05/0.2788, allocations: 15.98 kB / 436.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.2788, allocations: 3.938 kB / 436.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.463e-05/0.2789, allocations: 8.156 kB / 436.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.2789, allocations: 7.984 kB / 436.3 MB, free: 1.344 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.818e-05/0.279, allocations: 125.7 kB / 436.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.248e-05/0.2791, allocations: 7.953 kB / 436.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.072e-05/0.2791, allocations: 19.58 kB / 436.4 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2791, allocations: 0 / 436.4 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.2791, allocations: 7.938 kB / 436.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2791, allocations: 0 / 436.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003875/0.2795, allocations: 152.7 kB / 436.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2795, allocations: 4 kB / 436.6 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.754e-05/0.2796, allocations: 19.92 kB / 436.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2796, allocations: 0 / 436.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.2796, allocations: 4.125 kB / 436.6 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.2796, allocations: 4 kB / 436.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-05/0.2796, allocations: 11.86 kB / 436.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004441/0.2801, allocations: 492.6 kB / 437.1 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.654e-05/0.2801, allocations: 7.953 kB / 437.1 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.2801, allocations: 0 / 437.1 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.2803, allocations: 4 kB / 437.1 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.752e-05/0.2804, allocations: 19.92 kB / 437.2 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.2804, allocations: 4 kB / 437.2 MB, free: 412 kB / 334.1 MB Notification: Performance of sorting global known variables: time 6.236e-05/0.2804, allocations: 95.2 kB / 437.3 MB, free: 316 kB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2804, allocations: 0 / 437.3 MB, free: 316 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003896/0.2808, allocations: 16 kB / 437.3 MB, free: 300 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.0007724/0.2816, allocations: 1.01 MB / 438.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002234/0.2818, allocations: 64.03 kB / 438.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2818, allocations: 4 kB / 438.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.749e-05/0.2819, allocations: 35.91 kB / 438.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005092/0.2824, allocations: 4 kB / 438.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.2847, allocations: 1.765 MB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.2851, allocations: 0.6924 MB / 440.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.528e-05/0.2851, allocations: 4 kB / 440.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.942e-05/0.2852, allocations: 27.36 kB / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2852, allocations: 0 / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02791/0.3131, allocations: 1.817 MB / 442.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.55, allocations: 8.062 kB / 442.7 MB, free: 10.81 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.18671643990092]