Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.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.00153/0.00153, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.00139/0.00139, allocations: 201.2 kB / 24.52 MB, free: 4.156 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.391/1.391, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 43.92 kB / 378.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2317, allocations: 53.36 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake): time 0.00318/0.2348, allocations: 2.028 MB / 433.9 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.2359, allocations: 0.709 MB / 434.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.941e-05/0.236, allocations: 7.938 kB / 434.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.2361, allocations: 19.78 kB / 434.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.838e-05/0.2362, allocations: 39.64 kB / 434.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.2364, allocations: 51.86 kB / 434.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001909/0.2366, allocations: 147.2 kB / 434.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.2367, allocations: 25.3 kB / 434.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.68e-05/0.2368, allocations: 59.78 kB / 435 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.535e-05/0.2369, allocations: 55.78 kB / 435 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.111e-05/0.2369, allocations: 8 kB / 435.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.768e-05/0.237, allocations: 27.98 kB / 435.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3e-05/0.2371, allocations: 31.84 kB / 435.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.961e-05/0.2371, allocations: 59.67 kB / 435.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002279/0.2374, allocations: 159.8 kB / 435.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2374, allocations: 0 / 435.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2374, allocations: 0 / 435.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.2374, allocations: 0 / 435.3 MB, free: 3.434 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.0006308/0.238, allocations: 369.7 kB / 435.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.238, allocations: 8.031 kB / 435.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.456e-05/0.238, allocations: 8.188 kB / 435.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.045e-05/0.2381, allocations: 42.73 kB / 435.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.2383, allocations: 28.83 kB / 435.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.2385, allocations: 145.5 kB / 435.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.2385, allocations: 12.38 kB / 435.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.331e-05/0.2385, allocations: 15.94 kB / 435.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.2388, allocations: 109.6 kB / 436.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.2388, allocations: 3.953 kB / 436.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.2388, allocations: 7.938 kB / 436.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.2388, allocations: 4 kB / 436.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002725/0.2391, allocations: 95.92 kB / 436.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000785/0.2399, allocations: 454.5 kB / 436.6 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.2402, allocations: 118.5 kB / 436.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.2404, allocations: 44.88 kB / 436.8 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.263e-05/0.2404, allocations: 3.984 kB / 436.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.2404, allocations: 42.5 kB / 436.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.2404, allocations: 3.938 kB / 436.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009972/0.2414, allocations: 408.5 kB / 437.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.2414, allocations: 51.41 kB / 437.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.2416, allocations: 141.2 kB / 437.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.2416, allocations: 25.7 kB / 437.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.244e-05/0.2417, allocations: 124.2 kB / 437.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.849e-05/0.2417, allocations: 43.58 kB / 437.6 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.539e-05/0.2418, allocations: 37.61 kB / 437.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2419, allocations: 326.8 kB / 437.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.2421, allocations: 47.88 kB / 438 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.2422, allocations: 71.39 kB / 438.1 MB, free: 484 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002766/0.2425, allocations: 123.3 kB / 438.2 MB, free: 348 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2425, allocations: 3.984 kB / 438.2 MB, free: 344 kB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003441/0.2428, allocations: 165.5 kB / 438.3 MB, free: 172 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.2428, allocations: 4 kB / 438.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.2428, allocations: 0 / 438.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.2429, allocations: 4 kB / 438.4 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.243, allocations: 47.98 kB / 438.4 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.243, allocations: 7.984 kB / 438.4 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.879e-05/0.2431, allocations: 4 kB / 438.4 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.2431, allocations: 8 kB / 438.4 MB, free: 96 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 (18): * Single equations (assignments): 18 * 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.0001083/0.2433, allocations: 117.8 kB / 438.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.126e-05/0.2433, allocations: 15.89 kB / 438.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.412e-05/0.2433, allocations: 16.77 kB / 438.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.2433, allocations: 8 kB / 438.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2434, allocations: 0 / 438.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2434, allocations: 3.938 kB / 438.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007219/0.2441, allocations: 447.2 kB / 439 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2441, allocations: 0 / 439 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002006/0.2443, allocations: 40.05 kB / 439.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.2443, allocations: 4 kB / 439.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.2443, allocations: 0 / 439.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.2443, allocations: 3.984 kB / 439.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.2443, allocations: 4 kB / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005114/0.2448, allocations: 308.6 kB / 439.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.382e-05/0.2448, allocations: 7.953 kB / 439.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.993e-05/0.2448, allocations: 4 kB / 439.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.245, allocations: 12.03 kB / 439.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.189e-05/0.245, allocations: 7.984 kB / 439.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.727e-06/0.245, allocations: 4 kB / 439.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.553e-05/0.2451, allocations: 103.2 kB / 439.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2451, allocations: 11.94 kB / 439.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002501/0.2453, allocations: 31.94 kB / 439.5 MB, free: 14.88 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (mass.s,mass.v,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 (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 Backend phase and start with SimCode phase: time 0.0007984/0.2461, allocations: 0.8389 MB / 440.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003159/0.2465, allocations: 107.8 kB / 440.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2465, allocations: 0 / 440.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001405/0.2466, allocations: 55.91 kB / 440.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.2469, allocations: 24.56 kB / 440.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/0.2494, allocations: 1.988 MB / 442.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.2498, allocations: 0.7119 MB / 443.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.935e-05/0.2498, allocations: 8.641 kB / 443.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.49e-05/0.2499, allocations: 39.42 kB / 443.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.2499, allocations: 7.938 kB / 443.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03366/0.2836, allocations: 3.242 MB / 446.6 MB, free: 7.855 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.83, allocations: 8.047 kB / 446.6 MB, free: 7.848 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.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: 13.135820730996784]