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.001417/0.001417, allocations: 108.3 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.001549/0.001549, allocations: 192 kB / 17.99 MB, free: 5.109 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.33/1.33, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009979/0.0009979, allocations: 51.92 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2955, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.006664/0.3022, allocations: 2.741 MB / 403.5 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.3042, allocations: 0.8606 MB / 404.3 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003442/0.3045, allocations: 11.88 kB / 404.3 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004038/0.305, allocations: 59.5 kB / 404.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006088/0.3057, allocations: 103.2 kB / 404.5 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004805/0.3062, allocations: 103.8 kB / 404.6 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006001/0.3068, allocations: 346.7 kB / 404.9 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000299/0.3071, allocations: 117.5 kB / 405 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003107/0.3074, allocations: 131.5 kB / 405.2 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003092/0.3077, allocations: 155.2 kB / 405.3 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.111e-05/0.3078, allocations: 32 kB / 405.4 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.475e-05/0.3079, allocations: 28 kB / 405.4 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.072e-05/0.308, allocations: 67.77 kB / 405.4 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.3082, allocations: 151.3 kB / 405.6 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005593/0.3088, allocations: 359.8 kB / 405.9 MB, free: 3.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.3088, allocations: 7.984 kB / 406 MB, free: 3.637 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3088, allocations: 0 / 406 MB, free: 3.637 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.3088, allocations: 0 / 406 MB, free: 3.637 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.001336/0.3102, allocations: 0.6003 MB / 406.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.3102, allocations: 12.03 kB / 406.6 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.3103, allocations: 36.55 kB / 406.6 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004735/0.3108, allocations: 260.9 kB / 406.9 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.543e-05/0.3109, allocations: 24.94 kB / 406.9 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.331e-05/0.3109, allocations: 28.38 kB / 406.9 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006343/0.3116, allocations: 249.2 kB / 407.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.3116, allocations: 0 / 407.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.816e-05/0.3116, allocations: 12 kB / 407.2 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.3117, allocations: 12 kB / 407.2 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006224/0.3123, allocations: 214.1 kB / 407.4 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.3144, allocations: 0.9936 MB / 408.4 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000546/0.315, allocations: 210.5 kB / 408.6 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003107/0.3153, allocations: 108.8 kB / 408.7 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.223e-05/0.3154, allocations: 4 kB / 408.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.3154, allocations: 38.56 kB / 408.7 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.044e-06/0.3154, allocations: 0 / 408.7 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.006651/0.3221, allocations: 1.536 MB / 410.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.3221, allocations: 63.2 kB / 410.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003025/0.3225, allocations: 229 kB / 410.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.707e-05/0.3225, allocations: 37.64 kB / 410.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.3227, allocations: 176.2 kB / 410.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.3228, allocations: 130.2 kB / 410.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.323, allocations: 62.08 kB / 411 MB, free: 14.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3231, allocations: 334.8 kB / 411.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003191/0.3234, allocations: 104.7 kB / 411.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003835/0.3238, allocations: 165.5 kB / 411.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006918/0.3245, allocations: 279.9 kB / 411.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.3245, allocations: 0 / 411.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002064/0.3266, allocations: 0.537 MB / 412.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.3267, allocations: 8 kB / 412.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.3267, allocations: 0 / 412.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001543/0.3282, allocations: 245.4 kB / 412.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003588/0.3286, allocations: 63.89 kB / 412.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006836/0.3354, allocations: 4.133 MB / 416.8 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003056/0.3358, allocations: 8.031 kB / 416.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.988e-05/0.3358, allocations: 16 kB / 416.8 MB, free: 8.117 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.0001842/0.336, allocations: 162.4 kB / 417 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.525e-05/0.3361, allocations: 23.72 kB / 417 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.875e-05/0.3362, allocations: 38.97 kB / 417 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3362, allocations: 7.984 kB / 417 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.3362, allocations: 0 / 417 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3362, allocations: 0 / 417 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002086/0.3383, allocations: 0.9938 MB / 418 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.3383, allocations: 0 / 418 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002203/0.3385, allocations: 39.92 kB / 418.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/0.3397, allocations: 241.5 kB / 418.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.3397, allocations: 8 kB / 418.3 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004454/0.3442, allocations: 4.111 MB / 422.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3442, allocations: 0 / 422.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00172/0.3459, allocations: 0.7441 MB / 423.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.852e-05/0.346, allocations: 100.8 kB / 423.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.3461, allocations: 7.938 kB / 423.3 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.3463, allocations: 15.98 kB / 423.3 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.534e-05/0.3464, allocations: 23.97 kB / 423.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.3464, allocations: 12 kB / 423.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001447/0.3465, allocations: 168.5 kB / 423.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.333e-06/0.3466, allocations: 0 / 423.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005678/0.3471, allocations: 107.9 kB / 423.6 MB, free: 0.918 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.0001357/0.3473, allocations: 107.2 kB / 423.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009774/0.3483, allocations: 0.5634 MB / 424.3 MB, free: 220 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3483, allocations: 4 kB / 424.3 MB, free: 216 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005725/0.3488, allocations: 429.4 kB / 424.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003434/0.3492, allocations: 28.08 kB / 424.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.3505, allocations: 0.6877 MB / 425.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.3508, allocations: 0.776 MB / 426.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.647e-05/0.3509, allocations: 26.23 kB / 426.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.817e-05/0.351, allocations: 19.42 kB / 426.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.351, allocations: 0 / 426.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of Templates: time 0.009401/0.3604, allocations: 5.5 MB / 431.7 MB, free: 8.68 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins/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