Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001633/0.001633, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002007/0.002007, allocations: 210.8 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 63.88 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2552, allocations: 50.55 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.00433/0.2596, allocations: 2.765 MB / 412.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.2616, allocations: 0.9501 MB / 413.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002885/0.2619, allocations: 4 kB / 413.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003379/0.2623, allocations: 59.44 kB / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004725/0.2628, allocations: 107.2 kB / 413.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004301/0.2632, allocations: 111.8 kB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005055/0.2637, allocations: 358.6 kB / 414.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002477/0.264, allocations: 105.7 kB / 414.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00031/0.2643, allocations: 147.4 kB / 414.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002753/0.2646, allocations: 147.3 kB / 414.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.097e-05/0.2647, allocations: 35.94 kB / 414.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.2648, allocations: 36 kB / 414.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.08e-05/0.2649, allocations: 75.73 kB / 414.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.265, allocations: 155.1 kB / 415 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00045/0.2655, allocations: 363.8 kB / 415.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.2655, allocations: 0 / 415.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.2655, allocations: 0 / 415.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.703e-05/0.2655, allocations: 4 kB / 415.3 MB, free: 12.17 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001124/0.2667, allocations: 0.612 MB / 415.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.2667, allocations: 8.031 kB / 415.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001983/0.2669, allocations: 40.56 kB / 416 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004089/0.2673, allocations: 268.6 kB / 416.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/0.2674, allocations: 24.88 kB / 416.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.305e-05/0.2674, allocations: 28.38 kB / 416.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004793/0.2679, allocations: 249.2 kB / 416.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.2679, allocations: 0 / 416.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.268, allocations: 16 kB / 416.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.268, allocations: 4 kB / 416.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.2684, allocations: 210.1 kB / 416.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001664/0.2701, allocations: 1.005 MB / 417.8 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004317/0.2706, allocations: 202.5 kB / 418 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002557/0.2708, allocations: 104.8 kB / 418.1 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.2709, allocations: 11.98 kB / 418.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.2709, allocations: 42.58 kB / 418.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.964e-06/0.2709, allocations: 0 / 418.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.005281/0.2762, allocations: 1.532 MB / 419.6 MB, free: 7.555 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.2763, allocations: 67.28 kB / 419.7 MB, free: 7.477 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002669/0.2766, allocations: 236.9 kB / 419.9 MB, free: 7.238 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.2766, allocations: 33.7 kB / 420 MB, free: 7.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.2767, allocations: 180.2 kB / 420.2 MB, free: 7.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.611e-05/0.2768, allocations: 122.2 kB / 420.3 MB, free: 6.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.2769, allocations: 62.06 kB / 420.3 MB, free: 6.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.2771, allocations: 338.8 kB / 420.7 MB, free: 6.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/0.2773, allocations: 108.7 kB / 420.8 MB, free: 6.383 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/0.2776, allocations: 153.7 kB / 420.9 MB, free: 6.219 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005174/0.2781, allocations: 291.6 kB / 421.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2782, allocations: 3.938 kB / 421.2 MB, free: 5.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001633/0.2798, allocations: 0.5372 MB / 421.7 MB, free: 5.363 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.2798, allocations: 4 kB / 421.8 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.2798, allocations: 4 kB / 421.8 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/0.2812, allocations: 241.5 kB / 422 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002892/0.2815, allocations: 55.91 kB / 422 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004898/0.2864, allocations: 4.138 MB / 426.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.2867, allocations: 8 kB / 426.2 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.839e-05/0.2867, allocations: 12 kB / 426.2 MB, free: 0.625 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001891/0.2869, allocations: 153.7 kB / 426.4 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.58e-05/0.287, allocations: 31.61 kB / 426.4 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.479e-05/0.2871, allocations: 34.97 kB / 426.4 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.2871, allocations: 8.047 kB / 426.4 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.2871, allocations: 8 kB / 426.4 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.2872, allocations: 3.984 kB / 426.4 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002177/0.2893, allocations: 0.9891 MB / 427.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2894, allocations: 0 / 427.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002098/0.2896, allocations: 35.98 kB / 427.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.2908, allocations: 245.5 kB / 427.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.2908, allocations: 4 kB / 427.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004449/0.2953, allocations: 4.13 MB / 431.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.2953, allocations: 8.047 kB / 431.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.2972, allocations: 0.7179 MB / 432.6 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.406e-05/0.2973, allocations: 104.8 kB / 432.7 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.483e-05/0.2973, allocations: 7.938 kB / 432.7 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.2976, allocations: 16.06 kB / 432.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.71e-05/0.2977, allocations: 31.89 kB / 432.7 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.2977, allocations: 12 kB / 432.7 MB, free: 9.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001681/0.2979, allocations: 172.5 kB / 432.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2979, allocations: 0 / 432.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006012/0.2985, allocations: 100 kB / 433 MB, free: 9.426 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000151/0.2986, allocations: 110.6 kB / 433.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009813/0.2996, allocations: 0.5711 MB / 433.7 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.2996, allocations: 4.25 kB / 433.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005616/0.3002, allocations: 425 kB / 434.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.3006, allocations: 28.42 kB / 434.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.302, allocations: 0.7308 MB / 434.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.3024, allocations: 0.7838 MB / 435.6 MB, free: 6.656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.289e-05/0.3025, allocations: 19.44 kB / 435.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3025, allocations: 0 / 435.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of Templates: time 0.008148/0.3106, allocations: 6.119 MB / 441.8 MB, free: 0.5156 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches