Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 207.3 kB / 17.99 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009531/0.0009531, allocations: 104.8 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009816/0.0009816, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2491, allocations: 50.46 MB / 407 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.00222/0.2514, allocations: 1.652 MB / 408.7 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005697/0.252, allocations: 476 kB / 409.2 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.919e-05/0.252, allocations: 0 / 409.2 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.858e-05/0.2521, allocations: 7.875 kB / 409.2 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.227e-05/0.2522, allocations: 15.08 kB / 409.2 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001359/0.2523, allocations: 23.92 kB / 409.2 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.352e-05/0.2524, allocations: 55.78 kB / 409.3 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.2526, allocations: 43.95 kB / 409.3 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.2527, allocations: 35.84 kB / 409.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.476e-05/0.2528, allocations: 31.84 kB / 409.4 MB, free: 25.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.2528, allocations: 8 kB / 409.4 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.269e-05/0.2528, allocations: 8 kB / 409.4 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.352e-05/0.2529, allocations: 11.92 kB / 409.4 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.482e-05/0.2529, allocations: 27.81 kB / 409.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.253, allocations: 69.31 kB / 409.5 MB, free: 25.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.253, allocations: 0 / 409.5 MB, free: 25.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.253, allocations: 0 / 409.5 MB, free: 25.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.253, allocations: 0 / 409.5 MB, free: 25.37 MB / 298.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.0004059/0.2534, allocations: 375.3 kB / 409.9 MB, free: 24.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.2535, allocations: 12.03 kB / 409.9 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/0.2536, allocations: 20.84 kB / 409.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.333e-05/0.2537, allocations: 176.2 kB / 410.1 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.2537, allocations: 384 / 410.1 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.2538, allocations: 8.312 kB / 410.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.254, allocations: 118.3 kB / 410.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.254, allocations: 7.938 kB / 410.2 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.254, allocations: 4 kB / 410.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.254, allocations: 0 / 410.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000159/0.2542, allocations: 55.89 kB / 410.2 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000502/0.2547, allocations: 0.6574 MB / 410.9 MB, free: 23.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001376/0.2548, allocations: 113 kB / 411 MB, free: 23.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.82e-05/0.2549, allocations: 52.41 kB / 411.1 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.255, allocations: 11.92 kB / 411.1 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.733e-05/0.255, allocations: 38.56 kB / 411.1 MB, free: 23.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.255, allocations: 0 / 411.1 MB, free: 23.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003905/0.2554, allocations: 118 kB / 411.2 MB, free: 23.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.2554, allocations: 162.2 kB / 411.4 MB, free: 23.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.669e-05/0.2555, allocations: 128.4 kB / 411.5 MB, free: 23.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.035e-06/0.2555, allocations: 29.7 kB / 411.5 MB, free: 23.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.088e-05/0.2555, allocations: 88.14 kB / 411.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.786e-05/0.2556, allocations: 23.66 kB / 411.7 MB, free: 22.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.2556, allocations: 21.7 kB / 411.7 MB, free: 22.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.82e-05/0.2557, allocations: 319 kB / 412 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.311e-05/0.2557, allocations: 23.97 kB / 412 MB, free: 22.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.277e-05/0.2558, allocations: 48.28 kB / 412.1 MB, free: 22.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001444/0.256, allocations: 84.14 kB / 412.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.256, allocations: 0 / 412.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000188/0.2562, allocations: 101.6 kB / 412.2 MB, free: 22.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.2562, allocations: 4 kB / 412.2 MB, free: 22.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2562, allocations: 0 / 412.2 MB, free: 22.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.2562, allocations: 4 kB / 412.2 MB, free: 22.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.932e-05/0.2563, allocations: 11.98 kB / 412.3 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.2563, allocations: 0 / 412.3 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.984e-05/0.2564, allocations: 15.92 kB / 412.3 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.2564, allocations: 3.938 kB / 412.3 MB, free: 22.22 MB / 298.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 5.759e-05/0.2565, allocations: 127.4 kB / 412.4 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.701e-05/0.2566, allocations: 11.84 kB / 412.4 MB, free: 22.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.531e-05/0.2566, allocations: 15.52 kB / 412.4 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2566, allocations: 4 kB / 412.4 MB, free: 22.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.2566, allocations: 0 / 412.4 MB, free: 22.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2566, allocations: 3.938 kB / 412.4 MB, free: 22.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003038/0.2569, allocations: 185.6 kB / 412.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2569, allocations: 0 / 412.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.13e-05/0.257, allocations: 19.98 kB / 412.6 MB, free: 21.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.257, allocations: 0 / 412.6 MB, free: 21.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.257, allocations: 8 kB / 412.6 MB, free: 21.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.257, allocations: 0 / 412.6 MB, free: 21.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.257, allocations: 3.938 kB / 412.6 MB, free: 21.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000414/0.2575, allocations: 1.061 MB / 413.7 MB, free: 20.67 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.943e-05/0.2575, allocations: 88.95 kB / 413.8 MB, free: 20.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.2575, allocations: 0 / 413.8 MB, free: 20.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.2577, allocations: 7.984 kB / 413.8 MB, free: 20.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/0.2578, allocations: 11.98 kB / 413.8 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-06/0.2578, allocations: 8 kB / 413.8 MB, free: 20.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.034e-05/0.2578, allocations: 91.27 kB / 413.9 MB, free: 20.45 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2578, allocations: 0 / 413.9 MB, free: 20.45 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004504/0.2583, allocations: 8 kB / 413.9 MB, free: 20.44 MB / 298.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 9.71e-05/0.2584, allocations: 99.19 kB / 414 MB, free: 20.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001999/0.2586, allocations: 60.09 kB / 414.1 MB, free: 20.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2586, allocations: 0 / 414.1 MB, free: 20.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.797e-05/0.2587, allocations: 39.84 kB / 414.1 MB, free: 20.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004701/0.2592, allocations: 7.938 kB / 414.1 MB, free: 20.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003903/0.2596, allocations: 331 kB / 414.4 MB, free: 19.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001232/0.2597, allocations: 0.7004 MB / 415.1 MB, free: 19.12 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.274e-05/0.2597, allocations: 7.906 kB / 415.2 MB, free: 19.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.413e-05/0.2598, allocations: 11.44 kB / 415.2 MB, free: 19.11 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.2598, allocations: 0 / 415.2 MB, free: 19.11 MB / 298.7 MB Notification: Performance of Templates: time 0.002/0.2618, allocations: 473.5 kB / 415.6 MB, free: 18.64 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_trunk_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches