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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 221.4 MB / 235.5 MB, free: 2.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007892/0.0007893, allocations: 87.62 kB / 286.5 MB, free: 172 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.02e-05/2.063e-05, allocations: 0 / 343.8 MB, free: 4.301 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08462/0.08465, allocations: 50.42 MB / 394.2 MB, free: 1.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2656/0.3503, allocations: 78.33 MB / 472.6 MB, free: 9.215 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001902/0.3505, allocations: 75.78 kB / 472.6 MB, free: 9.145 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009345/0.3598, allocations: 3.279 MB / 475.9 MB, free: 5.855 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3599, allocations: 0 / 475.9 MB, free: 5.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.3599, allocations: 4 kB / 475.9 MB, free: 5.852 MB / 346.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.000538/0.3604, allocations: 430.7 kB / 476.3 MB, free: 5.387 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.3605, allocations: 8.031 kB / 476.4 MB, free: 5.379 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.842e-05/0.3605, allocations: 19.75 kB / 476.4 MB, free: 5.359 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.3607, allocations: 187.9 kB / 476.6 MB, free: 5.137 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.3607, allocations: 8 kB / 476.6 MB, free: 5.129 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.3607, allocations: 11.91 kB / 476.6 MB, free: 5.117 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002306/0.361, allocations: 147.3 kB / 476.7 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.361, allocations: 0 / 476.7 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.361, allocations: 7.953 kB / 476.7 MB, free: 4.953 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.361, allocations: 4 kB / 476.7 MB, free: 4.949 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001332/0.3612, allocations: 63.98 kB / 476.8 MB, free: 4.887 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008732/0.3621, allocations: 0.5113 MB / 477.3 MB, free: 4.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/0.3622, allocations: 78.5 kB / 477.4 MB, free: 4.234 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.3623, allocations: 60.78 kB / 477.4 MB, free: 4.172 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.3624, allocations: 8.141 kB / 477.5 MB, free: 4.164 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.3624, allocations: 34.55 kB / 477.5 MB, free: 4.121 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.3624, allocations: 0 / 477.5 MB, free: 4.121 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002021/0.3626, allocations: 85.58 kB / 477.6 MB, free: 4.031 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.3627, allocations: 106.8 kB / 477.7 MB, free: 3.902 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.3628, allocations: 144.4 kB / 477.8 MB, free: 3.758 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.3628, allocations: 29.7 kB / 477.8 MB, free: 3.723 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.312e-05/0.3629, allocations: 115.9 kB / 478 MB, free: 3.605 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.421e-05/0.3629, allocations: 27.64 kB / 478 MB, free: 3.578 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-06/0.3629, allocations: 4 kB / 478 MB, free: 3.574 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.215e-05/0.363, allocations: 322.8 kB / 478.3 MB, free: 3.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.356e-05/0.3631, allocations: 27.94 kB / 478.3 MB, free: 3.223 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.805e-05/0.3632, allocations: 69.14 kB / 478.4 MB, free: 3.137 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.513e-05/0.3632, allocations: 32.02 kB / 478.4 MB, free: 3.105 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3633, allocations: 0 / 478.4 MB, free: 3.105 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000199/0.3635, allocations: 117.4 kB / 478.5 MB, free: 2.984 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.3635, allocations: 4 kB / 478.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3635, allocations: 4 kB / 478.6 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.3635, allocations: 3.938 kB / 478.6 MB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005796/0.3641, allocations: 91.97 kB / 478.6 MB, free: 2.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/0.3653, allocations: 1.378 MB / 480 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.3655, allocations: 27.86 kB / 480.1 MB, free: 1.344 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.3655, allocations: 4 kB / 480.1 MB, free: 1.34 MB / 346.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 () * 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.897e-05/0.3656, allocations: 117 kB / 480.2 MB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.403e-05/0.3657, allocations: 7.906 kB / 480.2 MB, free: 1.211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003145/0.366, allocations: 127.1 kB / 480.3 MB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.366, allocations: 3.953 kB / 480.3 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.366, allocations: 3.938 kB / 480.3 MB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.366, allocations: 4 kB / 480.3 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005546/0.3666, allocations: 436.1 kB / 480.7 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3666, allocations: 3.938 kB / 480.7 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.3667, allocations: 27.92 kB / 480.8 MB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002277/0.367, allocations: 40.86 kB / 480.8 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.367, allocations: 7.984 kB / 480.8 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009474/0.3679, allocations: 1.288 MB / 482.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.368, allocations: 4.031 kB / 482.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003785/0.3684, allocations: 266.7 kB / 482.4 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.511e-05/0.3684, allocations: 101.1 kB / 482.5 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.3684, allocations: 3.984 kB / 482.5 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.3686, allocations: 19.98 kB / 482.5 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.3687, allocations: 8 kB / 482.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.3687, allocations: 4 kB / 482.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.615e-05/0.3688, allocations: 115.3 kB / 482.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3688, allocations: 4 kB / 482.6 MB, free: 14.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002733/0.3691, allocations: 39.95 kB / 482.7 MB, free: 14.47 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 () * 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.0001179/0.3692, allocations: 107.2 kB / 482.8 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005733/0.3698, allocations: 111.9 kB / 482.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3698, allocations: 128 / 482.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002237/0.37, allocations: 158.8 kB / 483 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.3702, allocations: 8 kB / 483 MB, free: 14.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.3714, allocations: 427.6 kB / 483.5 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.3716, allocations: 0.716 MB / 484.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.172e-05/0.3717, allocations: 16.41 kB / 484.2 MB, free: 12.87 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.387e-05/0.3717, allocations: 11.44 kB / 484.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of SimCode: time 4e-07/0.3718, allocations: 0 / 484.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of Templates: time 0.003637/0.3754, allocations: 1.455 MB / 485.7 MB, free: 11.41 MB / 362.7 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches