Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000791/0.0007909, allocations: 96.33 kB / 17.3 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000901/0.0009009, allocations: 178.5 kB / 18.21 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.611/1.611, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004938/0.0004934, allocations: 8 kB / 281.5 MB, free: 3.332 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09853/0.09903, allocations: 47.58 MB / 329 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001711/0.1008, allocations: 1.306 MB / 330.4 MB, free: 2.352 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006408/0.1015, allocations: 459.9 kB / 330.8 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.265e-05/0.1015, allocations: 4 kB / 330.8 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.563e-05/0.1016, allocations: 3.938 kB / 330.8 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.087e-05/0.1016, allocations: 3.938 kB / 330.8 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001425/0.1018, allocations: 19.97 kB / 330.8 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 9.088e-05/0.1019, allocations: 59.78 kB / 330.9 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.1021, allocations: 43.91 kB / 330.9 MB, free: 1.766 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.204e-05/0.1022, allocations: 27.84 kB / 331 MB, free: 1.738 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.175e-05/0.1022, allocations: 23.86 kB / 331 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.1023, allocations: 0 / 331 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.044e-05/0.1023, allocations: 4 kB / 331 MB, free: 1.711 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.044e-05/0.1023, allocations: 7.938 kB / 331 MB, free: 1.703 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.534e-05/0.1024, allocations: 49.56 kB / 331 MB, free: 1.648 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.1025, allocations: 63.98 kB / 331.1 MB, free: 1.586 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1025, allocations: 3.938 kB / 331.1 MB, free: 1.582 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.1025, allocations: 0 / 331.1 MB, free: 1.582 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.1025, allocations: 3.938 kB / 331.1 MB, free: 1.578 MB / 270.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.0004305/0.1029, allocations: 371.3 kB / 331.5 MB, free: 1.168 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.103, allocations: 8.031 kB / 331.5 MB, free: 1.16 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.33e-05/0.103, allocations: 34.75 kB / 331.5 MB, free: 1.117 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.622e-05/0.1031, allocations: 8.844 kB / 331.5 MB, free: 1.109 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.1032, allocations: 176.2 kB / 331.7 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.1032, allocations: 4.375 kB / 331.7 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.1032, allocations: 8.375 kB / 331.7 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002289/0.1035, allocations: 121.8 kB / 331.8 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.1035, allocations: 0 / 331.8 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.1035, allocations: 4 kB / 331.8 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.1035, allocations: 0 / 331.8 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.1037, allocations: 71.89 kB / 331.9 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006258/0.1043, allocations: 0.638 MB / 332.5 MB, free: 15.97 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001938/0.1045, allocations: 132.9 kB / 332.7 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.1047, allocations: 60.34 kB / 332.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.1047, allocations: 4 kB / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.1047, allocations: 38.48 kB / 332.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.1047, allocations: 0 / 332.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004548/0.1052, allocations: 141.4 kB / 332.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.942e-05/0.1053, allocations: 162.8 kB / 333.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.1054, allocations: 121.8 kB / 333.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.1054, allocations: 25.7 kB / 333.2 MB, free: 15.17 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.215e-05/0.1055, allocations: 100 kB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.36e-05/0.1055, allocations: 11.81 kB / 333.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.343e-05/0.1056, allocations: 21.7 kB / 333.3 MB, free: 15.03 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.1057, allocations: 310.8 kB / 333.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.883e-05/0.1058, allocations: 31.98 kB / 333.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.253e-05/0.1059, allocations: 60.2 kB / 333.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.1061, allocations: 88.2 kB / 333.8 MB, free: 14.51 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1061, allocations: 0 / 333.8 MB, free: 14.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002232/0.1063, allocations: 113.4 kB / 333.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.1063, allocations: 8 kB / 333.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1064, allocations: 3.984 kB / 333.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.1064, allocations: 8.156 kB / 334 MB, free: 14.37 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.602e-05/0.1065, allocations: 11.98 kB / 334 MB, free: 14.36 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.1065, allocations: 7.938 kB / 334 MB, free: 14.35 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.556e-05/0.1066, allocations: 11.94 kB / 334 MB, free: 14.34 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.1066, allocations: 0 / 334 MB, free: 14.34 MB / 286.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.989e-05/0.1067, allocations: 125.8 kB / 334.1 MB, free: 14.21 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.5e-05/0.1068, allocations: 3.906 kB / 334.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.93e-05/0.1068, allocations: 23.48 kB / 334.1 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.1068, allocations: 4.125 kB / 334.1 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1068, allocations: 7.938 kB / 334.2 MB, free: 14.17 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.1068, allocations: 0 / 334.2 MB, free: 14.17 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003566/0.1072, allocations: 177.6 kB / 334.3 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1072, allocations: 0 / 334.3 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.672e-05/0.1073, allocations: 19.98 kB / 334.3 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.1073, allocations: 4 kB / 334.3 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.1073, allocations: 0 / 334.3 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1073, allocations: 4 kB / 334.4 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1073, allocations: 7.938 kB / 334.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004005/0.1077, allocations: 0.4926 MB / 334.9 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.1078, allocations: 85.05 kB / 334.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.1078, allocations: 4 kB / 334.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.108, allocations: 8 kB / 334.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.129e-05/0.1081, allocations: 11.92 kB / 335 MB, free: 13.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-06/0.1081, allocations: 8 kB / 335 MB, free: 13.27 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.604e-05/0.1082, allocations: 91.27 kB / 335.1 MB, free: 13.18 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1082, allocations: 0 / 335.1 MB, free: 13.18 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003942/0.1086, allocations: 15.91 kB / 335.1 MB, free: 13.16 MB / 286.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.0007427/0.1093, allocations: 1.03 MB / 336.1 MB, free: 12.1 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002498/0.1096, allocations: 71.89 kB / 336.2 MB, free: 12.03 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1096, allocations: 3.938 kB / 336.2 MB, free: 12.03 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.1097, allocations: 36.48 kB / 336.2 MB, free: 11.99 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005202/0.1102, allocations: 11.98 kB / 336.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006782/0.1109, allocations: 267.6 kB / 336.5 MB, free: 11.67 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.1112, allocations: 0.6887 MB / 337.2 MB, free: 10.95 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.464e-05/0.1113, allocations: 7.984 kB / 337.2 MB, free: 10.95 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.802e-05/0.1113, allocations: 15.44 kB / 337.2 MB, free: 10.93 MB / 286.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1113, allocations: 4 kB / 337.2 MB, free: 10.93 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09066/0.202, allocations: 1.347 MB / 338.5 MB, free: 9.59 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.2022, allocations: 185 kB / 338.7 MB, free: 9.328 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.983/2.185, allocations: 0 / 338.7 MB, free: 9.328 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches