Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_4.0.0_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.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001393, allocations: 108.3 kB / 17.06 MB, free: 6.023 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.001476/0.001477, allocations: 192 kB / 17.99 MB, free: 5.109 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.515/1.515, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 47.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3962/0.3973, allocations: 49.45 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003311/0.4007, allocations: 2.025 MB / 402.8 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.4017, allocations: 0.5687 MB / 403.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.696e-05/0.4018, allocations: 8 kB / 403.3 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.96e-05/0.4019, allocations: 19.78 kB / 403.4 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001709/0.4021, allocations: 47.62 kB / 403.4 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003588/0.4025, allocations: 86.2 kB / 403.5 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002146/0.4027, allocations: 175.3 kB / 403.7 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.4029, allocations: 61.44 kB / 403.7 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000178/0.4031, allocations: 79.66 kB / 403.8 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.4032, allocations: 75.67 kB / 403.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.211e-05/0.4032, allocations: 19.94 kB / 403.9 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.873e-05/0.4033, allocations: 16 kB / 403.9 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.293e-05/0.4033, allocations: 31.91 kB / 403.9 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.218e-05/0.4034, allocations: 83.58 kB / 404 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002111/0.4036, allocations: 172.5 kB / 404.2 MB, free: 5.395 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.4036, allocations: 0 / 404.2 MB, free: 5.395 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4037, allocations: 0 / 404.2 MB, free: 5.395 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.4037, allocations: 4 kB / 404.2 MB, free: 5.391 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0008725/0.4045, allocations: 466.9 kB / 404.6 MB, free: 4.887 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.4046, allocations: 11.89 kB / 404.7 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.971e-05/0.4047, allocations: 20.73 kB / 404.7 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002047/0.4049, allocations: 203.7 kB / 404.9 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.4049, allocations: 8.312 kB / 404.9 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.904e-05/0.4049, allocations: 16.36 kB / 404.9 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003492/0.4053, allocations: 148.4 kB / 405 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.4053, allocations: 0 / 405 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.4053, allocations: 4 kB / 405.1 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.4054, allocations: 8 kB / 405.1 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002833/0.4057, allocations: 95.88 kB / 405.2 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009924/0.4067, allocations: 0.5109 MB / 405.7 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.407, allocations: 94.53 kB / 405.8 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.4072, allocations: 72.81 kB / 405.8 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.4072, allocations: 4 kB / 405.8 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.4073, allocations: 38.5 kB / 405.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 2.846e-06/0.4073, allocations: 0 / 405.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004951/0.4078, allocations: 145.5 kB / 406 MB, free: 3.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.4078, allocations: 102.8 kB / 406.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.408, allocations: 154.2 kB / 406.3 MB, free: 3.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.408, allocations: 29.7 kB / 406.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.4081, allocations: 119.9 kB / 406.4 MB, free: 2.945 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.852e-05/0.4082, allocations: 23.56 kB / 406.4 MB, free: 2.922 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.373e-05/0.4083, allocations: 33.7 kB / 406.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.4084, allocations: 322.8 kB / 406.8 MB, free: 2.559 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.4085, allocations: 39.97 kB / 406.8 MB, free: 2.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.4087, allocations: 80.36 kB / 406.9 MB, free: 2.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002571/0.409, allocations: 110.8 kB / 407 MB, free: 2.309 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.409, allocations: 0 / 407 MB, free: 2.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003458/0.4093, allocations: 149.5 kB / 407.2 MB, free: 2.156 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.4094, allocations: 11.94 kB / 407.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.4094, allocations: 0 / 407.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.4094, allocations: 0 / 407.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006197/0.41, allocations: 87.8 kB / 407.2 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/0.4115, allocations: 1.508 MB / 408.8 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001727/0.4117, allocations: 23.95 kB / 408.8 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.4117, allocations: 7.938 kB / 408.8 MB, free: 380 kB / 318.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.0001336/0.4119, allocations: 120.7 kB / 408.9 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.957e-05/0.4119, allocations: 11.91 kB / 408.9 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004655/0.4124, allocations: 159.2 kB / 409.1 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.4124, allocations: 0 / 409.1 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.4124, allocations: 3.938 kB / 409.1 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.4124, allocations: 0 / 409.1 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007585/0.4132, allocations: 464 kB / 409.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.4132, allocations: 7.984 kB / 409.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001418/0.4134, allocations: 23.98 kB / 409.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000247/0.4136, allocations: 28.81 kB / 409.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.4136, allocations: 15.98 kB / 409.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001171/0.4148, allocations: 1.383 MB / 411 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.4148, allocations: 7.875 kB / 411 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005792/0.4154, allocations: 293.2 kB / 411.3 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.694e-05/0.4155, allocations: 88.98 kB / 411.4 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.4155, allocations: 7.938 kB / 411.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.4157, allocations: 20.05 kB / 411.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.658e-05/0.4158, allocations: 11.92 kB / 411.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/0.4158, allocations: 0 / 411.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.692e-05/0.4159, allocations: 119.2 kB / 411.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4159, allocations: 0 / 411.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003146/0.4162, allocations: 39.91 kB / 411.6 MB, free: 13.33 MB / 334.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.0001534/0.4164, allocations: 107.2 kB / 411.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007129/0.4171, allocations: 131.8 kB / 411.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4171, allocations: 0 / 411.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000329/0.4174, allocations: 166.7 kB / 412 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.4177, allocations: 12 kB / 412 MB, free: 12.9 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.4194, allocations: 0.5435 MB / 412.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.4196, allocations: 0.7119 MB / 413.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.876e-05/0.4197, allocations: 8.562 kB / 413.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.484e-05/0.4198, allocations: 15.42 kB / 413.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4198, allocations: 4 kB / 413.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of Templates: time 0.004919/0.4247, allocations: 1.663 MB / 414.9 MB, free: 9.91 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches