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.001519/0.00152, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001871/0.001871, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2539, allocations: 50.55 MB / 409.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.003837/0.2578, allocations: 2.764 MB / 412 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.2593, allocations: 0.9462 MB / 413 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.2595, allocations: 8 kB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002522/0.2598, allocations: 55.45 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002652/0.2601, allocations: 111.2 kB / 413.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.2604, allocations: 115.8 kB / 413.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000334/0.2607, allocations: 354.6 kB / 413.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.2609, allocations: 105.7 kB / 413.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.2611, allocations: 147.4 kB / 413.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001863/0.2613, allocations: 151.3 kB / 414 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.269e-05/0.2614, allocations: 32 kB / 414 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.776e-05/0.2615, allocations: 28 kB / 414 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.303e-05/0.2615, allocations: 67.77 kB / 414.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.2617, allocations: 163.1 kB / 414.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003627/0.262, allocations: 367.8 kB / 414.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.262, allocations: 0 / 414.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2621, allocations: 0 / 414.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.812e-06/0.2621, allocations: 3.938 kB / 414.6 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.0009721/0.263, allocations: 0.6159 MB / 415.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.2631, allocations: 8.031 kB / 415.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.2633, allocations: 44.55 kB / 415.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003416/0.2636, allocations: 264.6 kB / 415.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.2637, allocations: 24.88 kB / 415.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.501e-05/0.2637, allocations: 24.38 kB / 415.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004479/0.2642, allocations: 253.2 kB / 415.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.2642, allocations: 0 / 415.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/0.2642, allocations: 12 kB / 415.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.2642, allocations: 4 kB / 415.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004309/0.2647, allocations: 210.1 kB / 416.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.2661, allocations: 1.009 MB / 417.1 MB, free: 9.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000438/0.2666, allocations: 202.5 kB / 417.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002415/0.2668, allocations: 108.8 kB / 417.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.176e-05/0.2669, allocations: 8.062 kB / 417.4 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.2669, allocations: 42.59 kB / 417.4 MB, free: 9.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.353e-06/0.2669, allocations: 0 / 417.4 MB, free: 9.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.005034/0.272, allocations: 1.537 MB / 419 MB, free: 7.551 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.272, allocations: 63.28 kB / 419 MB, free: 7.477 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002272/0.2723, allocations: 236.9 kB / 419.3 MB, free: 7.238 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.2723, allocations: 37.7 kB / 419.3 MB, free: 7.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.2724, allocations: 176.2 kB / 419.5 MB, free: 7.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.775e-05/0.2725, allocations: 126.2 kB / 419.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.2726, allocations: 66.06 kB / 419.7 MB, free: 6.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.2727, allocations: 334.8 kB / 420 MB, free: 6.484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002374/0.273, allocations: 108.7 kB / 420.1 MB, free: 6.379 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002678/0.2733, allocations: 157.7 kB / 420.2 MB, free: 6.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004923/0.2738, allocations: 291.6 kB / 420.5 MB, free: 5.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2738, allocations: 0 / 420.5 MB, free: 5.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001553/0.2753, allocations: 0.5372 MB / 421.1 MB, free: 5.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.2754, allocations: 4 kB / 421.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.2754, allocations: 0 / 421.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001264/0.2766, allocations: 249.4 kB / 421.3 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.2769, allocations: 55.91 kB / 421.4 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00468/0.2816, allocations: 4.13 MB / 425.5 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.2819, allocations: 11.98 kB / 425.5 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.2819, allocations: 16.34 kB / 425.5 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.0001879/0.2821, allocations: 149.7 kB / 425.7 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.676e-05/0.2822, allocations: 27.62 kB / 425.7 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.504e-05/0.2823, allocations: 46.89 kB / 425.7 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.2823, allocations: 4 kB / 425.7 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.2823, allocations: 0 / 425.7 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.2823, allocations: 7.984 kB / 425.8 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/0.2844, allocations: 0.9853 MB / 426.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2845, allocations: 0 / 426.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002008/0.2847, allocations: 43.97 kB / 426.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001114/0.2858, allocations: 245.4 kB / 427 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.2858, allocations: 7.984 kB / 427 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004318/0.2901, allocations: 4.126 MB / 431.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2902, allocations: 288 / 431.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.2919, allocations: 0.7219 MB / 431.9 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.037e-05/0.292, allocations: 100.8 kB / 432 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.2921, allocations: 15.86 kB / 432 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.2923, allocations: 12 kB / 432 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.516e-05/0.2924, allocations: 35.95 kB / 432 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.2924, allocations: 12 kB / 432.1 MB, free: 9.684 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001617/0.2926, allocations: 172.5 kB / 432.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2926, allocations: 0 / 432.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005978/0.2932, allocations: 100 kB / 432.3 MB, free: 9.418 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.000136/0.2933, allocations: 99.25 kB / 432.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000996/0.2943, allocations: 0.575 MB / 433 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2944, allocations: 0 / 433 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005541/0.2949, allocations: 437.4 kB / 433.4 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.2953, allocations: 27.44 kB / 433.4 MB, free: 8.234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.2965, allocations: 0.7033 MB / 434.1 MB, free: 7.492 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.2969, allocations: 0.7799 MB / 434.9 MB, free: 6.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.384e-05/0.297, allocations: 22.28 kB / 434.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.706e-05/0.297, allocations: 15.44 kB / 435 MB, free: 6.645 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.297, allocations: 4 kB / 435 MB, free: 6.641 MB / 350.1 MB Notification: Performance of Templates: time 0.009594/0.3066, allocations: 5.511 MB / 440.5 MB, free: 1.141 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