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.001725/0.001725, allocations: 115.6 kB / 17.98 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002239/0.00224, allocations: 201.8 kB / 18.92 MB, free: 4.133 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 227.4 MB / 247.1 MB, free: 9.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2008/0.2008, allocations: 46.09 MB / 344.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 81.11 kB / 417.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.127, allocations: 62.44 MB / 480.1 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003478/0.1305, allocations: 1.969 MB / 482.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.1317, allocations: 0.5806 MB / 482.7 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.352e-05/0.1318, allocations: 0 / 482.7 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.894e-05/0.1319, allocations: 15.92 kB / 482.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002118/0.1321, allocations: 35.77 kB / 482.7 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002759/0.1324, allocations: 67.91 kB / 482.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001752/0.1326, allocations: 151.4 kB / 483 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.1328, allocations: 33.09 kB / 483 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.133, allocations: 79.66 kB / 483.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.1331, allocations: 71.73 kB / 483.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.875e-05/0.1332, allocations: 12 kB / 483.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.987e-05/0.1332, allocations: 19.94 kB / 483.2 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.114e-05/0.1333, allocations: 31.91 kB / 483.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.026e-05/0.1334, allocations: 59.67 kB / 483.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.1335, allocations: 108 kB / 483.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1335, allocations: 0 / 483.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1335, allocations: 0 / 483.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.363e-06/0.1336, allocations: 3.984 kB / 483.4 MB, free: 2.344 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.0007999/0.1344, allocations: 447 kB / 483.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.1344, allocations: 8.031 kB / 483.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003273/0.1347, allocations: 44.72 kB / 483.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.1349, allocations: 190.5 kB / 484 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.135, allocations: 4.375 kB / 484 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.424e-05/0.135, allocations: 12.38 kB / 484.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003312/0.1353, allocations: 140.4 kB / 484.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.1354, allocations: 4 kB / 484.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.1354, allocations: 0 / 484.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1354, allocations: 3.984 kB / 484.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003204/0.1357, allocations: 91.92 kB / 484.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009058/0.1366, allocations: 455.4 kB / 484.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000294/0.1369, allocations: 94.52 kB / 484.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.1371, allocations: 40.86 kB / 484.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.1371, allocations: 4 kB / 484.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.1371, allocations: 34.56 kB / 484.9 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.123e-06/0.1371, allocations: 4 kB / 484.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001335/0.1385, allocations: 313.1 kB / 485.2 MB, free: 320 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.1385, allocations: 102.8 kB / 485.3 MB, free: 192 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.1387, allocations: 148.2 kB / 485.5 MB, free: 36 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.1387, allocations: 33.7 kB / 485.5 MB, free: 16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.821e-05/0.1388, allocations: 116.1 kB / 485.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/0.1388, allocations: 19.7 kB / 485.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.849e-05/0.1389, allocations: 29.7 kB / 485.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.139, allocations: 322.8 kB / 486 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/0.1392, allocations: 64.02 kB / 486 MB, free: 15.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002376/0.1395, allocations: 96.23 kB / 486.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004121/0.1399, allocations: 134.5 kB / 486.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1399, allocations: 0 / 486.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005005/0.1404, allocations: 173.6 kB / 486.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.1404, allocations: 7.938 kB / 486.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.1404, allocations: 7.938 kB / 486.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.1405, allocations: 0 / 486.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006165/0.1411, allocations: 87.97 kB / 486.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001412/0.1425, allocations: 1.501 MB / 488 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002182/0.1427, allocations: 28.12 kB / 488.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.1428, allocations: 4 kB / 488.1 MB, free: 13.23 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.000105/0.1429, allocations: 125.7 kB / 488.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.568e-05/0.1429, allocations: 7.906 kB / 488.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004904/0.1434, allocations: 174.2 kB / 488.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.1434, allocations: 0 / 488.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1434, allocations: 4 kB / 488.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1434, allocations: 3.984 kB / 488.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007749/0.1442, allocations: 462.5 kB / 488.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1442, allocations: 0 / 488.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001611/0.1444, allocations: 27.91 kB / 488.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.1444, allocations: 4 kB / 488.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.1444, allocations: 4 kB / 488.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1444, allocations: 3.938 kB / 488.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1444, allocations: 0 / 488.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005017/0.1449, allocations: 251.3 kB / 489.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.627e-05/0.145, allocations: 85.02 kB / 489.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.145, allocations: 8 kB / 489.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/0.1453, allocations: 23.91 kB / 489.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.1453, allocations: 7.984 kB / 489.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.1453, allocations: 4 kB / 489.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.551e-05/0.1454, allocations: 114 kB / 489.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1454, allocations: 0 / 489.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002701/0.1457, allocations: 32 kB / 489.4 MB, free: 11.82 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.000106/0.1458, allocations: 99.17 kB / 489.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008778/0.1467, allocations: 183.8 kB / 489.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.1467, allocations: 0 / 489.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.147, allocations: 63.95 kB / 489.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000326/0.1473, allocations: 11.98 kB / 489.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.1485, allocations: 442 kB / 490.2 MB, free: 10.99 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.1488, allocations: 0.704 MB / 490.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.03e-05/0.1489, allocations: 15.44 kB / 490.9 MB, free: 10.24 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1489, allocations: 0 / 490.9 MB, free: 10.24 MB / 366.1 MB Notification: Performance of Templates: time 0.003514/0.1524, allocations: 1.834 MB / 492.7 MB, free: 8.414 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