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.001497/0.001497, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001462/0.001462, allocations: 188.2 kB / 18.66 MB, free: 4.391 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.439/1.439, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.00165/0.00165, allocations: 51.94 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.1006, allocations: 46.61 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002981/0.1036, allocations: 1.587 MB / 376.2 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007847/0.1044, allocations: 476.3 kB / 376.7 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.152e-05/0.1045, allocations: 0 / 376.7 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.062e-05/0.1046, allocations: 3.938 kB / 376.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.607e-05/0.1047, allocations: 15.86 kB / 376.7 MB, free: 3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001535/0.1048, allocations: 19.92 kB / 376.7 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001221/0.105, allocations: 63.77 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.1051, allocations: 43.97 kB / 376.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.1053, allocations: 35.8 kB / 376.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.677e-05/0.1053, allocations: 31.83 kB / 376.9 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.1054, allocations: 8 kB / 376.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.399e-05/0.1054, allocations: 4 kB / 376.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.973e-05/0.1054, allocations: 15.98 kB / 376.9 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.626e-05/0.1055, allocations: 23.81 kB / 376.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001542/0.1056, allocations: 75.64 kB / 377 MB, free: 2.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1057, allocations: 0 / 377 MB, free: 2.684 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1057, allocations: 0 / 377 MB, free: 2.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1057, allocations: 4 kB / 377 MB, free: 2.68 MB / 318.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.0005874/0.1063, allocations: 383.2 kB / 377.4 MB, free: 2.258 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.1063, allocations: 8.031 kB / 377.4 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.634e-05/0.1064, allocations: 38.75 kB / 377.4 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.865e-05/0.1064, allocations: 8.891 kB / 377.4 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001797/0.1066, allocations: 184.1 kB / 377.6 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.1066, allocations: 384 / 377.6 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.1066, allocations: 8.375 kB / 377.6 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.1069, allocations: 114 kB / 377.7 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.1069, allocations: 4 kB / 377.8 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.1069, allocations: 4 kB / 377.8 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.1069, allocations: 0 / 377.8 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.1071, allocations: 59.89 kB / 377.8 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000726/0.1079, allocations: 0.6342 MB / 378.4 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001922/0.1081, allocations: 121 kB / 378.6 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.1082, allocations: 64.28 kB / 378.6 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.1082, allocations: 0 / 378.6 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.1083, allocations: 42.5 kB / 378.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.1083, allocations: 0 / 378.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004638/0.1087, allocations: 125.6 kB / 378.8 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.1089, allocations: 154.2 kB / 378.9 MB, free: 472 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.109, allocations: 129.6 kB / 379.1 MB, free: 332 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.109, allocations: 29.7 kB / 379.1 MB, free: 296 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.992e-05/0.1091, allocations: 100.1 kB / 379.2 MB, free: 192 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.689e-05/0.1091, allocations: 20.28 kB / 379.2 MB, free: 172 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.377e-05/0.1092, allocations: 25.7 kB / 379.2 MB, free: 140 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.1702/0.2794, allocations: 310.8 kB / 379.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.2795, allocations: 19.08 kB / 379.6 MB, free: 12.14 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.954e-05/0.2796, allocations: 53.52 kB / 379.6 MB, free: 12.1 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.2798, allocations: 80.86 kB / 379.7 MB, free: 12.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2798, allocations: 4.688 kB / 379.7 MB, free: 12.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002382/0.2801, allocations: 95.53 kB / 379.8 MB, free: 12.03 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.2801, allocations: 5.781 kB / 379.8 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2801, allocations: 1.312 kB / 379.8 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.2801, allocations: 5 kB / 379.8 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.2803, allocations: 19.88 kB / 379.8 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.2803, allocations: 4.781 kB / 379.8 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.943e-05/0.2803, allocations: 9.656 kB / 379.8 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/0.2804, allocations: 4.328 kB / 379.8 MB, free: 12.03 MB / 318.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 7.366e-05/0.2804, allocations: 115.4 kB / 380 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.474e-05/0.2805, allocations: 9.625 kB / 380 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.006e-05/0.2806, allocations: 16.98 kB / 380 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.2806, allocations: 2.75 kB / 380 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.2806, allocations: 6.625 kB / 380 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.2806, allocations: 1.375 kB / 380 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003427/0.2809, allocations: 181.2 kB / 380.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.281, allocations: 4.219 kB / 380.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.431e-05/0.281, allocations: 16.66 kB / 380.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.281, allocations: 1.375 kB / 380.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.2811, allocations: 1.375 kB / 380.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2811, allocations: 5.312 kB / 380.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.2811, allocations: 1.375 kB / 380.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002788/0.2814, allocations: 492.7 kB / 380.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.168e-05/0.2814, allocations: 85.23 kB / 380.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.085e-05/0.2814, allocations: 12.17 kB / 380.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.2816, allocations: 11.16 kB / 380.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.59e-05/0.2817, allocations: 10.23 kB / 380.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-06/0.2817, allocations: 3.797 kB / 380.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.507e-05/0.2817, allocations: 93.62 kB / 380.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2817, allocations: 0 / 380.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003612/0.2821, allocations: 12.36 kB / 380.9 MB, free: 11.12 MB / 318.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.0003929/0.2825, allocations: 1.019 MB / 381.9 MB, free: 10.17 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00022/0.2827, allocations: 62.92 kB / 382 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2828, allocations: 4.375 kB / 382 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.2829, allocations: 32.5 kB / 382 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004883/0.2834, allocations: 7.25 kB / 382 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006539/0.284, allocations: 236.9 kB / 382.3 MB, free: 9.961 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001706/0.2842, allocations: 0.6983 MB / 383 MB, free: 9.266 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.167e-05/0.2842, allocations: 6.359 kB / 383 MB, free: 9.266 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.806e-05/0.2843, allocations: 22.69 kB / 383 MB, free: 9.254 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2843, allocations: 0 / 383 MB, free: 9.254 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02162/0.3059, allocations: 1.641 MB / 384.6 MB, free: 8.766 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.941/8.247, allocations: 10.03 kB / 384.6 MB, free: 8.758 MB / 318.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches