Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_3_2_3_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.001051/0.001051, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001057/0.001057, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.22/1.22, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 56.14 kB / 280.7 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07855/0.07989, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003371/0.0833, allocations: 1.751 MB / 329.1 MB, free: 2.602 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001153/0.08448, allocations: 0.6872 MB / 329.8 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.08464, allocations: 0 / 329.8 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.08478, allocations: 19.86 kB / 329.8 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.409e-05/0.08487, allocations: 35.64 kB / 329.9 MB, free: 1.852 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.08517, allocations: 47.86 kB / 329.9 MB, free: 1.805 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001629/0.08535, allocations: 119.4 kB / 330 MB, free: 1.688 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.08548, allocations: 39.91 kB / 330.1 MB, free: 1.648 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.849e-05/0.08554, allocations: 35.88 kB / 330.1 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.945e-05/0.08565, allocations: 51.77 kB / 330.2 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.14e-05/0.08568, allocations: 8 kB / 330.2 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.941e-05/0.08577, allocations: 27.98 kB / 330.2 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.646e-05/0.08581, allocations: 19.92 kB / 330.2 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.098e-05/0.08587, allocations: 51.8 kB / 330.3 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002003/0.08608, allocations: 119.9 kB / 330.4 MB, free: 1.34 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.08609, allocations: 3.984 kB / 330.4 MB, free: 1.336 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.0861, allocations: 0 / 330.4 MB, free: 1.336 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.08611, allocations: 3.938 kB / 330.4 MB, free: 1.332 MB / 270.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.0005427/0.08666, allocations: 411.2 kB / 330.8 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.08671, allocations: 8.031 kB / 330.8 MB, free: 0.875 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.428e-05/0.08676, allocations: 42.75 kB / 330.8 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001929/0.08696, allocations: 24.83 kB / 330.9 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.0872, allocations: 192.2 kB / 331.1 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.08722, allocations: 8.5 kB / 331.1 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.853e-05/0.08725, allocations: 12.12 kB / 331.1 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.08745, allocations: 93.66 kB / 331.2 MB, free: 468 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.08747, allocations: 3.938 kB / 331.2 MB, free: 464 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.08749, allocations: 0 / 331.2 MB, free: 464 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.0875, allocations: 4 kB / 331.2 MB, free: 460 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.08763, allocations: 71.89 kB / 331.2 MB, free: 388 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007436/0.08838, allocations: 473.2 kB / 331.7 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002464/0.08864, allocations: 94.52 kB / 331.8 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.663e-05/0.08869, allocations: 24.86 kB / 331.8 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.059e-05/0.08871, allocations: 0 / 331.8 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.08874, allocations: 34.59 kB / 331.9 MB, free: 15.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.193e-06/0.08874, allocations: 0 / 331.9 MB, free: 15.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002387/0.08899, allocations: 97.53 kB / 331.9 MB, free: 15.58 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.596e-05/0.08903, allocations: 59.28 kB / 332 MB, free: 15.51 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.89e-05/0.08912, allocations: 125.8 kB / 332.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.08914, allocations: 25.7 kB / 332.2 MB, free: 15.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.004e-05/0.0892, allocations: 111.9 kB / 332.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.491e-05/0.08923, allocations: 31.7 kB / 332.3 MB, free: 15.2 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.018e-05/0.08929, allocations: 29.7 kB / 332.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.0894, allocations: 314.8 kB / 332.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.926e-05/0.08946, allocations: 23.98 kB / 332.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.743e-05/0.08952, allocations: 55.42 kB / 332.7 MB, free: 14.76 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001/0.08963, allocations: 71.38 kB / 332.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.08963, allocations: 0 / 332.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001705/0.08981, allocations: 117.4 kB / 332.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.08983, allocations: 12.09 kB / 332.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.08985, allocations: 0 / 332.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.08986, allocations: 0 / 332.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.08998, allocations: 27.92 kB / 332.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.09, allocations: 4 kB / 332.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.255e-05/0.09007, allocations: 15.84 kB / 333 MB, free: 14.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.09008, allocations: 0 / 333 MB, free: 14.5 MB / 286.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 8.735e-05/0.09017, allocations: 121.8 kB / 333.1 MB, free: 14.37 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.111e-05/0.09021, allocations: 0 / 333.1 MB, free: 14.37 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.56e-05/0.09025, allocations: 24.31 kB / 333.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.09026, allocations: 3.938 kB / 333.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.09027, allocations: 3.984 kB / 333.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.09028, allocations: 0 / 333.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.09049, allocations: 197.6 kB / 333.3 MB, free: 14.09 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.09051, allocations: 7.938 kB / 333.3 MB, free: 14.09 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.09063, allocations: 19.98 kB / 333.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.09065, allocations: 0 / 333.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.09066, allocations: 4 kB / 333.3 MB, free: 14.06 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.09068, allocations: 7.938 kB / 333.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.09068, allocations: 0 / 333.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002257/0.09091, allocations: 207.4 kB / 333.5 MB, free: 13.84 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.222e-05/0.09097, allocations: 85.02 kB / 333.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.09099, allocations: 4 kB / 333.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.552e-05/0.09107, allocations: 7.969 kB / 333.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.063e-05/0.0911, allocations: 4 kB / 333.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.09111, allocations: 0 / 333.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.268e-05/0.09117, allocations: 95.27 kB / 333.7 MB, free: 13.62 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09117, allocations: 4 kB / 333.7 MB, free: 13.62 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000243/0.09142, allocations: 27.94 kB / 333.8 MB, free: 13.59 MB / 286.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.0004401/0.09187, allocations: 0.7326 MB / 334.5 MB, free: 12.83 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001653/0.09204, allocations: 63.95 kB / 334.6 MB, free: 12.77 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.09205, allocations: 192 / 334.6 MB, free: 12.77 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.746e-05/0.09211, allocations: 36.39 kB / 334.6 MB, free: 12.73 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.09248, allocations: 20.08 kB / 334.6 MB, free: 12.71 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001665/0.09416, allocations: 1.716 MB / 336.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.0944, allocations: 0.7002 MB / 337 MB, free: 10.17 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.903e-05/0.09447, allocations: 16.41 kB / 337 MB, free: 10.16 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.507e-05/0.09454, allocations: 23.44 kB / 337.1 MB, free: 10.13 MB / 286.1 MB Notification: Performance of SimCode: time 3.31e-07/0.09454, allocations: 0 / 337.1 MB, free: 10.13 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.1141, allocations: 2.225 MB / 339.3 MB, free: 7.855 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.192/7.306, allocations: 15.69 kB / 339.3 MB, free: 7.84 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches