Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.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.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_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.001904/0.001904, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.002555/0.002555, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.194/2.194, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002296/0.002296, allocations: 48.36 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.2007, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.007995/0.2088, allocations: 1.756 MB / 351.9 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.211, allocations: 0.6426 MB / 352.6 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002467/0.2113, allocations: 8 kB / 352.6 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002405/0.2116, allocations: 15.8 kB / 352.6 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002035/0.2118, allocations: 31.7 kB / 352.6 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004893/0.2123, allocations: 43.81 kB / 352.7 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003599/0.2127, allocations: 123.4 kB / 352.8 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.213, allocations: 31.95 kB / 352.8 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001478/0.2131, allocations: 39.86 kB / 352.8 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.2133, allocations: 47.78 kB / 352.9 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.427e-05/0.2134, allocations: 12 kB / 352.9 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000163/0.2135, allocations: 31.92 kB / 352.9 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.983e-05/0.2136, allocations: 19.86 kB / 353 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.2137, allocations: 47.8 kB / 353 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004038/0.2141, allocations: 131.9 kB / 353.1 MB, free: 1.324 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.2142, allocations: 0 / 353.1 MB, free: 1.324 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2142, allocations: 0 / 353.1 MB, free: 1.324 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.2142, allocations: 0 / 353.1 MB, free: 1.324 MB / 286.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.001033/0.2152, allocations: 395.4 kB / 353.5 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.844e-05/0.2153, allocations: 19.97 kB / 353.5 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/0.2155, allocations: 42.73 kB / 353.6 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004018/0.2159, allocations: 24.83 kB / 353.6 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.2163, allocations: 196.1 kB / 353.8 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.2164, allocations: 8.562 kB / 353.8 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.47e-05/0.2164, allocations: 16.12 kB / 353.8 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003932/0.2168, allocations: 92.47 kB / 353.9 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.781e-05/0.2169, allocations: 3.906 kB / 353.9 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.2169, allocations: 8 kB / 353.9 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.2169, allocations: 4 kB / 353.9 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000238/0.2172, allocations: 59.91 kB / 354 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.2187, allocations: 477.3 kB / 354.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004513/0.2192, allocations: 90.52 kB / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.451e-05/0.2193, allocations: 28.89 kB / 354.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.2193, allocations: 0 / 354.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.587e-05/0.2194, allocations: 34.56 kB / 354.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 2.053e-06/0.2194, allocations: 0 / 354.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.000397/0.2198, allocations: 93.53 kB / 354.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.2199, allocations: 67.33 kB / 354.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.22, allocations: 113.8 kB / 354.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.477e-05/0.2201, allocations: 29.7 kB / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.332e-05/0.2202, allocations: 107.9 kB / 355 MB, free: 15.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.994e-05/0.2202, allocations: 27.55 kB / 355 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.226e-05/0.2203, allocations: 29.72 kB / 355.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.2205, allocations: 322.8 kB / 355.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.497e-05/0.2206, allocations: 20 kB / 355.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.2207, allocations: 57.55 kB / 355.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.2209, allocations: 83.3 kB / 355.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.2209, allocations: 0 / 355.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002891/0.2212, allocations: 117.5 kB / 355.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.2213, allocations: 4 kB / 355.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.2213, allocations: 0 / 355.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.256e-05/0.2213, allocations: 7.938 kB / 355.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/0.2215, allocations: 31.86 kB / 355.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.2216, allocations: 0 / 355.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.2217, allocations: 11.84 kB / 355.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.2217, allocations: 4 kB / 355.7 MB, free: 14.48 MB / 302.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 (13): * Single equations (assignments): 13 * 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.0001571/0.2219, allocations: 117.8 kB / 355.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.48e-05/0.222, allocations: 15.92 kB / 355.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.889e-05/0.222, allocations: 16.36 kB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.2221, allocations: 3.938 kB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.2221, allocations: 4 kB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.2221, allocations: 0 / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003519/0.2224, allocations: 197.8 kB / 356.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.2225, allocations: 0 / 356.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.2227, allocations: 19.94 kB / 356.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.296e-06/0.2227, allocations: 4 kB / 356.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.2227, allocations: 3.984 kB / 356.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/0.2227, allocations: 3.938 kB / 356.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2228, allocations: 4 kB / 356.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003999/0.2232, allocations: 199.4 kB / 356.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.659e-05/0.2233, allocations: 85.02 kB / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.375e-05/0.2233, allocations: 4 kB / 356.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.2234, allocations: 7.938 kB / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.771e-05/0.2235, allocations: 4 kB / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.2235, allocations: 4 kB / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.772e-05/0.2236, allocations: 95.41 kB / 356.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2236, allocations: 3.938 kB / 356.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000473/0.2241, allocations: 27.94 kB / 356.5 MB, free: 13.58 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (eddyCurrentTorque.phi,inertia.w,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 (8): * Single equations (assignments): 8 * 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.0009024/0.225, allocations: 0.7436 MB / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002957/0.2253, allocations: 64.05 kB / 357.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.2253, allocations: 3.938 kB / 357.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.43e-05/0.2254, allocations: 32.39 kB / 357.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007148/0.2262, allocations: 18.67 kB / 357.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00345/0.2296, allocations: 1.717 MB / 359.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006454/0.2303, allocations: 0.7041 MB / 359.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.335e-05/0.2304, allocations: 4.438 kB / 359.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.653e-05/0.2305, allocations: 31.42 kB / 359.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of SimCode: time 1.433e-06/0.2305, allocations: 0 / 359.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03758/0.2681, allocations: 2.227 MB / 362.1 MB, free: 7.977 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.49, allocations: 17.17 kB / 362.1 MB, free: 7.961 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.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_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches