Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001778/0.001778, allocations: 177.3 kB / 17.41 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.344/3.344, allocations: 205.4 MB / 223.6 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001754/0.001754, allocations: 97.34 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006383/0.0006385, allocations: 12 kB / 328.2 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5929/0.5936, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1957/0.7894, allocations: 77 MB / 452.7 MB, free: 3.641 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004368/0.79, allocations: 71.95 kB / 452.8 MB, free: 3.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02629/0.8163, allocations: 3.159 MB / 456 MB, free: 408 kB / 330.7 MB Notification: Performance of FrontEnd: time 4.569e-06/0.8164, allocations: 4 kB / 456 MB, free: 404 kB / 330.7 MB Notification: Performance of Transformations before backend: time 3.177e-05/0.8164, allocations: 4 kB / 456 MB, free: 400 kB / 330.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.00151/0.818, allocations: 446.9 kB / 456.4 MB, free: 15.9 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.311e-05/0.8181, allocations: 12.03 kB / 456.4 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.8182, allocations: 12.84 kB / 456.4 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004029/0.8186, allocations: 198.5 kB / 456.6 MB, free: 15.65 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.8187, allocations: 4.375 kB / 456.6 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.868e-05/0.8188, allocations: 12.38 kB / 456.6 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000622/0.8194, allocations: 159 kB / 456.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/0.8195, allocations: 4.188 kB / 456.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.519e-05/0.8195, allocations: 7.938 kB / 456.8 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.8195, allocations: 4 kB / 456.8 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004755/0.82, allocations: 91.94 kB / 456.9 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.8219, allocations: 0.5109 MB / 457.4 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005472/0.8225, allocations: 110.5 kB / 457.5 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003578/0.8229, allocations: 72.83 kB / 457.6 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.561e-05/0.823, allocations: 4 kB / 457.6 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.56e-05/0.823, allocations: 34.72 kB / 457.6 MB, free: 14.55 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 6.282e-06/0.8231, allocations: 0 / 457.6 MB, free: 14.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0009123/0.824, allocations: 153.6 kB / 457.8 MB, free: 14.4 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/0.8241, allocations: 102.8 kB / 457.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003075/0.8245, allocations: 162.5 kB / 458 MB, free: 14.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.789e-05/0.8245, allocations: 29.7 kB / 458.1 MB, free: 14.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.8247, allocations: 124.8 kB / 458.2 MB, free: 13.95 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.842e-05/0.8248, allocations: 19.66 kB / 458.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.688e-05/0.8249, allocations: 8 kB / 458.2 MB, free: 13.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002867/0.8252, allocations: 322.8 kB / 458.5 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002289/0.8254, allocations: 39.97 kB / 458.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003016/0.8257, allocations: 85.12 kB / 458.6 MB, free: 13.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004868/0.8262, allocations: 107.4 kB / 458.7 MB, free: 13.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.8262, allocations: 0 / 458.7 MB, free: 13.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0006738/0.8269, allocations: 145.5 kB / 458.9 MB, free: 13.19 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.566e-05/0.827, allocations: 8 kB / 458.9 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.827, allocations: 4 kB / 458.9 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.133e-05/0.8271, allocations: 11.92 kB / 458.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009335/0.828, allocations: 79.92 kB / 459 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003048/0.8311, allocations: 1.405 MB / 460.4 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002942/0.8314, allocations: 32.08 kB / 460.4 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.8315, allocations: 4 kB / 460.4 MB, free: 11.51 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 () * 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.0002745/0.8318, allocations: 125.7 kB / 460.6 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.061e-05/0.8319, allocations: 15.81 kB / 460.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007095/0.8326, allocations: 163.2 kB / 460.7 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.8326, allocations: 0 / 460.7 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.8326, allocations: 0 / 460.7 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.086e-06/0.8326, allocations: 4 kB / 460.7 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/0.8341, allocations: 472.4 kB / 461.2 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.8341, allocations: 0 / 461.2 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000239/0.8344, allocations: 23.92 kB / 461.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004456/0.8348, allocations: 44.84 kB / 461.3 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/0.8349, allocations: 3.938 kB / 461.3 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001961/0.8368, allocations: 1.3 MB / 462.6 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.8369, allocations: 3.938 kB / 462.6 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009698/0.8379, allocations: 289.2 kB / 462.9 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001582/0.838, allocations: 96.97 kB / 462.9 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.8381, allocations: 4.062 kB / 463 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002407/0.8383, allocations: 15.98 kB / 463 MB, free: 8.715 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.275e-05/0.8384, allocations: 11.98 kB / 463 MB, free: 8.703 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.8385, allocations: 4 kB / 463 MB, free: 8.699 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001822/0.8386, allocations: 115.2 kB / 463.1 MB, free: 8.586 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8387, allocations: 0 / 463.1 MB, free: 8.586 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005885/0.8393, allocations: 51.84 kB / 463.1 MB, free: 8.535 MB / 346.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.0003084/0.8396, allocations: 95.25 kB / 463.2 MB, free: 8.434 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.8407, allocations: 147.8 kB / 463.4 MB, free: 8.289 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.8407, allocations: 4 kB / 463.4 MB, free: 8.285 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005713/0.8413, allocations: 162.6 kB / 463.5 MB, free: 8.113 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004906/0.8418, allocations: 11.78 kB / 463.6 MB, free: 8.105 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002718/0.8445, allocations: 0.6406 MB / 464.2 MB, free: 7.43 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006147/0.8452, allocations: 0.7198 MB / 464.9 MB, free: 6.684 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.285e-05/0.8453, allocations: 15.44 kB / 464.9 MB, free: 6.668 MB / 346.7 MB Notification: Performance of SimCode: time 1.994e-06/0.8453, allocations: 0 / 464.9 MB, free: 6.668 MB / 346.7 MB Notification: Performance of Templates: time 0.01111/0.8564, allocations: 2.175 MB / 467.1 MB, free: 4.492 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches