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.001733/0.001733, allocations: 105.2 kB / 17.06 MB, free: 6.027 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.002553/0.002553, allocations: 195 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.006/3.006, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001767, allocations: 39.94 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5434/0.5452, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.006012/0.5513, allocations: 1.586 MB / 401.8 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.5527, allocations: 425 kB / 402.2 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.5529, allocations: 4 kB / 402.2 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001044/0.553, allocations: 3.938 kB / 402.2 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001646/0.5532, allocations: 15.84 kB / 402.2 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002223/0.5535, allocations: 23.86 kB / 402.3 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001844/0.5537, allocations: 55.84 kB / 402.3 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000288/0.554, allocations: 51.89 kB / 402.4 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.5542, allocations: 35.86 kB / 402.4 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.5543, allocations: 31.84 kB / 402.4 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.612e-05/0.5544, allocations: 8 kB / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.562e-05/0.5544, allocations: 4 kB / 402.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.361e-05/0.5545, allocations: 15.92 kB / 402.5 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7e-05/0.5545, allocations: 27.81 kB / 402.5 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002505/0.5548, allocations: 69.45 kB / 402.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.5548, allocations: 0 / 402.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.5548, allocations: 0 / 402.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.5549, allocations: 0 / 402.6 MB, free: 6.441 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.0008874/0.5558, allocations: 387.2 kB / 402.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.342e-05/0.5559, allocations: 11.97 kB / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.53e-05/0.556, allocations: 34.75 kB / 403 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.726e-05/0.556, allocations: 16.78 kB / 403 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000236/0.5563, allocations: 176.2 kB / 403.2 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.352e-05/0.5563, allocations: 8.062 kB / 403.2 MB, free: 5.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.573e-05/0.5564, allocations: 8 kB / 403.2 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003928/0.5568, allocations: 113 kB / 403.3 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.5568, allocations: 0 / 403.3 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.5568, allocations: 8 kB / 403.3 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.5569, allocations: 0 / 403.3 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003064/0.5572, allocations: 55.89 kB / 403.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.5584, allocations: 0.6381 MB / 404 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003442/0.5587, allocations: 121 kB / 404.1 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002228/0.559, allocations: 48.34 kB / 404.2 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.162e-05/0.559, allocations: 4 kB / 404.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.257e-05/0.5591, allocations: 42.5 kB / 404.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 2.205e-06/0.5591, allocations: 0 / 404.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007318/0.5598, allocations: 129.8 kB / 404.3 MB, free: 4.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.56, allocations: 154.2 kB / 404.5 MB, free: 4.223 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.5602, allocations: 117.8 kB / 404.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.5602, allocations: 29.7 kB / 404.6 MB, free: 4.062 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.542e-05/0.5603, allocations: 96.03 kB / 404.7 MB, free: 3.965 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.5604, allocations: 15.75 kB / 404.7 MB, free: 3.949 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.276e-05/0.5604, allocations: 25.86 kB / 404.8 MB, free: 3.918 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.5606, allocations: 314.8 kB / 405.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.5608, allocations: 19.98 kB / 405.1 MB, free: 3.582 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.561, allocations: 60.2 kB / 405.2 MB, free: 3.508 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003018/0.5613, allocations: 76.2 kB / 405.2 MB, free: 3.418 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.5613, allocations: 0 / 405.2 MB, free: 3.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004475/0.5618, allocations: 101.5 kB / 405.3 MB, free: 3.312 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/0.5618, allocations: 7.938 kB / 405.3 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.5618, allocations: 4 kB / 405.3 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.865e-05/0.5619, allocations: 3.938 kB / 405.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.562, allocations: 15.98 kB / 405.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.5621, allocations: 0 / 405.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.5622, allocations: 7.938 kB / 405.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.5622, allocations: 7.984 kB / 405.4 MB, free: 3.266 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.0001497/0.5624, allocations: 118 kB / 405.5 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001635/0.5625, allocations: 11.91 kB / 405.5 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.209e-05/0.5626, allocations: 19.41 kB / 405.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.5626, allocations: 0 / 405.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.5627, allocations: 4 kB / 405.5 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.5627, allocations: 128 / 405.5 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006914/0.5634, allocations: 193.6 kB / 405.7 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.5634, allocations: 3.984 kB / 405.7 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.749e-05/0.5635, allocations: 11.94 kB / 405.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.756e-06/0.5635, allocations: 8 kB / 405.7 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.5636, allocations: 3.938 kB / 405.7 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.137e-06/0.5636, allocations: 7.984 kB / 405.8 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5636, allocations: 0 / 405.8 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006187/0.5642, allocations: 492.5 kB / 406.2 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.844e-05/0.5643, allocations: 85.09 kB / 406.3 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.5644, allocations: 7.938 kB / 406.3 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/0.5648, allocations: 7.984 kB / 406.3 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.988e-05/0.5648, allocations: 8 kB / 406.3 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.5649, allocations: 0 / 406.3 MB, free: 2.203 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001056/0.565, allocations: 103.6 kB / 406.4 MB, free: 2.102 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.565, allocations: 0 / 406.4 MB, free: 2.102 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007152/0.5657, allocations: 11.91 kB / 406.5 MB, free: 2.09 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.001136/0.5669, allocations: 1.022 MB / 407.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004096/0.5673, allocations: 55.89 kB / 407.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.5673, allocations: 0 / 407.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.5675, allocations: 36.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.0009294/0.5685, allocations: 11.98 kB / 407.6 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.5698, allocations: 240.1 kB / 407.8 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005746/0.5704, allocations: 0.6926 MB / 408.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.003e-05/0.5705, allocations: 7.984 kB / 408.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.101e-05/0.5706, allocations: 19.38 kB / 408.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5706, allocations: 4 kB / 408.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.103/2.674, allocations: 1.658 MB / 410.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.05/27.73, allocations: 3.859 kB / 410.2 MB, free: 14.3 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