Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001472/0.001477, allocations: 110 kB / 17.06 MB, free: 6.023 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.001617/0.001617, allocations: 191 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 39.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3622, allocations: 49.44 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004291/0.3666, allocations: 2.835 MB / 403.6 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.3687, allocations: 1.16 MB / 404.7 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.3688, allocations: 8 kB / 404.7 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00157/0.3704, allocations: 0.6107 MB / 405.3 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003532/0.3708, allocations: 135 kB / 405.5 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001378/0.3722, allocations: 0.6917 MB / 406.2 MB, free: 3.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004253/0.3726, allocations: 290.6 kB / 406.4 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004838/0.3731, allocations: 272.1 kB / 406.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.3733, allocations: 135.4 kB / 406.8 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.3736, allocations: 159.4 kB / 407 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.211e-05/0.3736, allocations: 24 kB / 407 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003656/0.374, allocations: 179.8 kB / 407.2 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.707e-05/0.374, allocations: 63.72 kB / 407.3 MB, free: 2.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.3742, allocations: 151.3 kB / 407.4 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005957/0.3748, allocations: 0.4906 MB / 407.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3748, allocations: 0 / 407.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3748, allocations: 0 / 407.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.385e-06/0.3748, allocations: 0 / 407.9 MB, free: 1.684 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.00168/0.3765, allocations: 0.7178 MB / 408.6 MB, free: 0.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.3766, allocations: 8.031 kB / 408.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008515/0.3774, allocations: 128.5 kB / 408.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.3779, allocations: 260.5 kB / 409 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.3779, allocations: 25.02 kB / 409 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.713e-05/0.378, allocations: 36.28 kB / 409.1 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005286/0.3785, allocations: 333 kB / 409.4 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.3785, allocations: 3.984 kB / 409.4 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/0.3786, allocations: 19.94 kB / 409.4 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.3786, allocations: 8 kB / 409.4 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000395/0.379, allocations: 242.5 kB / 409.7 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001869/0.3809, allocations: 1.435 MB / 411.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006217/0.3815, allocations: 0.706 MB / 411.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.3817, allocations: 100.8 kB / 411.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001065/0.3818, allocations: 89.03 kB / 412 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.3818, allocations: 38.55 kB / 412 MB, free: 13.17 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.3818, allocations: 4 kB / 412 MB, free: 13.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001203/0.383, allocations: 495 kB / 412.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.3831, allocations: 55.41 kB / 412.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.3832, allocations: 172 kB / 412.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.3833, allocations: 29.7 kB / 412.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.608e-05/0.3834, allocations: 180 kB / 412.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.253e-05/0.3834, allocations: 82.75 kB / 413 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.941e-05/0.3835, allocations: 49.98 kB / 413.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3836, allocations: 334.8 kB / 413.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.3838, allocations: 64.55 kB / 413.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001634/0.3839, allocations: 129 kB / 413.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000307/0.3843, allocations: 216.1 kB / 413.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3843, allocations: 0 / 413.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005742/0.3848, allocations: 340.5 kB / 414.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.3849, allocations: 4 kB / 414.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.3849, allocations: 4 kB / 414.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003166/0.3852, allocations: 76.75 kB / 414.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/0.3854, allocations: 48.03 kB / 414.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001992/0.3874, allocations: 2.029 MB / 416.3 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.3875, allocations: 27.72 kB / 416.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.3875, allocations: 8 kB / 416.3 MB, free: 8.598 MB / 334.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.0001427/0.3877, allocations: 153.7 kB / 416.5 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.419e-05/0.3877, allocations: 23.81 kB / 416.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005442/0.3883, allocations: 276 kB / 416.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3883, allocations: 4 kB / 416.8 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.3883, allocations: 0 / 416.8 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3883, allocations: 7.984 kB / 416.8 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000927/0.3893, allocations: 0.697 MB / 417.5 MB, free: 7.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3893, allocations: 0 / 417.5 MB, free: 7.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.3894, allocations: 20 kB / 417.5 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000232/0.3896, allocations: 80.73 kB / 417.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.3897, allocations: 0 / 417.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001851/0.3915, allocations: 2.026 MB / 419.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3915, allocations: 0 / 419.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006089/0.3922, allocations: 452.6 kB / 420 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.974e-05/0.3922, allocations: 108.8 kB / 420.1 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.3923, allocations: 8 kB / 420.1 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.3924, allocations: 3.938 kB / 420.2 MB, free: 4.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.3924, allocations: 19.97 kB / 420.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.3925, allocations: 8 kB / 420.2 MB, free: 4.473 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.42e-05/0.3926, allocations: 127.5 kB / 420.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3926, allocations: 0 / 420.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004643/0.393, allocations: 99.69 kB / 420.4 MB, free: 4.25 MB / 334.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.0002097/0.3933, allocations: 125.6 kB / 420.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005765/0.3938, allocations: 362.2 kB / 420.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3939, allocations: 0 / 420.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003203/0.3942, allocations: 249 kB / 421.1 MB, free: 3.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.3945, allocations: 26.16 kB / 421.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009406/0.3955, allocations: 0.5635 MB / 421.7 MB, free: 2.891 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.3958, allocations: 0.756 MB / 422.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.576e-05/0.3959, allocations: 25.94 kB / 422.5 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.489e-05/0.3959, allocations: 15.44 kB / 422.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3959, allocations: 0 / 422.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of Templates: time 0.006215/0.4021, allocations: 2.657 MB / 425.2 MB, free: 15.41 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches