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.0008855/0.0008855, allocations: 94.56 kB / 17.31 MB, free: 5.656 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.0007726/0.0007726, allocations: 179.9 kB / 18.21 MB, free: 5.25 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.283/1.283, allocations: 223.3 MB / 242.3 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000221/0.0002211, allocations: 11.94 kB / 302.1 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07347/0.07371, allocations: 50.41 MB / 352.5 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.001869/0.0756, allocations: 1.732 MB / 354.2 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008269/0.07644, allocations: 0.5611 MB / 354.8 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.291e-05/0.07652, allocations: 0 / 354.8 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.772e-05/0.07657, allocations: 11.86 kB / 354.8 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.0767, allocations: 39.75 kB / 354.8 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002912/0.077, allocations: 83.22 kB / 354.9 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000165/0.07717, allocations: 171.2 kB / 355.1 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.07731, allocations: 57.34 kB / 355.1 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.07747, allocations: 75.69 kB / 355.2 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.338e-05/0.07757, allocations: 63.69 kB / 355.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.0776, allocations: 8 kB / 355.3 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.365e-05/0.07763, allocations: 8 kB / 355.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.062e-05/0.07767, allocations: 23.86 kB / 355.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.836e-05/0.07775, allocations: 97.34 kB / 355.4 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.07788, allocations: 131.8 kB / 355.5 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.07789, allocations: 8 kB / 355.5 MB, free: 376 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.0779, allocations: 0 / 355.5 MB, free: 376 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.056e-06/0.07791, allocations: 0 / 355.5 MB, free: 376 kB / 286.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.0006485/0.07856, allocations: 446.9 kB / 356 MB, free: 15.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.0786, allocations: 8.031 kB / 356 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.901e-05/0.07865, allocations: 16.75 kB / 356 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.0788, allocations: 195 kB / 356.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.07882, allocations: 4.375 kB / 356.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.942e-05/0.07886, allocations: 12.38 kB / 356.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003107/0.07917, allocations: 160.3 kB / 356.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.0792, allocations: 3.906 kB / 356.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.07922, allocations: 4 kB / 356.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.07923, allocations: 8 kB / 356.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002769/0.07951, allocations: 95.94 kB / 356.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008505/0.08038, allocations: 0.5072 MB / 357 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.08069, allocations: 106.5 kB / 357.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/0.08088, allocations: 72.83 kB / 357.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.08091, allocations: 160 / 357.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.08094, allocations: 42.48 kB / 357.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 2.184e-06/0.08094, allocations: 0 / 357.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004609/0.08141, allocations: 161.4 kB / 357.4 MB, free: 14.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.08147, allocations: 106.8 kB / 357.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.0816, allocations: 156.4 kB / 357.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.08162, allocations: 25.7 kB / 357.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.507e-05/0.0817, allocations: 123.8 kB / 357.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.08173, allocations: 27.64 kB / 357.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.158e-05/0.08177, allocations: 21.72 kB / 357.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.749e-05/0.08186, allocations: 318.8 kB / 358.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.082, allocations: 39.97 kB / 358.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.08216, allocations: 84.27 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/0.08242, allocations: 98.48 kB / 358.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.08243, allocations: 4.031 kB / 358.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003391/0.08277, allocations: 153.7 kB / 358.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.0828, allocations: 11.94 kB / 358.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.08281, allocations: 8 kB / 358.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.939e-06/0.08283, allocations: 0 / 358.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005786/0.08341, allocations: 83.95 kB / 358.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.08466, allocations: 1.398 MB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001731/0.08485, allocations: 27.86 kB / 360 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.08487, allocations: 4.125 kB / 360 MB, free: 11.48 MB / 302.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 9.471e-05/0.08497, allocations: 129.8 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.08501, allocations: 7.906 kB / 360.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004588/0.08547, allocations: 159.1 kB / 360.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.08549, allocations: 0 / 360.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.0855, allocations: 4 kB / 360.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.0855, allocations: 0 / 360.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007046/0.08621, allocations: 472 kB / 360.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.08623, allocations: 4 kB / 360.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.08637, allocations: 23.98 kB / 360.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002425/0.08663, allocations: 44.78 kB / 360.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.08665, allocations: 7.938 kB / 360.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009288/0.08758, allocations: 1.305 MB / 362.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.0876, allocations: 0 / 362.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005833/0.08819, allocations: 297.1 kB / 362.5 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.297e-05/0.08824, allocations: 92.94 kB / 362.5 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.08827, allocations: 8 kB / 362.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.08845, allocations: 16.05 kB / 362.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.583e-05/0.0885, allocations: 7.984 kB / 362.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.08851, allocations: 8 kB / 362.6 MB, free: 8.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.244e-05/0.0886, allocations: 127 kB / 362.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0886, allocations: 0 / 362.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002912/0.0889, allocations: 39.88 kB / 362.7 MB, free: 8.5 MB / 302.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 8.863e-05/0.089, allocations: 107.2 kB / 362.9 MB, free: 8.387 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006835/0.08969, allocations: 139.9 kB / 363 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.0897, allocations: 4 kB / 363 MB, free: 8.246 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002859/0.08999, allocations: 162.6 kB / 363.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.09026, allocations: 11.91 kB / 363.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.09172, allocations: 0.6437 MB / 363.8 MB, free: 7.383 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.09195, allocations: 0.716 MB / 364.5 MB, free: 6.641 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.203e-05/0.092, allocations: 15.44 kB / 364.5 MB, free: 6.625 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.092, allocations: 0 / 364.5 MB, free: 6.625 MB / 302.1 MB Notification: Performance of Templates: time 0.003543/0.09555, allocations: 2.188 MB / 366.7 MB, free: 4.434 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/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