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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001715/0.001715, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002117/0.002117, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 67.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2888, allocations: 50.55 MB / 408.8 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002896/0.2917, allocations: 1.602 MB / 410.4 MB, free: 84 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009066/0.2927, allocations: 494.6 kB / 410.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.41e-05/0.2927, allocations: 4 kB / 410.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.765e-05/0.2928, allocations: 11.86 kB / 410.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.89e-05/0.2929, allocations: 11.86 kB / 410.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.2931, allocations: 31.97 kB / 410.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001429/0.2932, allocations: 55.78 kB / 411 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.2934, allocations: 60.12 kB / 411 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001407/0.2936, allocations: 31.86 kB / 411 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.705e-05/0.2937, allocations: 23.86 kB / 411.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/0.2937, allocations: 8 kB / 411.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.847e-05/0.2937, allocations: 19.88 kB / 411.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.567e-05/0.2938, allocations: 7.984 kB / 411.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.377e-05/0.2938, allocations: 35.8 kB / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.294, allocations: 66.81 kB / 411.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.294, allocations: 0 / 411.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.294, allocations: 0 / 411.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.294, allocations: 4 kB / 411.2 MB, free: 15.23 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.0005956/0.2946, allocations: 387.1 kB / 411.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.2947, allocations: 12.03 kB / 411.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.378e-05/0.2947, allocations: 38.73 kB / 411.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.2949, allocations: 20.88 kB / 411.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.2952, allocations: 192.1 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.2952, allocations: 12.36 kB / 411.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.32e-05/0.2952, allocations: 8.375 kB / 411.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002596/0.2955, allocations: 118 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.2955, allocations: 0 / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.2955, allocations: 0 / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.2955, allocations: 4 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001798/0.2957, allocations: 63.89 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007607/0.2965, allocations: 0.6264 MB / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001988/0.2967, allocations: 116.9 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.2968, allocations: 60.47 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.2968, allocations: 7.984 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/0.2969, allocations: 34.5 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 3.387e-06/0.2969, allocations: 0 / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004569/0.2974, allocations: 133.5 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.2975, allocations: 154.2 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.2976, allocations: 125.8 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.2976, allocations: 25.7 kB / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.124e-05/0.2977, allocations: 100.6 kB / 413.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/0.2977, allocations: 19.88 kB / 413.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.2978, allocations: 21.72 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.2979, allocations: 318.8 kB / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.848e-05/0.298, allocations: 19.98 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.2981, allocations: 52.22 kB / 413.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001774/0.2983, allocations: 80.2 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2983, allocations: 0 / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002573/0.2986, allocations: 101.5 kB / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.2986, allocations: 8 kB / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.2986, allocations: 3.984 kB / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.2987, allocations: 0 / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.662e-05/0.2988, allocations: 15.94 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.2988, allocations: 7.875 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.812e-05/0.2989, allocations: 12.14 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.2989, allocations: 4 kB / 414.1 MB, free: 12 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.0001063/0.299, allocations: 117.8 kB / 414.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.324e-05/0.2991, allocations: 7.953 kB / 414.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.934e-05/0.2991, allocations: 19.47 kB / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.2991, allocations: 0 / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.2991, allocations: 8.062 kB / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.2992, allocations: 4 kB / 414.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004032/0.2996, allocations: 185.6 kB / 414.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2996, allocations: 4 kB / 414.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.362e-05/0.2997, allocations: 19.92 kB / 414.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2997, allocations: 0 / 414.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.2997, allocations: 8 kB / 414.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2997, allocations: 3.938 kB / 414.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2997, allocations: 3.938 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004289/0.3001, allocations: 492.6 kB / 414.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.232e-05/0.3002, allocations: 81.06 kB / 415 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.102e-05/0.3002, allocations: 7.984 kB / 415 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.3004, allocations: 4 kB / 415 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.382e-05/0.3005, allocations: 19.92 kB / 415 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.3005, allocations: 4 kB / 415 MB, free: 10.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.255e-05/0.3006, allocations: 91.27 kB / 415.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3006, allocations: 0 / 415.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003769/0.301, allocations: 8 kB / 415.1 MB, free: 10.83 MB / 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.0007595/0.3017, allocations: 1.014 MB / 416.1 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002461/0.302, allocations: 68.08 kB / 416.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.302, allocations: 0 / 416.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.789e-05/0.3021, allocations: 31.92 kB / 416.2 MB, free: 9.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005235/0.3026, allocations: 15.92 kB / 416.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.3047, allocations: 1.77 MB / 418 MB, free: 7.789 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.3051, allocations: 0.6924 MB / 418.7 MB, free: 7.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.469e-05/0.3051, allocations: 4 kB / 418.7 MB, free: 7.066 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.168e-05/0.3052, allocations: 23.44 kB / 418.7 MB, free: 7.043 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3052, allocations: 0 / 418.7 MB, free: 7.043 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.3285, allocations: 1.664 MB / 420.4 MB, free: 5.434 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.434/8.762, allocations: 16 kB / 420.4 MB, free: 5.418 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_trunk_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches