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.002222/0.002222, allocations: 102 kB / 17.06 MB, free: 6.145 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.002627/0.002628, allocations: 195 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.037/2.037, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 47.92 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3829, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003881/0.3869, allocations: 1.597 MB / 401.8 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008643/0.3878, allocations: 427 kB / 402.2 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.782e-05/0.3879, allocations: 0 / 402.2 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.162e-05/0.3879, allocations: 11.88 kB / 402.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.3881, allocations: 11.86 kB / 402.3 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001763/0.3883, allocations: 15.98 kB / 402.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001116/0.3884, allocations: 63.77 kB / 402.3 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/0.3886, allocations: 43.91 kB / 402.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.3887, allocations: 31.86 kB / 402.4 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.375e-05/0.3888, allocations: 39.83 kB / 402.4 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.3889, allocations: 7.938 kB / 402.5 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.442e-05/0.3889, allocations: 4 kB / 402.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.715e-05/0.3889, allocations: 19.92 kB / 402.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.919e-05/0.389, allocations: 27.81 kB / 402.5 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001786/0.3892, allocations: 69.39 kB / 402.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.3892, allocations: 4 kB / 402.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3892, allocations: 0 / 402.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.3892, allocations: 0 / 402.6 MB, free: 6.465 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.0006463/0.3899, allocations: 379.2 kB / 402.9 MB, free: 6.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.3899, allocations: 12.03 kB / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.943e-05/0.39, allocations: 34.75 kB / 403 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.297e-05/0.39, allocations: 8.844 kB / 403 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.3902, allocations: 180.2 kB / 403.2 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.3902, allocations: 12.12 kB / 403.2 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.3903, allocations: 4 kB / 403.2 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/0.3905, allocations: 117.8 kB / 403.3 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.3905, allocations: 0 / 403.3 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.3906, allocations: 4 kB / 403.3 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.3906, allocations: 4 kB / 403.3 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.3908, allocations: 51.89 kB / 403.4 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007746/0.3916, allocations: 0.638 MB / 404 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001891/0.3918, allocations: 117 kB / 404.1 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.3919, allocations: 48.41 kB / 404.2 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.3919, allocations: 7.938 kB / 404.2 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.3919, allocations: 38.56 kB / 404.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.173e-06/0.392, allocations: 0 / 404.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004792/0.3924, allocations: 129.9 kB / 404.3 MB, free: 4.445 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.3926, allocations: 162.2 kB / 404.5 MB, free: 4.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.3927, allocations: 113.8 kB / 404.6 MB, free: 4.129 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.631e-05/0.3927, allocations: 25.7 kB / 404.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.3928, allocations: 100 kB / 404.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.84e-05/0.3928, allocations: 19.73 kB / 404.8 MB, free: 3.977 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.712e-05/0.3929, allocations: 25.7 kB / 404.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.3931, allocations: 318.9 kB / 405.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.374e-05/0.3932, allocations: 19.98 kB / 405.1 MB, free: 3.605 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.939e-05/0.3933, allocations: 48.27 kB / 405.2 MB, free: 3.543 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000172/0.3934, allocations: 84.2 kB / 405.2 MB, free: 3.445 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3934, allocations: 128 / 405.2 MB, free: 3.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002403/0.3937, allocations: 109.5 kB / 405.3 MB, free: 3.332 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.3937, allocations: 6.5 kB / 405.3 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.3937, allocations: 0 / 405.3 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.3938, allocations: 7.938 kB / 405.4 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.3939, allocations: 15.92 kB / 405.4 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.3939, allocations: 4 kB / 405.4 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.785e-05/0.394, allocations: 4 kB / 405.4 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.394, allocations: 7.984 kB / 405.4 MB, free: 3.289 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 0.0001156/0.3941, allocations: 125.8 kB / 405.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.3942, allocations: 7.906 kB / 405.5 MB, free: 3.148 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.501e-05/0.3943, allocations: 11.47 kB / 405.5 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3943, allocations: 4 kB / 405.5 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.3943, allocations: 0 / 405.5 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.3943, allocations: 4 kB / 405.5 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004196/0.3948, allocations: 181.6 kB / 405.7 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3948, allocations: 7.984 kB / 405.7 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.266e-05/0.3948, allocations: 8 kB / 405.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.3949, allocations: 0 / 405.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/0.3949, allocations: 11.94 kB / 405.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3949, allocations: 4 kB / 405.7 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/0.3949, allocations: 11.92 kB / 405.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000452/0.3954, allocations: 488.5 kB / 406.2 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.974e-05/0.3954, allocations: 85.09 kB / 406.3 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.3955, allocations: 3.938 kB / 406.3 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.3957, allocations: 7.984 kB / 406.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.245e-05/0.3958, allocations: 8 kB / 406.3 MB, free: 2.238 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.3958, allocations: 7.938 kB / 406.3 MB, free: 2.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.172e-05/0.3958, allocations: 91.27 kB / 406.4 MB, free: 2.141 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3959, allocations: 4 kB / 406.4 MB, free: 2.137 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004307/0.3963, allocations: 11.91 kB / 406.5 MB, free: 2.125 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.0008444/0.3971, allocations: 1.022 MB / 407.5 MB, free: 1.074 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002751/0.3974, allocations: 63.95 kB / 407.5 MB, free: 1.012 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3975, allocations: 0 / 407.5 MB, free: 1.012 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.3976, allocations: 36.42 kB / 407.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005786/0.3981, allocations: 11.98 kB / 407.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008609/0.399, allocations: 232.2 kB / 407.8 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.3994, allocations: 0.7001 MB / 408.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.298e-05/0.3995, allocations: 3.938 kB / 408.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.479e-05/0.3996, allocations: 23.44 kB / 408.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of SimCode: time 6.241e-06/0.3996, allocations: 0 / 408.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.4221, allocations: 1.65 MB / 410.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.82, allocations: 22.44 kB / 410.2 MB, free: 14.32 MB / 334.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