Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") translateModel(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 117.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 211.7 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.525/1.525, allocations: 230.4 MB / 250 MB, free: 9.031 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 59.84 kB / 367.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2716, allocations: 53.32 MB / 420.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003544/0.2751, allocations: 2.072 MB / 422.7 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.2765, allocations: 0.6545 MB / 423.4 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.518e-05/0.2766, allocations: 3.938 kB / 423.4 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.97e-05/0.2767, allocations: 19.8 kB / 423.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.2768, allocations: 47.62 kB / 423.5 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.2773, allocations: 107.7 kB / 423.6 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002563/0.2775, allocations: 183.3 kB / 423.7 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.2777, allocations: 37.53 kB / 423.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000197/0.2779, allocations: 95.62 kB / 423.9 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.278, allocations: 71.69 kB / 423.9 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.278, allocations: 16 kB / 424 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.71e-05/0.2781, allocations: 24 kB / 424 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.372e-05/0.2781, allocations: 31.91 kB / 424 MB, free: 5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.495e-05/0.2782, allocations: 87.52 kB / 424.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002491/0.2784, allocations: 179.2 kB / 424.3 MB, free: 4.742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.395e-05/0.2785, allocations: 0 / 424.3 MB, free: 4.742 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2785, allocations: 0 / 424.3 MB, free: 4.742 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.2785, allocations: 0 / 424.3 MB, free: 4.742 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0008919/0.2794, allocations: 482.6 kB / 424.7 MB, free: 4.223 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.2794, allocations: 8.031 kB / 424.8 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004076/0.2798, allocations: 60.81 kB / 424.8 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.2801, allocations: 220 kB / 425 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.2802, allocations: 8.375 kB / 425 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.853e-05/0.2802, allocations: 8.375 kB / 425 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003798/0.2806, allocations: 161.2 kB / 425.2 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.2806, allocations: 0 / 425.2 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.2806, allocations: 4 kB / 425.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.2806, allocations: 4 kB / 425.2 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003008/0.2809, allocations: 95.88 kB / 425.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.282, allocations: 0.5072 MB / 425.8 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003875/0.2824, allocations: 102.5 kB / 425.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.2826, allocations: 60.81 kB / 426 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.2826, allocations: 0 / 426 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.2827, allocations: 42.5 kB / 426 MB, free: 2.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.2827, allocations: 3.938 kB / 426 MB, free: 2.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.000515/0.2832, allocations: 145.7 kB / 426.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.691e-05/0.2833, allocations: 106.8 kB / 426.3 MB, free: 2.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.2835, allocations: 158.9 kB / 426.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.2835, allocations: 25.7 kB / 426.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.2836, allocations: 119.9 kB / 426.6 MB, free: 2.227 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.2837, allocations: 35.73 kB / 426.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.074e-05/0.2837, allocations: 33.64 kB / 426.6 MB, free: 2.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.2839, allocations: 322.8 kB / 426.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.284, allocations: 39.97 kB / 427 MB, free: 1.789 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.2842, allocations: 80.2 kB / 427.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/0.2845, allocations: 94.55 kB / 427.2 MB, free: 1.594 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2845, allocations: 0 / 427.2 MB, free: 1.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000345/0.2848, allocations: 153.8 kB / 427.3 MB, free: 1.438 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.2848, allocations: 7.938 kB / 427.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.2848, allocations: 0 / 427.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.2848, allocations: 3.984 kB / 427.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006107/0.2855, allocations: 87.89 kB / 427.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/0.2872, allocations: 1.504 MB / 428.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001707/0.2874, allocations: 15.94 kB / 428.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.2874, allocations: 11.92 kB / 428.9 MB, free: 15.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.2875, allocations: 126 kB / 429.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.74e-05/0.2876, allocations: 7.953 kB / 429.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004816/0.2881, allocations: 159 kB / 429.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.2881, allocations: 0 / 429.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2881, allocations: 7.938 kB / 429.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.2881, allocations: 0 / 429.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000909/0.289, allocations: 464 kB / 429.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.289, allocations: 32 / 429.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000143/0.2891, allocations: 31.91 kB / 429.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002519/0.2894, allocations: 32.83 kB / 429.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.2894, allocations: 3.984 kB / 429.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/0.2908, allocations: 1.388 MB / 431.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/0.2908, allocations: 7.875 kB / 431.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006228/0.2914, allocations: 293.3 kB / 431.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.986e-05/0.2915, allocations: 85.05 kB / 431.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.175e-05/0.2915, allocations: 11.94 kB / 431.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.2917, allocations: 15.92 kB / 431.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.464e-05/0.2917, allocations: 11.92 kB / 431.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.2917, allocations: 4 kB / 431.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000114/0.2918, allocations: 123.4 kB / 431.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2918, allocations: 4.062 kB / 431.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000308/0.2922, allocations: 43.89 kB / 431.7 MB, free: 12.61 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000163/0.2923, allocations: 101.8 kB / 431.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007524/0.2931, allocations: 135.9 kB / 432 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.2931, allocations: 4 kB / 432 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003681/0.2934, allocations: 154.7 kB / 432.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.2937, allocations: 14.92 kB / 432.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001707/0.2954, allocations: 0.5437 MB / 432.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004028/0.2958, allocations: 0.7119 MB / 433.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.745e-05/0.2959, allocations: 8.562 kB / 433.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.78e-05/0.2959, allocations: 19.42 kB / 433.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2959, allocations: 0 / 433.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of Templates: time 0.005434/0.3014, allocations: 1.692 MB / 435.1 MB, free: 9.168 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches