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.001548/0.001548, allocations: 114.3 kB / 17.07 MB, free: 6 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.001759/0.001759, allocations: 190.9 kB / 18 MB, free: 5.082 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.364/1.364, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009961/0.0009962, allocations: 51.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2422, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.003588/0.2458, allocations: 2.751 MB / 403.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.2471, allocations: 0.8645 MB / 404.3 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.2472, allocations: 4 kB / 404.3 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002104/0.2474, allocations: 59.44 kB / 404.4 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.2477, allocations: 107.2 kB / 404.5 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002236/0.2479, allocations: 95.81 kB / 404.6 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003322/0.2483, allocations: 350.7 kB / 404.9 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.2485, allocations: 113.7 kB / 405 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.2486, allocations: 131.5 kB / 405.2 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.2488, allocations: 163.2 kB / 405.3 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.175e-05/0.2489, allocations: 28 kB / 405.4 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.37e-05/0.2489, allocations: 32 kB / 405.4 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.521e-05/0.249, allocations: 67.77 kB / 405.5 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.2491, allocations: 147.3 kB / 405.6 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003121/0.2494, allocations: 363.8 kB / 406 MB, free: 3.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.2494, allocations: 0 / 406 MB, free: 3.605 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2494, allocations: 0 / 406 MB, free: 3.605 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.2495, allocations: 3.984 kB / 406 MB, free: 3.602 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.0009271/0.2504, allocations: 0.5964 MB / 406.6 MB, free: 2.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2504, allocations: 15.88 kB / 406.6 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.845e-05/0.2505, allocations: 32.56 kB / 406.6 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.2508, allocations: 268.9 kB / 406.9 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.2509, allocations: 16.94 kB / 406.9 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.239e-05/0.2509, allocations: 32.38 kB / 406.9 MB, free: 2.562 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004567/0.2514, allocations: 249.2 kB / 407.2 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.2514, allocations: 0 / 407.2 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.752e-05/0.2514, allocations: 12 kB / 407.2 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.2514, allocations: 4 kB / 407.2 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004371/0.2519, allocations: 214.1 kB / 407.4 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.2533, allocations: 0.9975 MB / 408.4 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004051/0.2538, allocations: 214.6 kB / 408.6 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.254, allocations: 108.8 kB / 408.7 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.2541, allocations: 4 kB / 408.7 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.2541, allocations: 30.56 kB / 408.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.2541, allocations: 0 / 408.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.005004/0.2591, allocations: 1.541 MB / 410.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.2592, allocations: 63.2 kB / 410.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.2594, allocations: 229 kB / 410.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.2594, allocations: 29.7 kB / 410.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.598e-05/0.2595, allocations: 180.2 kB / 410.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.504e-05/0.2596, allocations: 122.2 kB / 410.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.2597, allocations: 62.08 kB / 410.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.2598, allocations: 342.8 kB / 411.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002394/0.2601, allocations: 104.7 kB / 411.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002863/0.2604, allocations: 165.5 kB / 411.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000489/0.2609, allocations: 275.9 kB / 411.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.2609, allocations: 4 kB / 411.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001541/0.2624, allocations: 0.537 MB / 412.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.2625, allocations: 4 kB / 412.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.2625, allocations: 8 kB / 412.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001249/0.2637, allocations: 237.4 kB / 412.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.264, allocations: 55.97 kB / 412.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004758/0.2688, allocations: 4.149 MB / 416.8 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/0.2691, allocations: 8 kB / 416.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.2691, allocations: 12.23 kB / 416.8 MB, free: 8.086 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.0001785/0.2693, allocations: 160 kB / 417 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.385e-05/0.2693, allocations: 23.72 kB / 417 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.17e-05/0.2694, allocations: 39.03 kB / 417 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.2695, allocations: 4 kB / 417 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.2695, allocations: 7.984 kB / 417 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.2695, allocations: 0 / 417 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002005/0.2715, allocations: 0.986 MB / 418 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.2715, allocations: 4 kB / 418 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002069/0.2717, allocations: 40.05 kB / 418.1 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.2729, allocations: 245.4 kB / 418.3 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.2729, allocations: 4 kB / 418.3 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004401/0.2773, allocations: 4.126 MB / 422.4 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2774, allocations: 0 / 422.4 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.2792, allocations: 0.7365 MB / 423.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.551e-05/0.2793, allocations: 100.9 kB / 423.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.075e-05/0.2794, allocations: 11.94 kB / 423.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.2796, allocations: 12 kB / 423.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.642e-05/0.2797, allocations: 27.95 kB / 423.3 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.2797, allocations: 12 kB / 423.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001453/0.2799, allocations: 164.5 kB / 423.5 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.495e-06/0.2799, allocations: 0 / 423.5 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005867/0.2805, allocations: 107.9 kB / 423.6 MB, free: 0.8828 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.0001148/0.2806, allocations: 111.1 kB / 423.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009451/0.2815, allocations: 0.5634 MB / 424.3 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2815, allocations: 0 / 424.3 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005899/0.2821, allocations: 429.1 kB / 424.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.2825, allocations: 20.81 kB / 424.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.2838, allocations: 0.6916 MB / 425.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.2841, allocations: 0.776 MB / 426.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.058e-05/0.2842, allocations: 18.3 kB / 426.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.065e-05/0.2843, allocations: 23.42 kB / 426.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2843, allocations: 0 / 426.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of Templates: time 0.009069/0.2934, allocations: 5.503 MB / 431.7 MB, free: 8.648 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