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.001815/0.001815, allocations: 107.8 kB / 17.06 MB, free: 5.828 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.001813/0.001813, allocations: 195.9 kB / 18 MB, free: 4.965 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.463/1.463, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 55.91 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2713, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002712/0.274, allocations: 1.593 MB / 401.8 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007444/0.2748, allocations: 430.5 kB / 402.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.958e-05/0.2748, allocations: 0 / 402.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.707e-05/0.2749, allocations: 7.938 kB / 402.2 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.24e-05/0.275, allocations: 15.84 kB / 402.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001328/0.2751, allocations: 19.92 kB / 402.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.2752, allocations: 63.78 kB / 402.3 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.2754, allocations: 39.97 kB / 402.4 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.055e-05/0.2755, allocations: 31.8 kB / 402.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.875e-05/0.2756, allocations: 31.84 kB / 402.4 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.2756, allocations: 4 kB / 402.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.499e-05/0.2756, allocations: 8 kB / 402.5 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.3e-05/0.2756, allocations: 15.92 kB / 402.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.046e-05/0.2757, allocations: 27.81 kB / 402.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.2758, allocations: 66.86 kB / 402.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2758, allocations: 4 kB / 402.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2758, allocations: 0 / 402.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.2758, 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.0005115/0.2764, allocations: 387.1 kB / 402.9 MB, free: 6.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.2764, allocations: 12.03 kB / 403 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.51e-05/0.2765, allocations: 34.75 kB / 403 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.844e-05/0.2765, allocations: 8.891 kB / 403 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.2766, allocations: 176.3 kB / 403.2 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.2767, allocations: 8.125 kB / 403.2 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.115e-05/0.2767, allocations: 11.98 kB / 403.2 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002354/0.2769, allocations: 121.8 kB / 403.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.277, allocations: 0 / 403.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.277, allocations: 0 / 403.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.413e-06/0.277, allocations: 4 kB / 403.3 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001844/0.2772, allocations: 55.89 kB / 403.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006778/0.2779, allocations: 0.6381 MB / 404 MB, free: 4.844 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.2781, allocations: 120.9 kB / 404.1 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/0.2782, allocations: 48.41 kB / 404.2 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.2782, allocations: 8 kB / 404.2 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.2783, allocations: 38.5 kB / 404.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.2783, allocations: 0 / 404.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004551/0.2787, allocations: 129.9 kB / 404.3 MB, free: 4.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.894e-05/0.2788, allocations: 162.2 kB / 404.5 MB, free: 4.234 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.279, allocations: 117.8 kB / 404.6 MB, free: 4.109 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.279, allocations: 29.7 kB / 404.7 MB, free: 4.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.84e-05/0.279, allocations: 96.02 kB / 404.7 MB, free: 3.977 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.2791, allocations: 23.8 kB / 404.8 MB, free: 3.953 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.903e-05/0.2791, allocations: 21.7 kB / 404.8 MB, free: 3.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.2793, allocations: 323 kB / 405.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.227e-05/0.2794, allocations: 15.98 kB / 405.1 MB, free: 3.586 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.2795, allocations: 56.33 kB / 405.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.2797, allocations: 84.2 kB / 405.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2797, allocations: 0 / 405.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002365/0.2799, allocations: 97.59 kB / 405.4 MB, free: 3.316 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.28, allocations: 4 kB / 405.4 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.28, allocations: 4 kB / 405.4 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.28, allocations: 7.875 kB / 405.4 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.728e-05/0.2801, allocations: 11.98 kB / 405.4 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.2801, allocations: 4 kB / 405.4 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.65e-05/0.2802, allocations: 7.953 kB / 405.4 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.2802, allocations: 7.984 kB / 405.4 MB, free: 3.27 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.0001024/0.2803, allocations: 129.9 kB / 405.5 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.605e-05/0.2804, allocations: 4 kB / 405.5 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.936e-05/0.2804, allocations: 11.47 kB / 405.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2804, allocations: 4 kB / 405.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2805, allocations: 0 / 405.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.2805, allocations: 4 kB / 405.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004142/0.2809, allocations: 185.6 kB / 405.7 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.2809, allocations: 4 kB / 405.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.144e-05/0.281, allocations: 15.92 kB / 405.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.281, allocations: 4 kB / 405.8 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.281, allocations: 7.938 kB / 405.8 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.281, allocations: 0 / 405.8 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.281, allocations: 7.984 kB / 405.8 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004153/0.2814, allocations: 488.6 kB / 406.2 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.267e-05/0.2815, allocations: 89 kB / 406.3 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.2815, allocations: 3.938 kB / 406.3 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/0.2817, allocations: 4 kB / 406.3 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.82e-05/0.2818, allocations: 11.98 kB / 406.4 MB, free: 2.215 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.595e-06/0.2818, allocations: 4 kB / 406.4 MB, free: 2.211 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.989e-05/0.2819, allocations: 95.27 kB / 406.4 MB, free: 2.117 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2819, allocations: 0 / 406.4 MB, free: 2.117 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003985/0.2823, allocations: 12 kB / 406.5 MB, free: 2.105 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.0007671/0.2831, allocations: 1.03 MB / 407.5 MB, free: 1.047 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002307/0.2833, allocations: 59.89 kB / 407.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2833, allocations: 0 / 407.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.2834, allocations: 40.23 kB / 407.6 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005111/0.284, allocations: 7.984 kB / 407.6 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006919/0.2846, allocations: 228.1 kB / 407.8 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/0.2851, allocations: 0.7042 MB / 408.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.458e-05/0.2851, allocations: 3.984 kB / 408.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.737e-05/0.2852, allocations: 19.44 kB / 408.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of SimCode: time 2.374e-06/0.2852, allocations: 0 / 408.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02662/0.3118, allocations: 1.634 MB / 410.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.101/8.413, allocations: 22.02 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