Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.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_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 113.8 kB / 17.74 MB, free: 5.336 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.001177/0.001177, allocations: 189.6 kB / 18.67 MB, free: 4.41 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.303/1.303, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 51.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2596, allocations: 49.44 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.004211/0.2639, allocations: 2.741 MB / 404.1 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.2653, allocations: 0.8606 MB / 405 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.2654, allocations: 11.94 kB / 405 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002497/0.2657, allocations: 59.48 kB / 405.1 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002635/0.2659, allocations: 99.19 kB / 405.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002383/0.2662, allocations: 99.75 kB / 405.3 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003422/0.2666, allocations: 354.7 kB / 405.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002013/0.2668, allocations: 109.7 kB / 405.7 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001947/0.267, allocations: 131.5 kB / 405.9 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002209/0.2672, allocations: 163.2 kB / 406 MB, free: 4.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.077e-05/0.2673, allocations: 28 kB / 406 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.957e-05/0.2673, allocations: 28 kB / 406.1 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.279e-05/0.2674, allocations: 63.77 kB / 406.1 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.2675, allocations: 155.3 kB / 406.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000336/0.2679, allocations: 363.8 kB / 406.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2679, allocations: 0 / 406.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2679, allocations: 0 / 406.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.2679, allocations: 3.938 kB / 406.6 MB, free: 3.605 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009934/0.2689, allocations: 0.6003 MB / 407.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.2689, allocations: 15.89 kB / 407.3 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.284e-05/0.269, allocations: 32.56 kB / 407.3 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.2694, allocations: 260.9 kB / 407.5 MB, free: 2.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.2694, allocations: 20.94 kB / 407.6 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.757e-05/0.2695, allocations: 24.38 kB / 407.6 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004704/0.2699, allocations: 253.2 kB / 407.8 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.27, allocations: 4 kB / 407.8 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.933e-05/0.27, allocations: 8 kB / 407.8 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.27, allocations: 8 kB / 407.9 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004413/0.2704, allocations: 214.1 kB / 408.1 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.272, allocations: 1.001 MB / 409.1 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004206/0.2725, allocations: 213.5 kB / 409.3 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002403/0.2727, allocations: 108.8 kB / 409.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.2727, allocations: 4 kB / 409.4 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.2728, allocations: 38.56 kB / 409.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.332e-06/0.2728, allocations: 0 / 409.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.005075/0.2779, allocations: 1.537 MB / 411 MB, free: 15.01 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.2779, allocations: 59.2 kB / 411 MB, free: 14.94 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002388/0.2782, allocations: 225 kB / 411.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.209e-05/0.2782, allocations: 33.7 kB / 411.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.2784, allocations: 188.1 kB / 411.4 MB, free: 14.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.689e-05/0.2784, allocations: 114.2 kB / 411.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.2786, allocations: 66.06 kB / 411.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2787, allocations: 338.8 kB / 412 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.2789, allocations: 108.7 kB / 412.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002867/0.2792, allocations: 157.5 kB / 412.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004935/0.2797, allocations: 276 kB / 412.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2798, allocations: 3.938 kB / 412.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001501/0.2813, allocations: 0.541 MB / 413 MB, free: 12.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.2813, allocations: 7.984 kB / 413 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.2813, allocations: 0 / 413 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.2825, allocations: 249.4 kB / 413.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002637/0.2828, allocations: 59.91 kB / 413.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004674/0.2875, allocations: 4.13 MB / 417.5 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.2877, allocations: 15.98 kB / 417.5 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.2878, allocations: 8.344 kB / 417.5 MB, free: 8.094 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.0001939/0.288, allocations: 154.4 kB / 417.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.54e-05/0.288, allocations: 27.72 kB / 417.7 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.2881, allocations: 46.89 kB / 417.7 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.187e-06/0.2881, allocations: 4 kB / 417.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/0.2882, allocations: 0 / 417.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.2882, allocations: 3.984 kB / 417.7 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00204/0.2902, allocations: 0.986 MB / 418.7 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.2902, allocations: 0 / 418.7 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000209/0.2904, allocations: 43.97 kB / 418.8 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001207/0.2917, allocations: 237.5 kB / 419 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.2917, allocations: 15.98 kB / 419 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004494/0.2962, allocations: 4.114 MB / 423.1 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2962, allocations: 288 / 423.1 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.298, allocations: 0.7365 MB / 423.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.557e-05/0.2981, allocations: 96.86 kB / 423.9 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/0.2981, allocations: 19.86 kB / 424 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.2983, allocations: 12 kB / 424 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.826e-05/0.2984, allocations: 32.02 kB / 424 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.2985, allocations: 8 kB / 424 MB, free: 1.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001365/0.2986, allocations: 168.5 kB / 424.2 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.463e-06/0.2986, allocations: 0 / 424.2 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005672/0.2992, allocations: 103.9 kB / 424.3 MB, free: 0.8906 MB / 334.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.0001422/0.2993, allocations: 111.1 kB / 424.4 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009301/0.3003, allocations: 0.5634 MB / 425 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3003, allocations: 0 / 425 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005505/0.3008, allocations: 429.4 kB / 425.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.3012, allocations: 25.94 kB / 425.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.3024, allocations: 0.7167 MB / 426.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.3028, allocations: 0.7799 MB / 426.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.321e-05/0.3029, allocations: 19.44 kB / 426.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3029, allocations: 0 / 426.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of Templates: time 0.008342/0.3112, allocations: 6.031 MB / 432.9 MB, free: 8.094 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches