Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 213.6 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.523/1.523, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage") translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 43.94 kB / 378.2 MB, free: 2.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2893, allocations: 53.36 MB / 431.6 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002947/0.2923, allocations: 1.624 MB / 433.2 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009343/0.2932, allocations: 0.5025 MB / 433.7 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.584e-05/0.2933, allocations: 0 / 433.7 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.193e-05/0.2933, allocations: 11.86 kB / 433.7 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.554e-05/0.2934, allocations: 11.88 kB / 433.8 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001829/0.2936, allocations: 35.91 kB / 433.8 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.2937, allocations: 63.77 kB / 433.9 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.2938, allocations: 28.22 kB / 433.9 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.2939, allocations: 31.86 kB / 433.9 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.15e-05/0.294, allocations: 39.77 kB / 434 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.294, allocations: 4 kB / 434 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.873e-05/0.2941, allocations: 12 kB / 434 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.16e-05/0.2941, allocations: 11.98 kB / 434 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.405e-05/0.2941, allocations: 27.81 kB / 434 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.2942, allocations: 77.19 kB / 434.1 MB, free: 4.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.2942, allocations: 3.938 kB / 434.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2942, allocations: 4 kB / 434.1 MB, free: 4.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.2943, allocations: 0 / 434.1 MB, free: 4.445 MB / 334.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.0004706/0.2947, allocations: 313.7 kB / 434.4 MB, free: 4.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.2948, allocations: 8.031 kB / 434.4 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.2949, allocations: 20.88 kB / 434.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000206/0.2951, allocations: 130.4 kB / 434.6 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.2951, allocations: 8.375 kB / 434.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.2951, allocations: 8.375 kB / 434.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002387/0.2954, allocations: 118.2 kB / 434.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.2954, allocations: 0 / 434.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.2954, allocations: 4 kB / 434.7 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.2954, allocations: 0 / 434.7 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/0.2956, allocations: 67.88 kB / 434.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007063/0.2963, allocations: 0.6021 MB / 435.4 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.2965, allocations: 108.9 kB / 435.5 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.2966, allocations: 60.45 kB / 435.5 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.2966, allocations: 4 kB / 435.5 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.2967, allocations: 38.44 kB / 435.6 MB, free: 2.773 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.133e-06/0.2967, allocations: 0 / 435.6 MB, free: 2.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004524/0.2971, allocations: 125.5 kB / 435.7 MB, free: 2.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.2972, allocations: 158.2 kB / 435.8 MB, free: 2.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.2973, allocations: 129.7 kB / 436 MB, free: 2.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.2974, allocations: 29.64 kB / 436 MB, free: 2.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.949e-05/0.2974, allocations: 104.6 kB / 436.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.324e-05/0.2975, allocations: 15.89 kB / 436.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.405e-05/0.2975, allocations: 25.66 kB / 436.1 MB, free: 2.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.2977, allocations: 318.8 kB / 436.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.296e-05/0.2977, allocations: 19.98 kB / 436.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.698e-05/0.2978, allocations: 48.28 kB / 436.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.298, allocations: 84.19 kB / 436.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.298, allocations: 0 / 436.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002371/0.2983, allocations: 105.5 kB / 436.7 MB, free: 1.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.2983, allocations: 4 kB / 436.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2983, allocations: 4 kB / 436.7 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.2983, allocations: 0 / 436.7 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.2984, allocations: 11.98 kB / 436.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.2984, allocations: 7.984 kB / 436.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.844e-05/0.2985, allocations: 16.05 kB / 436.7 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.936e-06/0.2985, allocations: 4 kB / 436.8 MB, free: 1.473 MB / 334.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.0001028/0.2986, allocations: 117.8 kB / 436.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.125e-05/0.2987, allocations: 4 kB / 436.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.21e-05/0.2987, allocations: 19.52 kB / 436.9 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2987, allocations: 0 / 436.9 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.2987, allocations: 4 kB / 436.9 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.2987, allocations: 3.938 kB / 436.9 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003977/0.2991, allocations: 160.6 kB / 437.1 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2991, allocations: 4 kB / 437.1 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.268e-05/0.2992, allocations: 19.98 kB / 437.1 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.2992, allocations: 4.062 kB / 437.1 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.2992, allocations: 4 kB / 437.1 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2992, allocations: 4 kB / 437.1 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2992, allocations: 0 / 437.1 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004071/0.2996, allocations: 492.5 kB / 437.6 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.315e-05/0.2996, allocations: 11.94 kB / 437.6 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.2996, allocations: 4 kB / 437.6 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.2999, allocations: 4 kB / 437.6 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.767e-05/0.2999, allocations: 19.92 kB / 437.6 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.2999, allocations: 4 kB / 437.6 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.848e-05/0.3, allocations: 91.27 kB / 437.7 MB, free: 456 kB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3, allocations: 0 / 437.7 MB, free: 456 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003879/0.3004, allocations: 8 kB / 437.7 MB, free: 448 kB / 334.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.0001076/0.3005, allocations: 103.1 kB / 437.8 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002437/0.3007, allocations: 64.02 kB / 437.9 MB, free: 272 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3007, allocations: 0 / 437.9 MB, free: 272 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.669e-05/0.3008, allocations: 31.92 kB / 437.9 MB, free: 240 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005343/0.3014, allocations: 11.98 kB / 437.9 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004904/0.3019, allocations: 203.2 kB / 438.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004094/0.3023, allocations: 0.6924 MB / 438.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.588e-05/0.3023, allocations: 0 / 438.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.605e-05/0.3023, allocations: 11.44 kB / 438.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3023, allocations: 0 / 438.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of Templates: time 0.003427/0.3058, allocations: 0.5866 MB / 439.4 MB, free: 14.67 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.682989340974018]