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.001622/0.001622, allocations: 109.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002409/0.002409, allocations: 210.8 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.567/2.567, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00227/0.00227, allocations: 63.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4905/0.4928, allocations: 50.54 MB / 409.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.007353/0.5002, allocations: 2.773 MB / 412.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00326/0.5035, allocations: 0.9423 MB / 413.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003831/0.5039, allocations: 4 kB / 413.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004413/0.5044, allocations: 63.44 kB / 413.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006529/0.5051, allocations: 107.2 kB / 413.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006522/0.5058, allocations: 111.8 kB / 413.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007765/0.5066, allocations: 354.6 kB / 414.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003053/0.5069, allocations: 105.7 kB / 414.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004888/0.5074, allocations: 147.4 kB / 414.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004848/0.5079, allocations: 155.2 kB / 414.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.5081, allocations: 35.94 kB / 414.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.5082, allocations: 35.98 kB / 414.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.056e-05/0.5083, allocations: 67.77 kB / 414.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002826/0.5086, allocations: 155.2 kB / 414.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006669/0.5093, allocations: 367.8 kB / 415.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.5093, allocations: 0 / 415.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5094, allocations: 0 / 415.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.532e-05/0.5094, allocations: 0 / 415.3 MB, free: 12.16 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.001727/0.5111, allocations: 0.6081 MB / 415.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/0.5112, allocations: 8.031 kB / 415.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002949/0.5115, allocations: 48.55 kB / 416 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006095/0.5121, allocations: 272.5 kB / 416.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.197e-05/0.5122, allocations: 24.94 kB / 416.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.761e-05/0.5123, allocations: 28.36 kB / 416.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007723/0.5131, allocations: 245.2 kB / 416.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.5131, allocations: 3.984 kB / 416.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.704e-05/0.5132, allocations: 12 kB / 416.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.5132, allocations: 4 kB / 416.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009162/0.5141, allocations: 218.1 kB / 416.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007282/0.5214, allocations: 1.001 MB / 417.8 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008395/0.5223, allocations: 206.5 kB / 418 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004979/0.5228, allocations: 104.8 kB / 418.1 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.564e-05/0.5229, allocations: 7.984 kB / 418.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.267e-05/0.523, allocations: 38.56 kB / 418.1 MB, free: 9.145 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 4.137e-06/0.523, allocations: 4 kB / 418.1 MB, free: 9.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.00955/0.5326, allocations: 1.541 MB / 419.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/0.5327, allocations: 59.34 kB / 419.7 MB, free: 7.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004492/0.5332, allocations: 236.9 kB / 419.9 MB, free: 7.219 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.734e-05/0.5333, allocations: 33.7 kB / 420 MB, free: 7.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001923/0.5335, allocations: 176.2 kB / 420.2 MB, free: 7.004 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.5337, allocations: 126.2 kB / 420.3 MB, free: 6.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002815/0.534, allocations: 62.08 kB / 420.3 MB, free: 6.809 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002312/0.5342, allocations: 342.8 kB / 420.7 MB, free: 6.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004709/0.5347, allocations: 108.7 kB / 420.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005647/0.5353, allocations: 153.7 kB / 420.9 MB, free: 6.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.5363, allocations: 287.6 kB / 421.2 MB, free: 5.898 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.5364, allocations: 3.938 kB / 421.2 MB, free: 5.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002883/0.5393, allocations: 0.5372 MB / 421.7 MB, free: 5.344 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.264e-05/0.5393, allocations: 8 kB / 421.8 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.5393, allocations: 0 / 421.8 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002219/0.5416, allocations: 245.4 kB / 422 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005474/0.5422, allocations: 59.97 kB / 422.1 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01253/0.5547, allocations: 4.134 MB / 426.2 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005129/0.5553, allocations: 15.98 kB / 426.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.811e-05/0.5554, allocations: 8 kB / 426.2 MB, free: 0.5977 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.0003407/0.5557, allocations: 153.7 kB / 426.4 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.5559, allocations: 31.69 kB / 426.4 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.556, allocations: 42.95 kB / 426.4 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.5561, allocations: 7.984 kB / 426.4 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/0.5561, allocations: 4 kB / 426.4 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.5561, allocations: 0 / 426.4 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003956/0.5601, allocations: 0.9852 MB / 427.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/0.5601, allocations: 4.062 kB / 427.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00041/0.5605, allocations: 39.97 kB / 427.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002178/0.5627, allocations: 237.4 kB / 427.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/0.5628, allocations: 11.98 kB / 427.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0122/0.575, allocations: 4.126 MB / 431.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.271e-06/0.5751, allocations: 0 / 431.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/0.5782, allocations: 0.7218 MB / 432.6 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.5784, allocations: 104.8 kB / 432.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.121e-05/0.5785, allocations: 7.938 kB / 432.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004047/0.5789, allocations: 15.98 kB / 432.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.5792, allocations: 27.95 kB / 432.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-05/0.5792, allocations: 12 kB / 432.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003021/0.5795, allocations: 168.5 kB / 432.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5796, allocations: 0 / 432.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00115/0.5807, allocations: 108.1 kB / 433 MB, free: 9.402 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.0002217/0.581, allocations: 103.2 kB / 433.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.5827, allocations: 0.5711 MB / 433.7 MB, free: 8.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.5828, allocations: 3.938 kB / 433.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/0.5838, allocations: 429 kB / 434.1 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.0005811/0.5844, allocations: 25.12 kB / 434.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/0.5868, allocations: 0.7207 MB / 434.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006047/0.5874, allocations: 0.7799 MB / 435.6 MB, free: 6.648 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.5876, allocations: 27.42 kB / 435.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5876, allocations: 0 / 435.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of Templates: time 0.01565/0.6033, allocations: 6.165 MB / 441.8 MB, free: 464 kB / 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/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_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches