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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009728/0.0009728, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 145.4 kB / 25.59 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.008/1.008, allocations: 173.4 MB / 202.2 MB, free: 8.273 MB / 186.7 MB " [Timeout remaining time 179] 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=5003,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=5003,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 269.2 MB, free: 9.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.631e-05/2.784e-05, allocations: 5.266 kB / 269.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003091/0.003119, allocations: 1.635 MB / 270.8 MB, free: 8.176 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007251/0.003844, allocations: 410.1 kB / 271.2 MB, free: 7.777 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.978e-05/0.003904, allocations: 0 / 271.2 MB, free: 7.777 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.401e-05/0.003948, allocations: 11.86 kB / 271.2 MB, free: 7.766 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.648e-05/0.004045, allocations: 15.86 kB / 271.2 MB, free: 7.75 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001649/0.004209, allocations: 17.77 kB / 271.3 MB, free: 7.734 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001095/0.004319, allocations: 59.72 kB / 271.3 MB, free: 7.676 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.004493, allocations: 43.89 kB / 271.4 MB, free: 7.633 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001586/0.004652, allocations: 35.91 kB / 271.4 MB, free: 7.598 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.283e-05/0.004725, allocations: 24.5 kB / 271.4 MB, free: 7.574 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.004749, allocations: 4 kB / 271.4 MB, free: 7.57 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.526e-05/0.004764, allocations: 4.531 kB / 271.4 MB, free: 7.566 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.364e-05/0.004798, allocations: 16.67 kB / 271.4 MB, free: 7.551 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.709e-05/0.004825, allocations: 8 kB / 271.4 MB, free: 7.543 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001418/0.004967, allocations: 68.36 kB / 271.5 MB, free: 7.477 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.00497, allocations: 0 / 271.5 MB, free: 7.477 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.004972, allocations: 4.656 kB / 271.5 MB, free: 7.473 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.004976, allocations: 0 / 271.5 MB, free: 7.473 MB / 250.7 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.0007926/0.005769, allocations: 398.9 kB / 271.9 MB, free: 7.051 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.005808, allocations: 8.031 kB / 271.9 MB, free: 7.043 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.335e-05/0.005852, allocations: 16.89 kB / 271.9 MB, free: 7.027 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.005957, allocations: 116.5 kB / 272 MB, free: 6.887 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.482e-05/0.005982, allocations: 8.375 kB / 272.1 MB, free: 6.879 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.005994, allocations: 4.375 kB / 272.1 MB, free: 6.875 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002143/0.006209, allocations: 133.5 kB / 272.2 MB, free: 6.715 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.006219, allocations: 1.656 kB / 272.2 MB, free: 6.715 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.809e-06/0.006229, allocations: 0 / 272.2 MB, free: 6.715 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.006235, allocations: 0 / 272.2 MB, free: 6.715 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.173e-05/0.006287, allocations: 23.91 kB / 272.2 MB, free: 6.691 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006016/0.006889, allocations: 0.7821 MB / 273 MB, free: 5.863 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001307/0.00702, allocations: 139.9 kB / 273.1 MB, free: 5.664 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.289e-05/0.007072, allocations: 50.5 kB / 273.2 MB, free: 5.594 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.007091, allocations: 11.97 kB / 273.2 MB, free: 5.582 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.007121, allocations: 45.33 kB / 273.2 MB, free: 5.527 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.543e-06/0.007122, allocations: 0 / 273.2 MB, free: 5.527 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002679/0.00739, allocations: 69.52 kB / 273.3 MB, free: 5.453 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.224e-05/0.007462, allocations: 158.2 kB / 273.5 MB, free: 5.262 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.007573, allocations: 186.4 kB / 273.6 MB, free: 5.062 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.007588, allocations: 25.7 kB / 273.7 MB, free: 5.031 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.852e-05/0.007657, allocations: 154.7 kB / 273.8 MB, free: 4.875 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.442e-05/0.007681, allocations: 11.89 kB / 273.8 MB, free: 4.863 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.614e-05/0.007727, allocations: 31.36 kB / 273.9 MB, free: 4.824 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.007878, allocations: 0.4922 MB / 274.4 MB, free: 4.32 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.368e-05/0.007902, allocations: 4 kB / 274.4 MB, free: 4.316 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.463e-05/0.007956, allocations: 50.42 kB / 274.4 MB, free: 4.246 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.62e-05/0.008033, allocations: 62.36 kB / 274.5 MB, free: 4.164 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.008035, allocations: 4 kB / 274.5 MB, free: 4.16 MB / 250.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001253/0.00816, allocations: 65.52 kB / 274.5 MB, free: 4.09 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.008176, allocations: 8 kB / 274.5 MB, free: 4.082 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.008181, allocations: 0 / 274.5 MB, free: 4.082 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.008191, allocations: 0 / 274.5 MB, free: 4.082 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.694e-05/0.008278, allocations: 12 kB / 274.6 MB, free: 4.07 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.008285, allocations: 7.984 kB / 274.6 MB, free: 4.062 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.986e-05/0.008335, allocations: 4.156 kB / 274.6 MB, free: 4.059 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.146e-06/0.008343, allocations: 8 kB / 274.6 MB, free: 4.051 MB / 250.7 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 9.983e-05/0.008443, allocations: 160.5 kB / 274.7 MB, free: 3.883 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.008545, allocations: 15.95 kB / 274.7 MB, free: 3.867 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.372e-05/0.008578, allocations: 15.69 kB / 274.8 MB, free: 3.848 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.008584, allocations: 4 kB / 274.8 MB, free: 3.844 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.008588, allocations: 4 kB / 274.8 MB, free: 3.84 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.008593, allocations: 4 kB / 274.8 MB, free: 3.836 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003658/0.008959, allocations: 113.1 kB / 274.9 MB, free: 3.699 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.00896, allocations: 0 / 274.9 MB, free: 3.699 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.289e-05/0.009013, allocations: 8 kB / 274.9 MB, free: 3.691 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.009017, allocations: 8 kB / 274.9 MB, free: 3.684 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.009025, allocations: 4 kB / 274.9 MB, free: 3.68 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.009031, allocations: 7.984 kB / 274.9 MB, free: 3.672 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.009034, allocations: 3.938 kB / 274.9 MB, free: 3.668 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003485/0.009382, allocations: 0.6724 MB / 275.6 MB, free: 2.973 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.213e-05/0.009395, allocations: 4 kB / 275.6 MB, free: 2.969 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.009408, allocations: 0 / 275.6 MB, free: 2.969 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.009629, allocations: 8 kB / 275.6 MB, free: 2.961 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.009671, allocations: 11.92 kB / 275.6 MB, free: 2.949 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.009679, allocations: 8 kB / 275.6 MB, free: 2.941 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.786e-05/0.009737, allocations: 135.5 kB / 275.8 MB, free: 2.809 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009737, allocations: 3.938 kB / 275.8 MB, free: 2.805 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004659/0.0102, allocations: 15.95 kB / 275.8 MB, free: 2.789 MB / 250.7 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.0001043/0.01031, allocations: 95.19 kB / 275.9 MB, free: 2.688 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000113/0.01042, allocations: 39.59 kB / 275.9 MB, free: 2.645 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.01042, allocations: 0 / 275.9 MB, free: 2.645 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.884e-05/0.01046, allocations: 28.11 kB / 275.9 MB, free: 2.613 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00061/0.01107, allocations: 8 kB / 275.9 MB, free: 2.605 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006112/0.01168, allocations: 224.5 kB / 276.2 MB, free: 2.34 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.729e-05/0.01176, allocations: 59.34 kB / 276.2 MB, free: 2.262 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.82e-05/0.0118, allocations: 7.906 kB / 276.2 MB, free: 2.254 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.008e-05/0.01186, allocations: 74.33 kB / 276.3 MB, free: 2.18 MB / 250.7 MB Notification: Performance of SimCode: time 1.313e-06/0.01186, allocations: 0 / 276.3 MB, free: 2.18 MB / 250.7 MB Notification: Performance of Templates: time 0.002905/0.01476, allocations: 0.6216 MB / 276.9 MB, free: 1.562 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.71249609393999]