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: translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage") translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 92.53 kB / 16.3 MB, free: 5.523 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.001369/0.001369, allocations: 184.9 kB / 17.2 MB, free: 5.457 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.331/1.331, allocations: 223.2 MB / 241.1 MB, free: 14.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002588/0.0002589, allocations: 11.94 kB / 300.7 MB, free: 6.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09911/0.09938, allocations: 50.4 MB / 351.1 MB, free: 3.832 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001746/0.1012, allocations: 1.286 MB / 352.4 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005766/0.1018, allocations: 391.4 kB / 352.8 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.814e-05/0.1018, allocations: 0 / 352.8 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.583e-05/0.1019, allocations: 3.938 kB / 352.8 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.687e-05/0.1019, allocations: 19.91 kB / 352.8 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001139/0.1021, allocations: 11.98 kB / 352.8 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.807e-05/0.1022, allocations: 43.94 kB / 352.9 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.1023, allocations: 35.91 kB / 352.9 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.916e-05/0.1024, allocations: 19.91 kB / 352.9 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.097e-05/0.1025, allocations: 23.86 kB / 353 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.17e-05/0.1025, allocations: 0 / 353 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.259e-05/0.1025, allocations: 4 kB / 353 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.473e-05/0.1025, allocations: 11.92 kB / 353 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.641e-05/0.1026, allocations: 37.64 kB / 353 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.948e-05/0.1026, allocations: 39.91 kB / 353 MB, free: 1.891 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.1026, allocations: 4 kB / 353 MB, free: 1.887 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1027, allocations: 0 / 353 MB, free: 1.887 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1027, allocations: 0 / 353 MB, free: 1.887 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.000462/0.1031, allocations: 375.3 kB / 353.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.1032, allocations: 8.031 kB / 353.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.568e-05/0.1032, allocations: 7.906 kB / 353.4 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.1033, allocations: 174.9 kB / 353.6 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.1034, allocations: 16 kB / 353.6 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.45e-05/0.1034, allocations: 4 kB / 353.6 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002378/0.1036, allocations: 117.9 kB / 353.7 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.1037, allocations: 3.938 kB / 353.7 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.1037, allocations: 8 kB / 353.7 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.497e-06/0.1037, allocations: 7.953 kB / 353.8 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/0.1039, allocations: 63.89 kB / 353.8 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006222/0.1045, allocations: 0.6303 MB / 354.4 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001748/0.1047, allocations: 128.9 kB / 354.6 MB, free: 144 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.1047, allocations: 8.188 kB / 354.6 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.1048, allocations: 42.44 kB / 354.6 MB, free: 84 kB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.1048, allocations: 0 / 354.6 MB, free: 84 kB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004775/0.1052, allocations: 133.7 kB / 354.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.156e-05/0.1053, allocations: 158.2 kB / 354.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.1054, allocations: 126.2 kB / 355 MB, free: 15.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.1055, allocations: 29.7 kB / 355.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.99e-05/0.1055, allocations: 92.05 kB / 355.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.1056, allocations: 23.72 kB / 355.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.958e-06/0.1056, allocations: 0 / 355.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.1058, allocations: 318.8 kB / 355.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.231e-05/0.1059, allocations: 23.98 kB / 355.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.106, allocations: 64.2 kB / 355.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.712e-05/0.1061, allocations: 27.98 kB / 355.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.1061, allocations: 7.953 kB / 355.6 MB, free: 15.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002205/0.1063, allocations: 105.5 kB / 355.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.1064, allocations: 8.156 kB / 355.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1064, allocations: 0 / 355.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1064, allocations: 4 kB / 355.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.1065, allocations: 15.98 kB / 355.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.1065, allocations: 0 / 355.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.496e-05/0.1066, allocations: 15.89 kB / 355.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.1066, allocations: 4 kB / 355.8 MB, free: 14.86 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.31e-05/0.1067, allocations: 117.8 kB / 355.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.66e-05/0.1068, allocations: 7.953 kB / 355.9 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.895e-05/0.1069, allocations: 15.41 kB / 355.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1069, allocations: 7.984 kB / 355.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1069, allocations: 0 / 355.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.1069, allocations: 7.984 kB / 355.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003968/0.1073, allocations: 185.5 kB / 356.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1073, allocations: 4 kB / 356.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-05/0.1074, allocations: 11.95 kB / 356.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.1074, allocations: 8 kB / 356.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.1074, allocations: 4 kB / 356.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.1074, allocations: 7.984 kB / 356.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.1074, allocations: 128 / 356.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006136/0.108, allocations: 0.5346 MB / 356.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-05/0.1081, allocations: 89.02 kB / 356.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.1081, allocations: 4 kB / 356.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.1083, allocations: 11.98 kB / 356.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/0.1084, allocations: 11.89 kB / 356.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.1084, allocations: 3.984 kB / 356.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.174e-05/0.1085, allocations: 95.28 kB / 356.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1085, allocations: 0 / 356.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003668/0.1089, allocations: 8 kB / 356.9 MB, free: 13.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001289/0.109, allocations: 103.2 kB / 357 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000236/0.1092, allocations: 64.16 kB / 357 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1092, allocations: 4.062 kB / 357 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.1094, allocations: 39.92 kB / 357.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.1097, allocations: 10.94 kB / 357.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004701/0.1101, allocations: 244.1 kB / 357.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.1105, allocations: 0.6958 MB / 358 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.985e-05/0.1105, allocations: 4 kB / 358 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/0.1106, allocations: 11.44 kB / 358 MB, free: 12.37 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1106, allocations: 0 / 358 MB, free: 12.37 MB / 302.1 MB Notification: Performance of Templates: time 0.002474/0.1131, allocations: 444.8 kB / 358.5 MB, free: 11.94 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches