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.001525/0.001526, allocations: 111.1 kB / 17.68 MB, free: 5.355 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.001817/0.001817, allocations: 192 kB / 18.62 MB, free: 4.434 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.348/1.348, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009848/0.0009848, allocations: 51.39 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0892/0.0902, allocations: 49.44 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.00394/0.09419, allocations: 2.736 MB / 354.2 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.0955, allocations: 0.8684 MB / 355.1 MB, free: 84 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.09564, allocations: 4 kB / 355.1 MB, free: 80 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002415/0.0959, allocations: 59.44 kB / 355.2 MB, free: 20 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002976/0.09621, allocations: 103.3 kB / 355.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.09646, allocations: 95.81 kB / 355.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003242/0.09679, allocations: 354.5 kB / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.09698, allocations: 109.7 kB / 355.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000166/0.09716, allocations: 139.5 kB / 356 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/0.09736, allocations: 151.3 kB / 356.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.23e-05/0.09741, allocations: 32 kB / 356.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.176e-05/0.09746, allocations: 28 kB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.057e-05/0.09752, allocations: 71.69 kB / 356.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.09766, allocations: 159.2 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003197/0.09798, allocations: 354.7 kB / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.09799, allocations: 0 / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09801, allocations: 3.938 kB / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.09802, allocations: 0 / 356.7 MB, free: 14.45 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.0009317/0.09895, allocations: 0.6003 MB / 357.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.099, allocations: 15.89 kB / 357.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.709e-05/0.09908, allocations: 32.56 kB / 357.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000334/0.09942, allocations: 264 kB / 357.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.09945, allocations: 24.94 kB / 357.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.424e-05/0.0995, allocations: 24.38 kB / 357.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004406/0.09994, allocations: 249.2 kB / 357.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.09997, allocations: 0 / 357.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.06e-05/0.1, allocations: 12 kB / 357.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.1, allocations: 8 kB / 357.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004314/0.1005, allocations: 210.1 kB / 358.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.102, allocations: 1.009 MB / 359.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004077/0.1024, allocations: 206.1 kB / 359.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002357/0.1026, allocations: 112.8 kB / 359.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.1027, allocations: 4 kB / 359.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.1027, allocations: 34.97 kB / 359.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 4.769e-06/0.1027, allocations: 3.984 kB / 359.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.004999/0.1077, allocations: 1.539 MB / 361.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.1078, allocations: 59.34 kB / 361.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.108, allocations: 228.9 kB / 361.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.1081, allocations: 29.7 kB / 361.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.567e-05/0.1082, allocations: 180.2 kB / 361.5 MB, free: 9.332 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.441e-05/0.1082, allocations: 118.3 kB / 361.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.1084, allocations: 65.98 kB / 361.7 MB, free: 9.141 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.1085, allocations: 342.8 kB / 362.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.1087, allocations: 108.7 kB / 362.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002576/0.109, allocations: 161.5 kB / 362.3 MB, free: 8.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004785/0.1095, allocations: 276 kB / 362.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1095, allocations: 0 / 362.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001478/0.111, allocations: 0.541 MB / 363.1 MB, free: 7.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.111, allocations: 7.938 kB / 363.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.111, allocations: 4 kB / 363.1 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/0.1122, allocations: 237.4 kB / 363.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002656/0.1125, allocations: 63.89 kB / 363.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004489/0.117, allocations: 4.132 MB / 367.6 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002536/0.1173, allocations: 12.28 kB / 367.6 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.1173, allocations: 8 kB / 367.6 MB, free: 2.938 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.0001957/0.1175, allocations: 153.8 kB / 367.7 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.48e-05/0.1176, allocations: 31.56 kB / 367.8 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.218e-05/0.1177, allocations: 43.03 kB / 367.8 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.1177, allocations: 11.92 kB / 367.8 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.1177, allocations: 0 / 367.8 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1177, allocations: 7.984 kB / 367.8 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002/0.1197, allocations: 0.9783 MB / 368.8 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1197, allocations: 0 / 368.8 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000207/0.1199, allocations: 44.05 kB / 368.9 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001175/0.1211, allocations: 241.4 kB / 369.1 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.283e-05/0.1212, allocations: 4 kB / 369.1 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1531/0.2743, allocations: 4.115 MB / 373.2 MB, free: 22.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2743, allocations: 2.312 kB / 373.2 MB, free: 22.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/0.2761, allocations: 0.7373 MB / 373.9 MB, free: 22.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.447e-05/0.2762, allocations: 99.12 kB / 374 MB, free: 22.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.667e-05/0.2762, allocations: 6.312 kB / 374 MB, free: 22.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.2765, allocations: 14.67 kB / 374.1 MB, free: 22.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.182e-05/0.2766, allocations: 31.52 kB / 374.1 MB, free: 22.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.373e-05/0.2766, allocations: 7.953 kB / 374.1 MB, free: 22.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001405/0.2767, allocations: 166.3 kB / 374.3 MB, free: 22.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2767, allocations: 0.5625 kB / 374.3 MB, free: 22.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005921/0.2773, allocations: 102 kB / 374.4 MB, free: 22.29 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.0001156/0.2775, allocations: 111.8 kB / 374.5 MB, free: 22.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009421/0.2784, allocations: 0.5699 MB / 375 MB, free: 21.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.2784, allocations: 0 / 375 MB, free: 21.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005578/0.279, allocations: 436.3 kB / 375.5 MB, free: 21.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.2793, allocations: 29.16 kB / 375.5 MB, free: 21.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.2805, allocations: 0.6916 MB / 376.2 MB, free: 21.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001885/0.2807, allocations: 0.7802 MB / 377 MB, free: 20.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.368e-05/0.2808, allocations: 17.27 kB / 377 MB, free: 20.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.52e-05/0.2809, allocations: 19.55 kB / 377 MB, free: 20.53 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2809, allocations: 0 / 377 MB, free: 20.53 MB / 302.1 MB Notification: Performance of Templates: time 0.009897/0.2908, allocations: 5.432 MB / 382.4 MB, free: 19.99 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 -s gbode -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