Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001254/0.001254, allocations: 193.4 kB / 18 MB, free: 5.172 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.45/1.45, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 43.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2891, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake): time 0.003498/0.2926, allocations: 1.788 MB / 402 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.294, allocations: 0.6286 MB / 402.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.2941, allocations: 7.938 kB / 402.7 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.2942, allocations: 15.84 kB / 402.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.2944, allocations: 39.7 kB / 402.7 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003081/0.2947, allocations: 47.81 kB / 402.8 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002309/0.2949, allocations: 135.4 kB / 402.9 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.2951, allocations: 25.39 kB / 402.9 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.095e-05/0.2952, allocations: 43.8 kB / 403 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.2953, allocations: 43.84 kB / 403 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.557e-05/0.2954, allocations: 12 kB / 403 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.2955, allocations: 31.97 kB / 403 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.07e-05/0.2955, allocations: 15.92 kB / 403.1 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.876e-05/0.2956, allocations: 51.73 kB / 403.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002827/0.2959, allocations: 130.6 kB / 403.2 MB, free: 5.789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.82e-06/0.2959, allocations: 0 / 403.2 MB, free: 5.789 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2959, allocations: 0 / 403.2 MB, free: 5.789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.2959, allocations: 0 / 403.2 MB, free: 5.789 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0007111/0.2966, allocations: 415.2 kB / 403.6 MB, free: 5.336 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.2967, allocations: 12.02 kB / 403.6 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.917e-05/0.2967, allocations: 38.75 kB / 403.7 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.2969, allocations: 28.83 kB / 403.7 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.2972, allocations: 204.1 kB / 403.9 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.2973, allocations: 8.5 kB / 403.9 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.712e-05/0.2973, allocations: 16.12 kB / 403.9 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.2975, allocations: 91.16 kB / 404 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.2975, allocations: 8 kB / 404 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.2976, allocations: 0 / 404 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.2976, allocations: 0 / 404 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/0.2977, allocations: 75.83 kB / 404.1 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007545/0.2985, allocations: 439.7 kB / 404.5 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002946/0.2988, allocations: 102.6 kB / 404.6 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.842e-05/0.2989, allocations: 36.84 kB / 404.7 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.2989, allocations: 0 / 404.7 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.2989, allocations: 38.55 kB / 404.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 9.82e-07/0.2989, allocations: 0 / 404.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.001407/0.3003, allocations: 0.5306 MB / 405.2 MB, free: 3.531 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.3004, allocations: 55.34 kB / 405.3 MB, free: 3.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.3005, allocations: 122 kB / 405.4 MB, free: 3.332 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.3006, allocations: 29.7 kB / 405.4 MB, free: 3.297 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.329e-05/0.3007, allocations: 108 kB / 405.6 MB, free: 3.188 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.213e-05/0.3007, allocations: 47.59 kB / 405.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.633e-05/0.3008, allocations: 33.7 kB / 405.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3009, allocations: 322.8 kB / 405.9 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.547e-05/0.301, allocations: 20 kB / 406 MB, free: 2.758 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.988e-05/0.3011, allocations: 59.41 kB / 406 MB, free: 2.688 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.3012, allocations: 95.38 kB / 406.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/0.3013, allocations: 0 / 406.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002084/0.3015, allocations: 130.4 kB / 406.2 MB, free: 2.449 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.3015, allocations: 8 kB / 406.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.3015, allocations: 0 / 406.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.3015, allocations: 0 / 406.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.3017, allocations: 43.98 kB / 406.3 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.3017, allocations: 3.938 kB / 406.3 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.67e-05/0.3018, allocations: 4 kB / 406.3 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.3018, allocations: 8 kB / 406.3 MB, free: 2.383 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001399/0.3019, allocations: 125.7 kB / 406.4 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.415e-05/0.302, allocations: 7.953 kB / 406.4 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.855e-05/0.302, allocations: 12.38 kB / 406.5 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.302, allocations: 4 kB / 406.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.3021, allocations: 7.938 kB / 406.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3021, allocations: 0 / 406.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006375/0.3027, allocations: 432 kB / 406.9 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.3027, allocations: 7.984 kB / 406.9 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001478/0.3029, allocations: 24 kB / 406.9 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.3029, allocations: 7.875 kB / 406.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.3029, allocations: 7.984 kB / 406.9 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.3029, allocations: 4.062 kB / 406.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3029, allocations: 0 / 406.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003336/0.3033, allocations: 249.2 kB / 407.2 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.533e-05/0.3033, allocations: 89 kB / 407.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.3034, allocations: 4.031 kB / 407.3 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.139e-05/0.3035, allocations: 4 kB / 407.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.6e-05/0.3035, allocations: 12 kB / 407.3 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-06/0.3035, allocations: 0 / 407.3 MB, free: 1.293 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.169e-05/0.3036, allocations: 97.52 kB / 407.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3036, allocations: 0 / 407.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002547/0.3038, allocations: 24 kB / 407.4 MB, free: 1.176 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (mass.s,mass.v,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.0006522/0.3045, allocations: 0.7959 MB / 408.2 MB, free: 356 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001941/0.3047, allocations: 83.89 kB / 408.3 MB, free: 272 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3047, allocations: 0 / 408.3 MB, free: 272 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.928e-05/0.3048, allocations: 39.92 kB / 408.3 MB, free: 232 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003658/0.3052, allocations: 24.84 kB / 408.3 MB, free: 208 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.3073, allocations: 1.827 MB / 410.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.3076, allocations: 0.7041 MB / 410.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.401e-05/0.3077, allocations: 12.88 kB / 410.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.702e-05/0.3078, allocations: 27.44 kB / 410.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3078, allocations: 0 / 410.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/0.3345, allocations: 2.581 MB / 413.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.912/8.246, allocations: 19.48 kB / 413.5 MB, free: 11.02 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches