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.001523/0.001523, allocations: 101.5 kB / 17.72 MB, free: 5.332 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.00126/0.00126, allocations: 188.1 kB / 18.66 MB, free: 4.402 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.226/1.226, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001136/0.001136, allocations: 51.94 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08125/0.0824, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.002929/0.08536, allocations: 1.755 MB / 376.4 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.08654, allocations: 0.6901 MB / 377.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.08666, allocations: 4 kB / 377.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001166/0.08681, allocations: 15.8 kB / 377.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.657e-05/0.08691, allocations: 35.7 kB / 377.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002418/0.08716, allocations: 47.81 kB / 377.2 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.08733, allocations: 119.4 kB / 377.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.08746, allocations: 31.97 kB / 377.3 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.283e-05/0.08755, allocations: 39.86 kB / 377.4 MB, free: 2.344 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.565e-05/0.08765, allocations: 47.78 kB / 377.4 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.998e-05/0.08768, allocations: 8 kB / 377.4 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.405e-05/0.08777, allocations: 31.92 kB / 377.4 MB, free: 2.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.531e-05/0.0878, allocations: 27.91 kB / 377.5 MB, free: 2.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.354e-05/0.08787, allocations: 51.73 kB / 377.5 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.08809, allocations: 123.9 kB / 377.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.08811, allocations: 0 / 377.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.08812, allocations: 0 / 377.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.08813, allocations: 0 / 377.6 MB, free: 2.059 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.0005694/0.0887, allocations: 403.4 kB / 378 MB, free: 1.617 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.08875, allocations: 12.02 kB / 378.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.624e-05/0.08881, allocations: 38.75 kB / 378.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002032/0.08902, allocations: 32.73 kB / 378.1 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000257/0.08928, allocations: 196.1 kB / 378.3 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.0893, allocations: 4.562 kB / 378.3 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.196e-05/0.08934, allocations: 16.12 kB / 378.3 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.08953, allocations: 85.66 kB / 378.4 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.08956, allocations: 4 kB / 378.4 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.08958, allocations: 4 kB / 378.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.08959, allocations: 0 / 378.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000128/0.08972, allocations: 67.91 kB / 378.5 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007386/0.09047, allocations: 485.1 kB / 379 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000249/0.09073, allocations: 86.52 kB / 379 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.706e-05/0.09079, allocations: 28.86 kB / 379.1 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.09081, allocations: 3.984 kB / 379.1 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.09084, allocations: 34.61 kB / 379.1 MB, free: 416 kB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.09084, allocations: 0 / 379.1 MB, free: 416 kB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002317/0.09108, allocations: 101.8 kB / 379.2 MB, free: 308 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.09113, allocations: 55.34 kB / 379.3 MB, free: 240 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.819e-05/0.09123, allocations: 117.8 kB / 379.4 MB, free: 112 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.09125, allocations: 25.7 kB / 379.4 MB, free: 80 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1627/0.2539, allocations: 116 kB / 379.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.005e-05/0.254, allocations: 28.2 kB / 379.5 MB, free: 12.92 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.593e-05/0.2541, allocations: 26.41 kB / 379.6 MB, free: 12.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.27e-05/0.2541, allocations: 317.8 kB / 379.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.786e-05/0.2542, allocations: 24.7 kB / 379.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.317e-05/0.2543, allocations: 52.83 kB / 380 MB, free: 12.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.2544, allocations: 81.98 kB / 380 MB, free: 12.53 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.2544, allocations: 0.875 kB / 380 MB, free: 12.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001849/0.2546, allocations: 112.1 kB / 380.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.2546, allocations: 5.812 kB / 380.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.2546, allocations: 5.125 kB / 380.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.2546, allocations: 1.984 kB / 380.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.2548, allocations: 36.33 kB / 380.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.2548, allocations: 1.984 kB / 380.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.507e-05/0.2549, allocations: 6.656 kB / 380.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.818e-06/0.2549, allocations: 6.75 kB / 380.2 MB, free: 12.49 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 (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 6.763e-05/0.2549, allocations: 123.2 kB / 380.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.43e-05/0.255, allocations: 4.125 kB / 380.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.056e-05/0.255, allocations: 21.41 kB / 380.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.255, allocations: 1.375 kB / 380.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2551, allocations: 2.344 kB / 380.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2551, allocations: 1.266 kB / 380.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001799/0.2552, allocations: 201.8 kB / 380.6 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2553, allocations: 1.203 kB / 380.6 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000131/0.2554, allocations: 19.66 kB / 380.6 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.2554, allocations: 2.172 kB / 380.6 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.2554, allocations: 11 kB / 380.6 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2554, allocations: 0.9062 kB / 380.6 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2554, allocations: 1.125 kB / 380.6 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001876/0.2556, allocations: 201.8 kB / 380.8 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.308e-05/0.2557, allocations: 86.33 kB / 380.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.2557, allocations: 6.25 kB / 380.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.712e-05/0.2558, allocations: 2.141 kB / 380.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.698e-05/0.2558, allocations: 8.719 kB / 380.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.2558, allocations: 5.391 kB / 380.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.88e-05/0.2558, allocations: 91.48 kB / 381 MB, free: 11.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2558, allocations: 3.844 kB / 381 MB, free: 11.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000259/0.2561, allocations: 27.59 kB / 381 MB, free: 11.86 MB / 318.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.0003047/0.2564, allocations: 0.7341 MB / 381.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001433/0.2566, allocations: 63.64 kB / 381.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2566, allocations: 3.906 kB / 381.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.64e-05/0.2566, allocations: 32.42 kB / 381.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.2569, allocations: 16.61 kB / 381.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.2583, allocations: 1.711 MB / 383.6 MB, free: 9.832 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.2584, allocations: 0.6982 MB / 384.3 MB, free: 9.137 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.747e-05/0.2585, allocations: 11.14 kB / 384.3 MB, free: 9.133 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.693e-05/0.2585, allocations: 28.12 kB / 384.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2585, allocations: 0 / 384.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01813/0.2767, allocations: 2.311 MB / 386.6 MB, free: 8.555 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.346/7.623, allocations: 5.156 kB / 386.6 MB, free: 8.551 MB / 318.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