Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_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.001412/0.001412, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001557/0.001557, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.168/1.168, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008915/0.0008916, allocations: 46.52 kB / 300.7 MB, free: 5.711 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07944/0.08035, allocations: 49.44 MB / 350.1 MB, free: 4.258 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002565/0.08294, allocations: 1.591 MB / 351.7 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000582/0.08354, allocations: 420.4 kB / 352.2 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.97e-05/0.08361, allocations: 4 kB / 352.2 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.388e-05/0.08365, allocations: 11.81 kB / 352.2 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.468e-05/0.08375, allocations: 7.875 kB / 352.2 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000129/0.08389, allocations: 27.95 kB / 352.2 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.935e-05/0.08398, allocations: 55.84 kB / 352.3 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.08414, allocations: 51.84 kB / 352.3 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.271e-05/0.08423, allocations: 31.91 kB / 352.3 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.654e-05/0.0843, allocations: 27.86 kB / 352.4 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.673e-05/0.08432, allocations: 4 kB / 352.4 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.315e-05/0.08434, allocations: 4 kB / 352.4 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/0.08436, allocations: 19.86 kB / 352.4 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.672e-05/0.08441, allocations: 35.8 kB / 352.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.08451, allocations: 64.06 kB / 352.5 MB, free: 1.891 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.08452, allocations: 0 / 352.5 MB, free: 1.891 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.08453, allocations: 0 / 352.5 MB, free: 1.891 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.08454, allocations: 0 / 352.5 MB, free: 1.891 MB / 286.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.0004481/0.08499, allocations: 383.1 kB / 352.9 MB, free: 1.469 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.08503, allocations: 8.031 kB / 352.9 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.424e-05/0.08507, allocations: 38.75 kB / 352.9 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.603e-05/0.0851, allocations: 16.83 kB / 352.9 MB, free: 1.398 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.08521, allocations: 172.2 kB / 353.1 MB, free: 1.191 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.08524, allocations: 4.375 kB / 353.1 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.568e-05/0.08526, allocations: 11.94 kB / 353.1 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.08547, allocations: 111.5 kB / 353.2 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.08549, allocations: 0 / 353.2 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.08551, allocations: 8 kB / 353.2 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.08552, allocations: 3.938 kB / 353.2 MB, free: 1.035 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.0857, allocations: 63.83 kB / 353.3 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005549/0.08626, allocations: 0.638 MB / 353.9 MB, free: 276 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001616/0.08643, allocations: 117.1 kB / 354 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.08655, allocations: 56.33 kB / 354.1 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.08657, allocations: 0 / 354.1 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.08661, allocations: 42.55 kB / 354.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.052e-06/0.08662, allocations: 0 / 354.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004087/0.08703, allocations: 122 kB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.871e-05/0.0871, allocations: 166.2 kB / 354.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.834e-05/0.08718, allocations: 121.7 kB / 354.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.0872, allocations: 25.7 kB / 354.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.844e-05/0.08725, allocations: 104 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.08728, allocations: 11.81 kB / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.804e-05/0.08732, allocations: 21.7 kB / 354.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.876e-05/0.0874, allocations: 314.8 kB / 355 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.823e-05/0.08749, allocations: 27.97 kB / 355 MB, free: 15.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.152e-05/0.08758, allocations: 48.28 kB / 355.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.08776, allocations: 80.2 kB / 355.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.08777, allocations: 4 kB / 355.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002019/0.08798, allocations: 89.53 kB / 355.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.088, allocations: 11.12 kB / 355.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.08801, allocations: 4 kB / 355.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.08803, allocations: 7.938 kB / 355.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.8e-05/0.08812, allocations: 11.98 kB / 355.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.08814, allocations: 0 / 355.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.57e-05/0.08821, allocations: 19.89 kB / 355.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.08822, allocations: 0 / 355.3 MB, free: 14.71 MB / 302.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.327e-05/0.0883, allocations: 121.7 kB / 355.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.75e-05/0.08839, allocations: 4 kB / 355.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.729e-05/0.08842, allocations: 19.52 kB / 355.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.08843, allocations: 7.875 kB / 355.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.08844, allocations: 4 kB / 355.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.08845, allocations: 0 / 355.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003434/0.0888, allocations: 185.5 kB / 355.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.0888, allocations: 0 / 355.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.688e-05/0.08887, allocations: 16.11 kB / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.08889, allocations: 4 kB / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.0889, allocations: 4 kB / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.08891, allocations: 3.938 kB / 355.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.08891, allocations: 7.938 kB / 355.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003058/0.08922, allocations: 492.6 kB / 356.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.143e-05/0.08927, allocations: 85.02 kB / 356.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.08929, allocations: 8 kB / 356.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.0895, allocations: 11.92 kB / 356.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.08954, allocations: 7.984 kB / 356.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.08956, allocations: 4 kB / 356.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.112e-05/0.0896, allocations: 87.72 kB / 356.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08961, allocations: 3.938 kB / 356.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003668/0.08998, allocations: 12 kB / 356.4 MB, free: 13.54 MB / 302.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.0005165/0.0905, allocations: 1.03 MB / 357.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002046/0.09072, allocations: 63.84 kB / 357.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.09073, allocations: 0 / 357.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.223e-05/0.09082, allocations: 36.47 kB / 357.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004897/0.09132, allocations: 12.39 kB / 357.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006128/0.09194, allocations: 232.2 kB / 357.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002128/0.09217, allocations: 0.6924 MB / 358.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.855e-05/0.0922, allocations: 0 / 358.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.379e-05/0.09225, allocations: 23.42 kB / 358.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.09226, allocations: 0 / 358.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.532/2.624, allocations: 1.611 MB / 360.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/14.35, allocations: 6.656 kB / 360.1 MB, free: 9.781 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches