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.001584/0.001584, allocations: 107.5 kB / 17.16 MB, free: 6.082 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.00207/0.00207, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.126/2.126, allocations: 222.9 MB / 241.8 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 43.81 kB / 300.6 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1617, allocations: 49.45 MB / 350.1 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.00525/0.1671, allocations: 2.772 MB / 352.8 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.169, allocations: 0.8607 MB / 353.7 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003724/0.1694, allocations: 4 kB / 353.7 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003867/0.1699, allocations: 47.69 kB / 353.7 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005373/0.1704, allocations: 91.36 kB / 353.8 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003717/0.1708, allocations: 83.92 kB / 353.9 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005776/0.1714, allocations: 334.6 kB / 354.2 MB, free: 432 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002229/0.1716, allocations: 98.22 kB / 354.3 MB, free: 332 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002423/0.1719, allocations: 127.5 kB / 354.5 MB, free: 204 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002205/0.1721, allocations: 139.3 kB / 354.6 MB, free: 64 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.588e-05/0.1722, allocations: 16 kB / 354.6 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.975e-05/0.1722, allocations: 24 kB / 354.6 MB, free: 24 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.333e-05/0.1723, allocations: 59.83 kB / 354.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.1725, allocations: 155 kB / 354.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002752/0.1728, allocations: 263.6 kB / 355.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.1728, allocations: 4 kB / 355.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1728, allocations: 0 / 355.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.1728, allocations: 3.938 kB / 355.1 MB, free: 15.55 MB / 302.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.001116/0.174, allocations: 0.6026 MB / 355.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.174, allocations: 8.031 kB / 355.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.764e-05/0.1741, allocations: 32.56 kB / 355.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003235/0.1744, allocations: 260.3 kB / 356 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.1745, allocations: 20.88 kB / 356 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.006e-05/0.1745, allocations: 28.38 kB / 356.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005195/0.1751, allocations: 253.2 kB / 356.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1751, allocations: 0 / 356.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.233e-05/0.1751, allocations: 12 kB / 356.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.1751, allocations: 4 kB / 356.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004608/0.1756, allocations: 210.1 kB / 356.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.1773, allocations: 1.009 MB / 357.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004594/0.1778, allocations: 199.4 kB / 357.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003317/0.1781, allocations: 112.8 kB / 357.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.885e-05/0.1782, allocations: 4 kB / 357.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.1782, allocations: 39 kB / 357.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.1782, allocations: 0 / 357.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.005606/0.1838, allocations: 1.542 MB / 359.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.1839, allocations: 59.34 kB / 359.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.1842, allocations: 232.9 kB / 359.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/0.1842, allocations: 33.7 kB / 359.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000194/0.1844, allocations: 184.1 kB / 359.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.1846, allocations: 114.3 kB / 360 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.1848, allocations: 69.97 kB / 360.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.1849, allocations: 334.8 kB / 360.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002972/0.1852, allocations: 108.7 kB / 360.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003422/0.1856, allocations: 165.5 kB / 360.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006334/0.1862, allocations: 276 kB / 361 MB, free: 9.344 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1863, allocations: 4 kB / 361 MB, free: 9.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001762/0.188, allocations: 0.5295 MB / 361.5 MB, free: 8.797 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.1881, allocations: 11.98 kB / 361.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.1881, allocations: 0 / 361.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.1896, allocations: 241.4 kB / 361.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003175/0.1899, allocations: 59.91 kB / 361.8 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006007/0.1959, allocations: 3.734 MB / 365.5 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003584/0.1963, allocations: 16.02 kB / 365.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.467e-05/0.1964, allocations: 12 kB / 365.6 MB, free: 4.457 MB / 302.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.0002554/0.1966, allocations: 157 kB / 365.7 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.812e-05/0.1967, allocations: 31.62 kB / 365.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.784e-05/0.1968, allocations: 38.95 kB / 365.8 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.1969, allocations: 8.219 kB / 365.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/0.1969, allocations: 7.938 kB / 365.8 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.1969, allocations: 3.984 kB / 365.8 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002607/0.1995, allocations: 0.9898 MB / 366.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.1995, allocations: 0 / 366.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003453/0.1999, allocations: 43.91 kB / 366.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001659/0.2015, allocations: 241.5 kB / 367.1 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.23e-05/0.2016, allocations: 11.98 kB / 367.1 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3165/0.5181, allocations: 3.696 MB / 370.8 MB, free: 23.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.5182, allocations: 4.938 kB / 370.8 MB, free: 23.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002838/0.521, allocations: 0.7242 MB / 371.5 MB, free: 23.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.5212, allocations: 102 kB / 371.6 MB, free: 23.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.466e-05/0.5213, allocations: 7.578 kB / 371.6 MB, free: 23.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004544/0.5218, allocations: 13.36 kB / 371.6 MB, free: 23.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.522, allocations: 38.95 kB / 371.7 MB, free: 23.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-05/0.5221, allocations: 8.547 kB / 371.7 MB, free: 23.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003187/0.5224, allocations: 163.6 kB / 371.8 MB, free: 23.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5224, allocations: 3.094 kB / 371.8 MB, free: 23.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009566/0.5234, allocations: 101.6 kB / 371.9 MB, free: 23.39 MB / 302.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.0001659/0.5235, allocations: 110 kB / 372.1 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.5248, allocations: 0.5572 MB / 372.6 MB, free: 23.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.5249, allocations: 5.094 kB / 372.6 MB, free: 23.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007247/0.5256, allocations: 430 kB / 373 MB, free: 22.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004397/0.526, allocations: 28.73 kB / 373.1 MB, free: 22.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/0.5277, allocations: 0.8606 MB / 373.9 MB, free: 22.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.5281, allocations: 0.7776 MB / 374.7 MB, free: 21.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.5282, allocations: 21.25 kB / 374.7 MB, free: 21.7 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5282, allocations: 0 / 374.7 MB, free: 21.7 MB / 302.1 MB Notification: Performance of Templates: time 0.01441/0.5426, allocations: 5.964 MB / 380.7 MB, free: 20.89 MB / 302.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/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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches