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.001092/0.001092, allocations: 111 kB / 17.74 MB, free: 5.34 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.001094/0.001094, allocations: 196.3 kB / 18.68 MB, free: 4.41 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.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 47.92 kB / 352 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2387, allocations: 49.43 MB / 401.4 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.004107/0.2429, allocations: 2.746 MB / 404.1 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001544/0.2444, allocations: 0.8683 MB / 405 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002293/0.2447, allocations: 4 kB / 405 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002872/0.245, allocations: 59.5 kB / 405.1 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003881/0.2454, allocations: 107.2 kB / 405.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.2457, allocations: 103.7 kB / 405.3 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004282/0.2462, allocations: 354.6 kB / 405.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002112/0.2464, allocations: 105.7 kB / 405.7 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000231/0.2466, allocations: 135.5 kB / 405.9 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002312/0.2469, allocations: 155.3 kB / 406 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.64e-05/0.2469, allocations: 32 kB / 406 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.911e-05/0.247, allocations: 28 kB / 406.1 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.913e-05/0.2471, allocations: 63.77 kB / 406.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.2472, allocations: 151.3 kB / 406.3 MB, free: 4 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003802/0.2476, allocations: 363.8 kB / 406.6 MB, free: 3.648 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2476, allocations: 0 / 406.6 MB, free: 3.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.2476, allocations: 0 / 406.6 MB, free: 3.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.2476, allocations: 7.938 kB / 406.6 MB, free: 3.641 MB / 318.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.001074/0.2487, allocations: 0.5963 MB / 407.2 MB, free: 2.996 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.2488, allocations: 11.89 kB / 407.3 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.045e-05/0.2489, allocations: 36.56 kB / 407.3 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.2492, allocations: 268.9 kB / 407.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.2493, allocations: 20.94 kB / 407.6 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.939e-05/0.2493, allocations: 24.38 kB / 407.6 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005067/0.2498, allocations: 253.1 kB / 407.8 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.2499, allocations: 0 / 407.8 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.2499, allocations: 12 kB / 407.9 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.2499, allocations: 4 kB / 407.9 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000437/0.2504, allocations: 214.1 kB / 408.1 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.2519, allocations: 0.9975 MB / 409.1 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000415/0.2523, allocations: 214.5 kB / 409.3 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002482/0.2526, allocations: 104.8 kB / 409.4 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.2526, allocations: 4 kB / 409.4 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.2527, allocations: 38.56 kB / 409.4 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.453e-06/0.2527, allocations: 0 / 409.4 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.005032/0.2577, allocations: 1.535 MB / 411 MB, free: 15.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.2578, allocations: 63.2 kB / 411 MB, free: 14.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002243/0.258, allocations: 225 kB / 411.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.258, allocations: 29.7 kB / 411.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.2581, allocations: 180.2 kB / 411.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.202e-05/0.2582, allocations: 126.2 kB / 411.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.2584, allocations: 66.08 kB / 411.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.2585, allocations: 334.8 kB / 412 MB, free: 14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002439/0.2587, allocations: 112.6 kB / 412.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.259, allocations: 161.5 kB / 412.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004902/0.2595, allocations: 276 kB / 412.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2595, allocations: 0 / 412.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001535/0.2611, allocations: 0.5448 MB / 413 MB, free: 12.87 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.2611, allocations: 8 kB / 413 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.2611, allocations: 0 / 413 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001236/0.2624, allocations: 229.5 kB / 413.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002675/0.2626, allocations: 63.91 kB / 413.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004893/0.2675, allocations: 4.137 MB / 417.5 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/0.2678, allocations: 12.03 kB / 417.5 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.851e-05/0.2679, allocations: 8 kB / 417.5 MB, free: 8.137 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.0001848/0.2681, allocations: 166.4 kB / 417.7 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.268e-05/0.2681, allocations: 23.72 kB / 417.7 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.2682, allocations: 38.97 kB / 417.7 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2682, allocations: 4.281 kB / 417.7 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.968e-06/0.2683, allocations: 4 kB / 417.7 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.2683, allocations: 3.984 kB / 417.7 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.2704, allocations: 0.9899 MB / 418.7 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.2704, allocations: 3.984 kB / 418.7 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002212/0.2706, allocations: 43.92 kB / 418.8 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001199/0.2718, allocations: 241.5 kB / 419 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.2719, allocations: 4 kB / 419 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004608/0.2765, allocations: 4.122 MB / 423.1 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2765, allocations: 0 / 423.1 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/0.2784, allocations: 0.7365 MB / 423.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.535e-05/0.2785, allocations: 100.8 kB / 424 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.395e-05/0.2785, allocations: 7.938 kB / 424 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002402/0.2788, allocations: 16.28 kB / 424 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.2789, allocations: 31.89 kB / 424 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.2789, allocations: 8 kB / 424 MB, free: 1.195 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001619/0.2791, allocations: 172.4 kB / 424.2 MB, free: 1.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.2791, allocations: 4.062 kB / 424.2 MB, free: 1.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006182/0.2797, allocations: 103.9 kB / 424.3 MB, free: 0.918 MB / 334.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.0001366/0.2799, allocations: 99.25 kB / 424.4 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.2809, allocations: 0.5634 MB / 425 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.281, allocations: 0 / 425 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006198/0.2816, allocations: 429.4 kB / 425.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003553/0.282, allocations: 28.44 kB / 425.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.2833, allocations: 0.7245 MB / 426.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.2836, allocations: 0.776 MB / 426.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.716e-05/0.2837, allocations: 15.44 kB / 426.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2837, allocations: 8 kB / 426.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of Templates: time 0.007899/0.2916, allocations: 5.979 MB / 432.9 MB, free: 8.172 MB / 350.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