Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 212.5 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.369/1.369, allocations: 230.6 MB / 258.3 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 47.92 kB / 378.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2342, allocations: 53.37 MB / 431.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003409/0.2376, allocations: 1.94 MB / 433.8 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.2388, allocations: 0.6351 MB / 434.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.2389, allocations: 4 kB / 434.4 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001169/0.239, allocations: 19.8 kB / 434.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.2392, allocations: 47.62 kB / 434.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002453/0.2394, allocations: 47.81 kB / 434.5 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002092/0.2396, allocations: 147.3 kB / 434.7 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.2397, allocations: 31.34 kB / 434.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.619e-05/0.2398, allocations: 59.72 kB / 434.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.456e-05/0.2399, allocations: 51.78 kB / 434.8 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.198e-05/0.24, allocations: 8 kB / 434.8 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.433e-05/0.24, allocations: 31.98 kB / 434.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.796e-05/0.2401, allocations: 31.84 kB / 434.9 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.876e-05/0.2401, allocations: 47.8 kB / 434.9 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002436/0.2404, allocations: 151.4 kB / 435.1 MB, free: 3.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2404, allocations: 0 / 435.1 MB, free: 3.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2404, allocations: 0 / 435.1 MB, free: 3.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2404, allocations: 0 / 435.1 MB, free: 3.387 MB / 334.1 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.0006467/0.241, allocations: 369.6 kB / 435.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2411, allocations: 19.97 kB / 435.5 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.148e-05/0.2411, allocations: 192 / 435.5 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.617e-05/0.2411, allocations: 38.75 kB / 435.5 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001794/0.2413, allocations: 28.86 kB / 435.5 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/0.2415, allocations: 138.4 kB / 435.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.2416, allocations: 8.375 kB / 435.7 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.583e-05/0.2416, allocations: 15.94 kB / 435.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002812/0.2419, allocations: 117.5 kB / 435.8 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.2419, allocations: 8 kB / 435.8 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.2419, allocations: 4 kB / 435.8 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2419, allocations: 4 kB / 435.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002558/0.2422, allocations: 87.92 kB / 435.9 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008595/0.243, allocations: 446.5 kB / 436.3 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.2433, allocations: 114.5 kB / 436.5 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.2435, allocations: 36.84 kB / 436.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.012e-05/0.2435, allocations: 0 / 436.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.2435, allocations: 34.56 kB / 436.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 8.41e-07/0.2435, allocations: 0 / 436.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004315/0.2439, allocations: 149.7 kB / 436.7 MB, free: 1.656 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.244, allocations: 55.78 kB / 436.7 MB, free: 1.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.2441, allocations: 136.8 kB / 436.9 MB, free: 1.449 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.2441, allocations: 29.69 kB / 436.9 MB, free: 1.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.398e-05/0.2442, allocations: 116.2 kB / 437 MB, free: 1.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.489e-05/0.2442, allocations: 47.55 kB / 437.1 MB, free: 1.246 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.902e-05/0.2443, allocations: 25.72 kB / 437.1 MB, free: 1.215 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.2444, allocations: 322.8 kB / 437.4 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.2445, allocations: 35.97 kB / 437.4 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.2446, allocations: 71.34 kB / 437.5 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002427/0.2449, allocations: 111.3 kB / 437.6 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.2449, allocations: 3.938 kB / 437.6 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000313/0.2452, allocations: 141.5 kB / 437.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.2452, allocations: 4.094 kB / 437.8 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.2452, allocations: 8 kB / 437.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.2452, allocations: 0 / 437.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.2454, allocations: 43.84 kB / 437.8 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.2454, allocations: 4 kB / 437.8 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.76e-05/0.2455, allocations: 4 kB / 437.8 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.2455, allocations: 4 kB / 437.8 MB, free: 448 kB / 334.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 (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 9.668e-05/0.2456, allocations: 125.8 kB / 437.9 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.523e-05/0.2456, allocations: 15.91 kB / 438 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.915e-05/0.2457, allocations: 12.72 kB / 438 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.2457, allocations: 4 kB / 438 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.2457, allocations: 8 kB / 438 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.2457, allocations: 0 / 438 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00022/0.2459, allocations: 176.6 kB / 438.2 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2459, allocations: 0 / 438.2 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001724/0.2461, allocations: 35.91 kB / 438.2 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.2461, allocations: 0 / 438.2 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.2461, allocations: 0 / 438.2 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2461, allocations: 0 / 438.2 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2461, allocations: 0 / 438.2 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004801/0.2466, allocations: 263.3 kB / 438.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.849e-05/0.2466, allocations: 11.91 kB / 438.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.2466, allocations: 4.031 kB / 438.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.2467, allocations: 8 kB / 438.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.782e-05/0.2468, allocations: 7.984 kB / 438.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.2468, allocations: 0 / 438.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.187e-05/0.2469, allocations: 103.4 kB / 438.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2469, allocations: 3.938 kB / 438.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002537/0.2471, allocations: 32 kB / 438.6 MB, free: 15.57 MB / 350.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 (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.0007413/0.2479, allocations: 0.7977 MB / 439.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002718/0.2481, allocations: 87.86 kB / 439.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2481, allocations: 0 / 439.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.2482, allocations: 56.09 kB / 439.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.2485, allocations: 14.95 kB / 439.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/0.251, allocations: 1.894 MB / 441.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.601e-05/0.2511, allocations: 97.66 kB / 441.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.487e-05/0.2512, allocations: 8.5 kB / 441.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.213e-05/0.2512, allocations: 35.7 kB / 441.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2512, allocations: 0 / 441.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02371/0.2749, allocations: 2.984 MB / 444.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.72, allocations: 19.73 kB / 444.6 MB, free: 9.617 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.972366620902903]