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.001059/0.001059, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001075/0.001075, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.249, allocations: 50.54 MB / 409.2 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.003585/0.2527, allocations: 2.772 MB / 412 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.254, allocations: 0.9462 MB / 413 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.2542, allocations: 4 kB / 413 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002231/0.2544, allocations: 67.42 kB / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002527/0.2547, allocations: 107.2 kB / 413.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.2549, allocations: 111.8 kB / 413.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003199/0.2553, allocations: 354.6 kB / 413.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.2555, allocations: 113.7 kB / 413.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.2557, allocations: 139.4 kB / 413.8 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.2559, allocations: 151.3 kB / 414 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.389e-05/0.256, allocations: 32 kB / 414 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.998e-05/0.256, allocations: 36 kB / 414 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.461e-05/0.2561, allocations: 67.7 kB / 414.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.2562, allocations: 155.2 kB / 414.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003589/0.2566, allocations: 374.3 kB / 414.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2566, allocations: 0 / 414.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.2566, allocations: 4 kB / 414.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.2566, allocations: 0 / 414.6 MB, free: 12.19 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.0008975/0.2575, allocations: 0.6116 MB / 415.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.2576, allocations: 8.031 kB / 415.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.2577, allocations: 44.73 kB / 415.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/0.2581, allocations: 272.7 kB / 415.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.2581, allocations: 24.94 kB / 415.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.128e-05/0.2581, allocations: 24.38 kB / 415.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004582/0.2586, allocations: 253.2 kB / 415.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.2586, allocations: 0 / 415.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.746e-05/0.2587, allocations: 12 kB / 415.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.2587, allocations: 8 kB / 415.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004223/0.2591, allocations: 210.1 kB / 416.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.2606, allocations: 1.006 MB / 417.1 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003986/0.261, allocations: 205.3 kB / 417.3 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000241/0.2612, allocations: 116.8 kB / 417.4 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.2613, allocations: 0 / 417.4 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.2613, allocations: 38.56 kB / 417.4 MB, free: 9.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.154e-06/0.2613, allocations: 3.984 kB / 417.4 MB, free: 9.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.004787/0.2661, allocations: 1.548 MB / 419 MB, free: 7.551 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.2662, allocations: 55.34 kB / 419 MB, free: 7.484 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.2664, allocations: 237 kB / 419.3 MB, free: 7.246 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.2664, allocations: 37.7 kB / 419.3 MB, free: 7.203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.2666, allocations: 184.5 kB / 419.5 MB, free: 7.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.29e-05/0.2666, allocations: 122.9 kB / 419.6 MB, free: 6.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.2668, allocations: 62.08 kB / 419.7 MB, free: 6.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.2669, allocations: 338.8 kB / 420 MB, free: 6.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.2671, allocations: 112.7 kB / 420.1 MB, free: 6.379 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.2674, allocations: 153.7 kB / 420.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005005/0.2679, allocations: 279.6 kB / 420.5 MB, free: 5.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2679, allocations: 4 kB / 420.5 MB, free: 5.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001473/0.2694, allocations: 0.5413 MB / 421.1 MB, free: 5.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2694, allocations: 4 kB / 421.1 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.2694, allocations: 4 kB / 421.1 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.2706, allocations: 237.5 kB / 421.3 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.2709, allocations: 63.89 kB / 421.4 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004538/0.2754, allocations: 4.138 MB / 425.5 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.2756, allocations: 12.06 kB / 425.5 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.6e-05/0.2757, allocations: 15.98 kB / 425.6 MB, free: 0.6172 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.0001667/0.2758, allocations: 149.8 kB / 425.7 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.618e-05/0.2759, allocations: 23.86 kB / 425.7 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.542e-05/0.276, allocations: 42.95 kB / 425.8 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.276, allocations: 8.219 kB / 425.8 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.276, allocations: 7.984 kB / 425.8 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.276, allocations: 0 / 425.8 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.278, allocations: 1.001 MB / 426.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2781, allocations: 0 / 426.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.2783, allocations: 39.97 kB / 426.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.2794, allocations: 241.5 kB / 427.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.809e-05/0.2794, allocations: 8 kB / 427.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004143/0.2836, allocations: 4.122 MB / 431.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.2836, allocations: 3.984 kB / 431.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/0.2852, allocations: 0.7259 MB / 431.9 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-05/0.2853, allocations: 105 kB / 432 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.2854, allocations: 7.938 kB / 432 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002148/0.2856, allocations: 16.27 kB / 432 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.879e-05/0.2857, allocations: 32.02 kB / 432.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.2857, allocations: 12 kB / 432.1 MB, free: 9.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001487/0.2859, allocations: 172.4 kB / 432.3 MB, free: 9.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2859, allocations: 0 / 432.3 MB, free: 9.512 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005734/0.2864, allocations: 104 kB / 432.4 MB, free: 9.41 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.0001277/0.2866, allocations: 110.7 kB / 432.5 MB, free: 9.297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009435/0.2875, allocations: 0.5711 MB / 433 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2875, allocations: 0 / 433 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005359/0.2881, allocations: 437.4 kB / 433.5 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.2884, allocations: 24.42 kB / 433.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.2896, allocations: 0.7064 MB / 434.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.2899, allocations: 0.7801 MB / 435 MB, free: 6.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.319e-05/0.29, allocations: 22.28 kB / 435 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.065e-05/0.2901, allocations: 23.42 kB / 435 MB, free: 6.621 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2901, allocations: 0 / 435 MB, free: 6.621 MB / 350.1 MB Notification: Performance of Templates: time 0.009258/0.2994, allocations: 5.515 MB / 440.5 MB, free: 1.117 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/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_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches