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.000913/0.000913, allocations: 202.7 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 226.5 MB / 245.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007541/0.0007542, allocations: 100.3 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002065/0.0002066, allocations: 8 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1817/0.1819, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0819/0.2639, allocations: 79.15 MB / 487.8 MB, free: 12.47 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.2641, allocations: 68.53 kB / 487.9 MB, free: 12.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009227/0.2733, allocations: 3.378 MB / 491.2 MB, free: 9.023 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.113e-06/0.2733, allocations: 3.938 kB / 491.2 MB, free: 9.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.2734, allocations: 4 kB / 491.3 MB, free: 9.016 MB / 362.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.0005712/0.2739, allocations: 459.1 kB / 491.7 MB, free: 8.516 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.274, allocations: 12.03 kB / 491.7 MB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003442/0.2743, allocations: 52.81 kB / 491.8 MB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.2745, allocations: 199.7 kB / 492 MB, free: 8.223 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.2745, allocations: 8.375 kB / 492 MB, free: 8.215 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.772e-05/0.2745, allocations: 8.375 kB / 492 MB, free: 8.207 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002878/0.2748, allocations: 156.5 kB / 492.1 MB, free: 8.039 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.2749, allocations: 4.188 kB / 492.1 MB, free: 8.035 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.2749, allocations: 7.938 kB / 492.1 MB, free: 8.027 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.2749, allocations: 4 kB / 492.1 MB, free: 8.023 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000262/0.2752, allocations: 95.94 kB / 492.2 MB, free: 7.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008259/0.276, allocations: 0.5148 MB / 492.8 MB, free: 7.359 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002841/0.2763, allocations: 106.5 kB / 492.9 MB, free: 7.246 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/0.2765, allocations: 72.83 kB / 492.9 MB, free: 7.172 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.2765, allocations: 0 / 492.9 MB, free: 7.172 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.2765, allocations: 30.56 kB / 493 MB, free: 7.133 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 8.51e-07/0.2765, allocations: 0 / 493 MB, free: 7.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004333/0.277, allocations: 161.5 kB / 493.1 MB, free: 6.969 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.723e-05/0.2771, allocations: 102.8 kB / 493.2 MB, free: 6.844 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.2772, allocations: 162.1 kB / 493.4 MB, free: 6.676 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.2772, allocations: 25.7 kB / 493.4 MB, free: 6.645 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.938e-05/0.2773, allocations: 115.9 kB / 493.5 MB, free: 6.527 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.2773, allocations: 31.55 kB / 493.5 MB, free: 6.496 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.676e-06/0.2773, allocations: 8 kB / 493.5 MB, free: 6.488 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.377e-05/0.2774, allocations: 314.8 kB / 493.9 MB, free: 6.172 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.2776, allocations: 39.97 kB / 493.9 MB, free: 6.133 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.2777, allocations: 91.69 kB / 494 MB, free: 6.027 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002473/0.278, allocations: 115.4 kB / 494.1 MB, free: 5.902 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.278, allocations: 0 / 494.1 MB, free: 5.902 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003215/0.2783, allocations: 145.5 kB / 494.2 MB, free: 5.754 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.2783, allocations: 4 kB / 494.2 MB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.2783, allocations: 3.938 kB / 494.2 MB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.2784, allocations: 8.062 kB / 494.3 MB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005461/0.2789, allocations: 87.8 kB / 494.3 MB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/0.2802, allocations: 1.394 MB / 495.7 MB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001631/0.2804, allocations: 28.23 kB / 495.8 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.2804, allocations: 7.984 kB / 495.8 MB, free: 4.086 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 0.0001234/0.2805, allocations: 133.7 kB / 495.9 MB, free: 3.945 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.51e-05/0.2806, allocations: 11.81 kB / 495.9 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004425/0.281, allocations: 155.5 kB / 496.1 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.281, allocations: 4.031 kB / 496.1 MB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.217e-06/0.281, allocations: 3.984 kB / 496.1 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.281, allocations: 0 / 496.1 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007027/0.2817, allocations: 468.1 kB / 496.5 MB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2818, allocations: 0 / 496.5 MB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.2819, allocations: 35.91 kB / 496.6 MB, free: 3.211 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002293/0.2821, allocations: 32.86 kB / 496.6 MB, free: 3.176 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.2822, allocations: 11.94 kB / 496.6 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009825/0.2832, allocations: 1.292 MB / 497.9 MB, free: 1.738 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2832, allocations: 0 / 497.9 MB, free: 1.738 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005748/0.2838, allocations: 301.2 kB / 498.2 MB, free: 1.422 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.197e-05/0.2838, allocations: 81.02 kB / 498.3 MB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.398e-05/0.2838, allocations: 8.062 kB / 498.3 MB, free: 1.316 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.284, allocations: 19.98 kB / 498.3 MB, free: 1.297 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.2841, allocations: 11.92 kB / 498.3 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.2841, allocations: 0 / 498.3 MB, free: 1.285 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.071e-05/0.2842, allocations: 123.2 kB / 498.4 MB, free: 1.164 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.243e-06/0.2842, allocations: 0 / 498.4 MB, free: 1.164 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002838/0.2845, allocations: 47.78 kB / 498.5 MB, free: 1.117 MB / 362.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 0.0001382/0.2846, allocations: 111.2 kB / 498.6 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006322/0.2852, allocations: 139.8 kB / 498.7 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.2853, allocations: 4 kB / 498.7 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002858/0.2855, allocations: 162.6 kB / 498.9 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00023/0.2858, allocations: 10.23 kB / 498.9 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.2872, allocations: 0.6445 MB / 499.5 MB, free: 15.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.2875, allocations: 0.7083 MB / 0.4885 GB, free: 15.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.143e-05/0.2876, allocations: 23.42 kB / 0.4885 GB, free: 15.24 MB / 378.7 MB Notification: Performance of SimCode: time 2.474e-06/0.2876, allocations: 0 / 0.4885 GB, free: 15.24 MB / 378.7 MB Notification: Performance of Templates: time 0.003391/0.291, allocations: 2.173 MB / 0.4907 GB, free: 13.07 MB / 378.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/jenkins1/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