Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.001323/0.001323, allocations: 123 kB / 17.79 MB, free: 5.246 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.001444/0.001444, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.472/1.472, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 47.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1164, allocations: 53.34 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.005031/0.1214, allocations: 2.863 MB / 429.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002497/0.1239, allocations: 1.223 MB / 430.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003708/0.1243, allocations: 8 kB / 430.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001927/0.1262, allocations: 0.6223 MB / 431 MB, free: 44 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2396/0.3659, allocations: 135.2 kB / 431.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001737/0.3676, allocations: 0.6506 MB / 431.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006729/0.3683, allocations: 297.3 kB / 432.1 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000541/0.3688, allocations: 202.8 kB / 432.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003413/0.3691, allocations: 144.9 kB / 432.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003315/0.3695, allocations: 169.3 kB / 432.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.434e-05/0.3696, allocations: 25.03 kB / 432.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005263/0.3701, allocations: 186.8 kB / 432.8 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.113e-05/0.3701, allocations: 62.27 kB / 432.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.3703, allocations: 146.3 kB / 433 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007271/0.371, allocations: 0.5 MB / 433.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.371, allocations: 1.922 kB / 433.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.371, allocations: 1.406 kB / 433.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.371, allocations: 0 / 433.5 MB, free: 7.367 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001756/0.3728, allocations: 0.7289 MB / 434.3 MB, free: 6.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.3728, allocations: 10.09 kB / 434.3 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.54e-05/0.3729, allocations: 72.58 kB / 434.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008588/0.3738, allocations: 118.9 kB / 434.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003941/0.3742, allocations: 265.8 kB / 434.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.3742, allocations: 26.44 kB / 434.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.839e-05/0.3743, allocations: 37.92 kB / 434.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005795/0.3748, allocations: 329.8 kB / 435.1 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.3749, allocations: 3.875 kB / 435.1 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.407e-05/0.3749, allocations: 12.23 kB / 435.1 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.3749, allocations: 7.594 kB / 435.1 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004608/0.3754, allocations: 242.5 kB / 435.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/0.3775, allocations: 1.445 MB / 436.8 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006163/0.3781, allocations: 0.6845 MB / 437.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.3782, allocations: 91.59 kB / 437.6 MB, free: 5.137 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001621/0.3784, allocations: 173.8 kB / 437.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.052e-05/0.3784, allocations: 36.64 kB / 437.8 MB, free: 4.902 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.512e-06/0.3784, allocations: 1.469 kB / 437.8 MB, free: 4.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001325/0.3797, allocations: 0.4897 MB / 438.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.21e-05/0.3798, allocations: 54.78 kB / 438.3 MB, free: 4.594 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.3799, allocations: 165.1 kB / 438.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.38, allocations: 30.89 kB / 438.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.174e-05/0.38, allocations: 184.4 kB / 438.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.541e-05/0.3801, allocations: 91.34 kB / 438.8 MB, free: 4.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.799e-05/0.3802, allocations: 48.91 kB / 438.8 MB, free: 4.176 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.271e-05/0.3803, allocations: 328.4 kB / 439.2 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.3804, allocations: 71.39 kB / 439.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.3805, allocations: 126.3 kB / 439.4 MB, free: 3.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002843/0.3808, allocations: 227.3 kB / 439.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3808, allocations: 0 / 439.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005971/0.3814, allocations: 328.7 kB / 439.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3814, allocations: 5.719 kB / 439.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.3815, allocations: 2 kB / 439.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003558/0.3818, allocations: 79.62 kB / 440 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/0.382, allocations: 45.95 kB / 440 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/0.3838, allocations: 2.031 MB / 442.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.3839, allocations: 26.97 kB / 442.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/0.3839, allocations: 12.48 kB / 442.1 MB, free: 1.598 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.3841, allocations: 148.7 kB / 442.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.049e-05/0.3841, allocations: 24.27 kB / 442.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005731/0.3847, allocations: 276.8 kB / 442.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.3847, allocations: 2.219 kB / 442.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3847, allocations: 2.062 kB / 442.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.3847, allocations: 1.594 kB / 442.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009815/0.3857, allocations: 0.6884 MB / 443.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.3857, allocations: 0 / 443.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.3858, allocations: 34.42 kB / 443.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002467/0.3861, allocations: 72.84 kB / 443.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.3861, allocations: 2.016 kB / 443.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002085/0.3882, allocations: 2.032 MB / 445.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3882, allocations: 0.6562 kB / 445.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009187/0.3891, allocations: 461 kB / 445.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.3892, allocations: 113.4 kB / 445.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.3893, allocations: 5.75 kB / 445.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.3894, allocations: 7.188 kB / 445.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.377e-05/0.3895, allocations: 22.59 kB / 446 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.3895, allocations: 5.422 kB / 446 MB, free: 14.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001458/0.3896, allocations: 125.6 kB / 446.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3896, allocations: 0 / 446.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00063/0.3903, allocations: 96.08 kB / 446.2 MB, free: 14.49 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * 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 (15): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001331/0.3916, allocations: 0.9981 MB / 447.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008122/0.3924, allocations: 352.4 kB / 447.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3924, allocations: 0 / 447.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004051/0.3928, allocations: 241.7 kB / 447.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003657/0.3932, allocations: 16.92 kB / 447.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003944/0.3971, allocations: 2.503 MB / 450.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004512/0.3976, allocations: 0.7558 MB / 451 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.978e-05/0.3977, allocations: 25.47 kB / 451.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.3978, allocations: 75.78 kB / 451.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3978, allocations: 0 / 451.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03821/0.436, allocations: 5.202 MB / 456.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.57, allocations: 8.141 kB / 456.3 MB, free: 10.02 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.929343302967027]