Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor") translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001888/0.001888, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002373/0.002373, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.473/2.473, allocations: 227.4 MB / 246.9 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4036/0.4036, allocations: 46.1 MB / 344.3 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002934/0.002935, allocations: 72.41 kB / 417.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1855, allocations: 62.45 MB / 479.9 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.006263/0.1918, allocations: 1.965 MB / 481.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.1939, allocations: 0.5922 MB / 482.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.1941, allocations: 0 / 482.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.1943, allocations: 7.922 kB / 482.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004134/0.1947, allocations: 39.7 kB / 482.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005002/0.1953, allocations: 67.92 kB / 482.6 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003412/0.1956, allocations: 143.4 kB / 482.8 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.1958, allocations: 29.11 kB / 482.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003926/0.1963, allocations: 71.7 kB / 482.8 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.1965, allocations: 59.75 kB / 482.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.927e-05/0.1966, allocations: 8 kB / 482.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001054/0.1967, allocations: 15.94 kB / 482.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.899e-05/0.1968, allocations: 27.89 kB / 483 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.1969, allocations: 55.72 kB / 483 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002853/0.1972, allocations: 108 kB / 483.1 MB, free: 2.531 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1972, allocations: 4 kB / 483.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1973, allocations: 0 / 483.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1973, allocations: 0 / 483.1 MB, free: 2.527 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001382/0.1987, allocations: 443.1 kB / 483.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.986e-05/0.1987, allocations: 16.03 kB / 483.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006146/0.1994, allocations: 40.72 kB / 483.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.1997, allocations: 188.2 kB / 483.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.1997, allocations: 4.375 kB / 483.8 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.674e-05/0.1998, allocations: 8.375 kB / 483.8 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006282/0.2005, allocations: 142.8 kB / 483.9 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.2005, allocations: 3.984 kB / 483.9 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.13e-05/0.2005, allocations: 8 kB / 484 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.2006, allocations: 0 / 484 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006883/0.2013, allocations: 99.86 kB / 484.1 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/0.2028, allocations: 451.3 kB / 484.5 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000668/0.2035, allocations: 94.52 kB / 484.6 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003046/0.2038, allocations: 44.92 kB / 484.6 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.009e-05/0.2039, allocations: 0 / 484.6 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.138e-05/0.2039, allocations: 38.56 kB / 484.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 2.054e-06/0.2039, allocations: 0 / 484.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.002714/0.2067, allocations: 317.1 kB / 485 MB, free: 500 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.444e-05/0.2068, allocations: 102.8 kB / 485.1 MB, free: 372 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/0.207, allocations: 145.8 kB / 485.2 MB, free: 216 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.2071, allocations: 29.69 kB / 485.3 MB, free: 180 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.2072, allocations: 116.1 kB / 485.4 MB, free: 56 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.143e-05/0.2073, allocations: 19.72 kB / 485.4 MB, free: 36 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.2074, allocations: 25.7 kB / 485.4 MB, free: 4 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.2076, allocations: 322.8 kB / 485.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004554/0.2081, allocations: 63.89 kB / 485.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004902/0.2086, allocations: 104.2 kB / 485.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009118/0.2095, allocations: 134.4 kB / 486 MB, free: 15.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2096, allocations: 4.031 kB / 486 MB, free: 15.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0011/0.2107, allocations: 173.4 kB / 486.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.2107, allocations: 7.938 kB / 486.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.2108, allocations: 8.047 kB / 486.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.2108, allocations: 4 kB / 486.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.2121, allocations: 79.91 kB / 486.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/0.2146, allocations: 1.395 MB / 487.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004394/0.215, allocations: 36.09 kB / 487.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.2151, allocations: 4 kB / 487.7 MB, free: 13.51 MB / 366.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 (9): * Single equations (assignments): 8 * 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 0.0002125/0.2153, allocations: 125.7 kB / 487.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.027e-05/0.2154, allocations: 7.906 kB / 487.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009761/0.2164, allocations: 166.3 kB / 488 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.2164, allocations: 0 / 488 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.2164, allocations: 4 kB / 488 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.2165, allocations: 3.984 kB / 488 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.218, allocations: 462.6 kB / 488.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.218, allocations: 0 / 488.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000324/0.2183, allocations: 23.97 kB / 488.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.2184, allocations: 4 kB / 488.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.2184, allocations: 8 kB / 488.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.315e-06/0.2184, allocations: 4.062 kB / 488.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.2184, allocations: 3.984 kB / 488.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.2195, allocations: 255.2 kB / 488.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.715e-05/0.2196, allocations: 85.02 kB / 488.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.229e-05/0.2197, allocations: 0 / 488.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004415/0.2202, allocations: 23.97 kB / 488.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.309e-05/0.2203, allocations: 7.984 kB / 488.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.2203, allocations: 4 kB / 488.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001455/0.2205, allocations: 113.6 kB / 489 MB, free: 12.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2205, allocations: 0 / 489 MB, free: 12.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005796/0.2211, allocations: 35.98 kB / 489 MB, free: 12.1 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000152/0.2213, allocations: 91.25 kB / 489.1 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001773/0.223, allocations: 180.1 kB / 489.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.2231, allocations: 3.938 kB / 489.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004652/0.2236, allocations: 68.36 kB / 489.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006351/0.2242, allocations: 11.98 kB / 489.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.2268, allocations: 436.1 kB / 489.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004351/0.2272, allocations: 0.7043 MB / 490.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.2274, allocations: 15.44 kB / 490.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of SimCode: time 1.633e-06/0.2274, allocations: 0 / 490.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of Templates: time 0.006901/0.2343, allocations: 1.822 MB / 492.3 MB, free: 8.719 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches