Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000758/0.000758, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007841/0.0007841, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8912/0.8912, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.731e-05/2.912e-05, allocations: 2.281 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.002591/0.00262, allocations: 1.938 MB / 326.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008332/0.003453, allocations: 0.6506 MB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.728e-05/0.003541, allocations: 11.88 kB / 327.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.003656, allocations: 15.8 kB / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003361/0.003992, allocations: 39.64 kB / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002424/0.004234, allocations: 63.78 kB / 327.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001542/0.004389, allocations: 147.2 kB / 327.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.004524, allocations: 33 kB / 327.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.004625, allocations: 71.88 kB / 327.5 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.592e-05/0.004701, allocations: 47.81 kB / 327.5 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.152e-05/0.004723, allocations: 12 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.389e-05/0.004786, allocations: 27.98 kB / 327.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.337e-05/0.00481, allocations: 23.91 kB / 327.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.892e-05/0.004849, allocations: 43.86 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001938/0.005043, allocations: 151.5 kB / 327.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.005045, allocations: 0 / 327.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.005046, allocations: 4 kB / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.005051, allocations: 3.938 kB / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0004871/0.005538, allocations: 361.7 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.005583, allocations: 11.98 kB / 328.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.88e-05/0.005621, allocations: 42.73 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.005753, allocations: 32.88 kB / 328.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002137/0.005966, allocations: 148.4 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.005979, allocations: 8.375 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/0.006007, allocations: 12.38 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/0.006206, allocations: 106.2 kB / 328.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.006219, allocations: 7.922 kB / 328.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.006232, allocations: 8 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.006236, allocations: 0 / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001582/0.006395, allocations: 91.94 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005849/0.006979, allocations: 446.7 kB / 329 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.007217, allocations: 102.5 kB / 329.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.499e-05/0.007282, allocations: 36.83 kB / 329.2 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.164e-05/0.007294, allocations: 8 kB / 329.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/0.007313, allocations: 34.56 kB / 329.2 MB, free: 11.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.323e-06/0.007315, allocations: 3.938 kB / 329.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.000288/0.007603, allocations: 149.6 kB / 329.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/0.007632, allocations: 55.41 kB / 329.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.528e-05/0.007708, allocations: 132.8 kB / 329.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.007719, allocations: 29.64 kB / 329.6 MB, free: 10.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.793e-05/0.007777, allocations: 120.2 kB / 329.7 MB, free: 10.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.392e-05/0.007801, allocations: 39.72 kB / 329.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-05/0.007839, allocations: 25.72 kB / 329.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.671e-05/0.007916, allocations: 322.8 kB / 330.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.718e-05/0.007983, allocations: 35.97 kB / 330.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.911e-05/0.008062, allocations: 70.91 kB / 330.2 MB, free: 10.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/0.008205, allocations: 115.3 kB / 330.3 MB, free: 9.895 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.008209, allocations: 4 kB / 330.3 MB, free: 9.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001897/0.008398, allocations: 137.5 kB / 330.4 MB, free: 9.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.008413, allocations: 7.938 kB / 330.4 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.00842, allocations: 3.984 kB / 330.4 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.008432, allocations: 4 kB / 330.4 MB, free: 9.734 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.099e-05/0.008523, allocations: 35.92 kB / 330.5 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.008529, allocations: 4.094 kB / 330.5 MB, free: 9.695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.556e-05/0.008574, allocations: 15.92 kB / 330.5 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-06/0.008581, allocations: 4 kB / 330.5 MB, free: 9.676 MB / 298.7 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 (14): * Single equations (assignments): 14 * 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 7.14e-05/0.008652, allocations: 121.8 kB / 330.6 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.935e-05/0.008672, allocations: 15.84 kB / 330.6 MB, free: 9.531 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.868e-05/0.0087, allocations: 16.78 kB / 330.6 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.008702, allocations: 0 / 330.6 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.008706, allocations: 0 / 330.6 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.008709, allocations: 3.938 kB / 330.6 MB, free: 9.516 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.008852, allocations: 180.6 kB / 330.8 MB, free: 9.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.008853, allocations: 4 kB / 330.8 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.014e-05/0.008943, allocations: 27.97 kB / 330.8 MB, free: 9.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.008947, allocations: 7.938 kB / 330.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-06/0.008957, allocations: 0 / 330.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.008958, allocations: 0 / 330.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.00896, allocations: 4.359 kB / 330.9 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002749/0.009234, allocations: 259.3 kB / 331.1 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.189e-05/0.009246, allocations: 15.94 kB / 331.1 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.009261, allocations: 7.938 kB / 331.1 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.565e-05/0.009317, allocations: 4 kB / 331.1 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.334e-05/0.00935, allocations: 7.984 kB / 331.1 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.009354, allocations: 4 kB / 331.2 MB, free: 8.945 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.21e-05/0.009396, allocations: 99.25 kB / 331.2 MB, free: 8.848 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.009396, allocations: 0 / 331.2 MB, free: 8.848 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001642/0.00956, allocations: 28 kB / 331.3 MB, free: 8.82 MB / 298.7 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 (9): * Single equations (assignments): 9 * 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.000431/0.009991, allocations: 0.7981 MB / 332.1 MB, free: 7.992 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001711/0.01016, allocations: 91.92 kB / 332.2 MB, free: 7.902 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01016, allocations: 0 / 332.2 MB, free: 7.902 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.367e-05/0.01023, allocations: 39.97 kB / 332.2 MB, free: 7.863 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.01048, allocations: 20.17 kB / 332.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.01191, allocations: 1.797 MB / 334 MB, free: 5.941 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.961e-05/0.01197, allocations: 93.92 kB / 334.1 MB, free: 5.832 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.258e-05/0.01201, allocations: 16.42 kB / 334.1 MB, free: 5.816 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003346/0.01234, allocations: 32.5 kB / 334.2 MB, free: 5.785 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01234, allocations: 0 / 334.2 MB, free: 5.785 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01912/0.03147, allocations: 3.454 MB / 337.6 MB, free: 2.449 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.672/6.703, allocations: 11.86 kB / 337.6 MB, free: 2.438 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv. Warning: Get data of variable Time from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv failed! Error: Could not read variable eddyCurrentTorque.lossPower in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv. Warning: Get data of variable eddyCurrentTorque.lossPower from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv failed! Error: Could not read variable inertia.phi in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv. Warning: Get data of variable inertia.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.461269688792527]