Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 226.6 MB / 244.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007853/0.0007854, allocations: 106.4 kB / 296.4 MB, free: 7.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002148/0.0002148, allocations: 4 kB / 356.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2124, allocations: 51.3 MB / 407.5 MB, free: 27.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.001565/0.214, allocations: 1.698 MB / 409.2 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006736/0.2147, allocations: 0.5878 MB / 409.8 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.335e-05/0.2147, allocations: 0.5 kB / 409.8 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.913e-05/0.2148, allocations: 16.61 kB / 409.8 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.2149, allocations: 34.47 kB / 409.8 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.2152, allocations: 87.08 kB / 409.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000114/0.2153, allocations: 159.3 kB / 410.1 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.2154, allocations: 33.47 kB / 410.1 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001477/0.2155, allocations: 72.33 kB / 410.2 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.653e-05/0.2156, allocations: 68.25 kB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.082e-05/0.2157, allocations: 9 kB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.26e-05/0.2157, allocations: 23.92 kB / 410.3 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.918e-05/0.2157, allocations: 23.91 kB / 410.3 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.773e-05/0.2158, allocations: 50.55 kB / 410.3 MB, free: 25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.2159, allocations: 124.7 kB / 410.5 MB, free: 24.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2159, allocations: 7.406 kB / 410.5 MB, free: 24.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2159, allocations: 0 / 410.5 MB, free: 24.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.2159, allocations: 0 / 410.5 MB, free: 24.88 MB / 298.7 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.0005631/0.2165, allocations: 452.8 kB / 410.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.2165, allocations: 12.03 kB / 410.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003335/0.2169, allocations: 55.81 kB / 411 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.217, allocations: 192.5 kB / 411.2 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.217, allocations: 4 kB / 411.2 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.35e-05/0.217, allocations: 11.95 kB / 411.2 MB, free: 24.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002959/0.2174, allocations: 163.8 kB / 411.3 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.2174, allocations: 0 / 411.3 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.2174, allocations: 4 kB / 411.3 MB, free: 23.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.2174, allocations: 7.984 kB / 411.4 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002517/0.2177, allocations: 103.9 kB / 411.5 MB, free: 23.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007005/0.2184, allocations: 0.5109 MB / 412 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.2186, allocations: 106.5 kB / 412.1 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.2188, allocations: 68.83 kB / 412.1 MB, free: 23.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.2189, allocations: 4 kB / 412.1 MB, free: 23.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.2189, allocations: 34.56 kB / 412.2 MB, free: 23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/0.2189, allocations: 0 / 412.2 MB, free: 23 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004283/0.2193, allocations: 153.6 kB / 412.3 MB, free: 22.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.2194, allocations: 102.8 kB / 412.4 MB, free: 22.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.2195, allocations: 154.5 kB / 412.6 MB, free: 22.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.2195, allocations: 33.64 kB / 412.6 MB, free: 22.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.933e-05/0.2196, allocations: 127.8 kB / 412.7 MB, free: 22.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.127e-05/0.2196, allocations: 27.64 kB / 412.8 MB, free: 22.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.122e-06/0.2196, allocations: 0 / 412.8 MB, free: 22.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.964e-05/0.2196, allocations: 322.8 kB / 413.1 MB, free: 22.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.2198, allocations: 39.98 kB / 413.1 MB, free: 21.99 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.2199, allocations: 82.56 kB / 413.2 MB, free: 21.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001219/0.22, allocations: 47.97 kB / 413.2 MB, free: 21.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.22, allocations: 0 / 413.2 MB, free: 21.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002902/0.2203, allocations: 145.5 kB / 413.4 MB, free: 21.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.2204, allocations: 4 kB / 413.4 MB, free: 21.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2204, allocations: 0 / 413.4 MB, free: 21.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.2204, allocations: 7.953 kB / 413.4 MB, free: 21.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005426/0.2209, allocations: 91.89 kB / 413.5 MB, free: 21.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009793/0.2219, allocations: 1.398 MB / 414.9 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.2221, allocations: 35.8 kB / 414.9 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.2221, allocations: 4 kB / 414.9 MB, free: 20.02 MB / 298.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 7.623e-05/0.2222, allocations: 130 kB / 415.1 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.119e-05/0.2223, allocations: 7.906 kB / 415.1 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004081/0.2227, allocations: 167.5 kB / 415.2 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2227, allocations: 3.938 kB / 415.2 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.31e-07/0.2227, allocations: 0 / 415.2 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2227, allocations: 3.984 kB / 415.2 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005806/0.2233, allocations: 468.1 kB / 415.7 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2233, allocations: 0 / 415.7 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.2234, allocations: 19.98 kB / 415.7 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002373/0.2237, allocations: 48.78 kB / 415.8 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.2237, allocations: 4 kB / 415.8 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000665/0.2244, allocations: 1.292 MB / 417 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2244, allocations: 0 / 417 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005031/0.2249, allocations: 301.1 kB / 417.3 MB, free: 17.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.575e-05/0.2249, allocations: 92.89 kB / 417.4 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.2249, allocations: 8 kB / 417.4 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.2251, allocations: 16.05 kB / 417.5 MB, free: 17.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.512e-05/0.2252, allocations: 7.984 kB / 417.5 MB, free: 17.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.2252, allocations: 7.953 kB / 417.5 MB, free: 17.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.753e-05/0.2252, allocations: 119.9 kB / 417.6 MB, free: 17.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2252, allocations: 7.938 kB / 417.6 MB, free: 17.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002641/0.2255, allocations: 36 kB / 417.6 MB, free: 17.05 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 9.945e-05/0.2256, allocations: 99.25 kB / 417.7 MB, free: 16.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006226/0.2262, allocations: 135.8 kB / 417.9 MB, free: 16.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.2263, allocations: 8.062 kB / 417.9 MB, free: 16.81 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002579/0.2265, allocations: 162.6 kB / 418 MB, free: 16.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.2267, allocations: 14.23 kB / 418 MB, free: 16.62 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.2281, allocations: 0.6433 MB / 418.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.2282, allocations: 0.7199 MB / 419.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.68e-05/0.2282, allocations: 11.44 kB / 419.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2282, allocations: 0 / 419.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of Templates: time 0.002852/0.2311, allocations: 2.177 MB / 421.6 MB, free: 13.02 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches