Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001052/0.001052, allocations: 97.28 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001468/0.001468, allocations: 205.3 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.8 MB / 246.8 MB, free: 9.766 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002134/0.0002134, allocations: 4 kB / 307.8 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09172/0.09194, allocations: 51.53 MB / 359.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002824/0.0948, allocations: 2.488 MB / 361.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001715/0.09654, allocations: 1.168 MB / 362.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.09665, allocations: 11.94 kB / 363 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003312/0.09699, allocations: 135.5 kB / 363.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002866/0.09728, allocations: 115.3 kB / 363.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.09847, allocations: 0.6153 MB / 363.8 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000353/0.09883, allocations: 290.6 kB / 364.1 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009998/0.09984, allocations: 0.5892 MB / 364.7 MB, free: 7.617 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.1, allocations: 115.5 kB / 364.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001788/0.1002, allocations: 143.4 kB / 364.9 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.948e-05/0.1002, allocations: 12 kB / 364.9 MB, free: 7.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003126/0.1006, allocations: 175.8 kB / 365.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.83e-05/0.1006, allocations: 43.84 kB / 365.2 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001278/0.1007, allocations: 157 kB / 365.3 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000511/0.1013, allocations: 490.6 kB / 365.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1013, allocations: 0 / 365.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1013, allocations: 3.938 kB / 365.8 MB, free: 6.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.1013, allocations: 0 / 365.8 MB, free: 6.492 MB / 302.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.001654/0.103, allocations: 0.6749 MB / 366.5 MB, free: 5.766 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.103, allocations: 8.031 kB / 366.5 MB, free: 5.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000824/0.1038, allocations: 112.5 kB / 366.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000336/0.1042, allocations: 258.5 kB / 366.8 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.1042, allocations: 29.03 kB / 366.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.38e-05/0.1043, allocations: 32.28 kB / 366.9 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005227/0.1048, allocations: 337 kB / 367.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.1048, allocations: 0 / 367.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.1049, allocations: 12 kB / 367.2 MB, free: 4.953 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.1049, allocations: 11.94 kB / 367.3 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004046/0.1053, allocations: 242.5 kB / 367.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001945/0.1073, allocations: 1.439 MB / 368.9 MB, free: 3.121 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006613/0.1079, allocations: 0.7078 MB / 369.6 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.1081, allocations: 108.8 kB / 369.7 MB, free: 2.188 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000176/0.1083, allocations: 170.1 kB / 369.9 MB, free: 1.984 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.1083, allocations: 38.5 kB / 370 MB, free: 1.938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.1083, allocations: 0 / 370 MB, free: 1.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001226/0.1096, allocations: 0.4985 MB / 370.5 MB, free: 1.414 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.1096, allocations: 51.41 kB / 370.5 MB, free: 1.352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.1098, allocations: 177.2 kB / 370.7 MB, free: 1.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.1098, allocations: 37.64 kB / 370.7 MB, free: 1.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.477e-05/0.1099, allocations: 168 kB / 370.9 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.186e-05/0.11, allocations: 94.73 kB / 371 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.07e-05/0.11, allocations: 29.7 kB / 371 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1101, allocations: 322.8 kB / 371.3 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.1103, allocations: 72.53 kB / 371.4 MB, free: 432 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.1104, allocations: 128.9 kB / 371.5 MB, free: 280 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002794/0.1107, allocations: 212.9 kB / 371.7 MB, free: 44 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1107, allocations: 8 kB / 371.7 MB, free: 36 kB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.1698/0.2805, allocations: 321.8 kB / 372 MB, free: 18.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.2806, allocations: 6.234 kB / 372 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.2806, allocations: 1.719 kB / 372 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003416/0.2809, allocations: 79.7 kB / 372.1 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.2811, allocations: 43.52 kB / 372.2 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001626/0.2828, allocations: 1.835 MB / 374 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001388/0.2829, allocations: 23 kB / 374 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.2829, allocations: 14.25 kB / 374 MB, free: 17.65 MB / 302.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.000127/0.2831, allocations: 146.3 kB / 374.2 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.323e-05/0.2831, allocations: 25.19 kB / 374.2 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006023/0.2837, allocations: 282.1 kB / 374.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.2837, allocations: 5.891 kB / 374.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.2837, allocations: 1.75 kB / 374.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.2838, allocations: 0.8438 kB / 374.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.2848, allocations: 0.6909 MB / 375.2 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2848, allocations: 0 / 375.2 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.2849, allocations: 25.28 kB / 375.2 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002425/0.2852, allocations: 75.28 kB / 375.3 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.2852, allocations: 5.516 kB / 375.3 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001741/0.2869, allocations: 1.842 MB / 377.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2869, allocations: 0 / 377.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006283/0.2876, allocations: 453.6 kB / 377.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.252e-05/0.2877, allocations: 110.9 kB / 377.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.2877, allocations: 9.125 kB / 377.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.2878, allocations: 5.859 kB / 377.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.924e-05/0.2879, allocations: 15.44 kB / 377.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.2879, allocations: 8.406 kB / 377.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.892e-05/0.288, allocations: 128.3 kB / 377.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.288, allocations: 0 / 377.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005301/0.2885, allocations: 96.62 kB / 377.9 MB, free: 15.21 MB / 302.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.0002218/0.2888, allocations: 131 kB / 378.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005398/0.2893, allocations: 341 kB / 378.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2893, allocations: 1.781 kB / 378.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002731/0.2896, allocations: 258 kB / 378.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.29, allocations: 20.22 kB / 378.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009529/0.2909, allocations: 0.7364 MB / 379.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/0.2911, allocations: 0.7556 MB / 380.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.2913, allocations: 27.3 kB / 380.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.925e-05/0.2913, allocations: 18.02 kB / 380.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2913, allocations: 0 / 380.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of Templates: time 0.006712/0.298, allocations: 2.536 MB / 382.7 MB, free: 13.32 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches