Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 94.11 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 180.5 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003614, allocations: 7.625 kB / 300.7 MB, free: 5.949 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1291, allocations: 50.43 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004104/0.1333, allocations: 2.264 MB / 353.4 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002366/0.1357, allocations: 1.037 MB / 354.4 MB, free: 8.41 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.1359, allocations: 11.94 kB / 354.5 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000388/0.1363, allocations: 95.45 kB / 354.6 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004469/0.1367, allocations: 135.6 kB / 354.7 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001664/0.1384, allocations: 0.5529 MB / 355.2 MB, free: 7.617 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00048/0.1389, allocations: 203.6 kB / 355.4 MB, free: 7.418 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00147/0.1404, allocations: 0.5056 MB / 355.9 MB, free: 6.895 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002218/0.1406, allocations: 115.6 kB / 356.1 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002588/0.1409, allocations: 131.5 kB / 356.2 MB, free: 6.652 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.724e-05/0.141, allocations: 12 kB / 356.2 MB, free: 6.641 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004591/0.1414, allocations: 143.8 kB / 356.3 MB, free: 6.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.621e-05/0.1415, allocations: 39.83 kB / 356.4 MB, free: 6.461 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.1416, allocations: 81.52 kB / 356.5 MB, free: 6.375 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006369/0.1423, allocations: 378.9 kB / 356.8 MB, free: 6.004 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.1423, allocations: 0 / 356.8 MB, free: 6.004 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1423, allocations: 0 / 356.8 MB, free: 6.004 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.1423, allocations: 0 / 356.8 MB, free: 6.004 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.002515/0.1448, allocations: 0.663 MB / 357.5 MB, free: 5.289 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.1449, allocations: 8.031 kB / 357.5 MB, free: 5.281 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001558/0.1465, allocations: 127.5 kB / 357.6 MB, free: 5.156 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004964/0.147, allocations: 261.5 kB / 357.9 MB, free: 4.863 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.999e-05/0.147, allocations: 28.59 kB / 357.9 MB, free: 4.836 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.438e-05/0.1471, allocations: 31.98 kB / 357.9 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008813/0.148, allocations: 325.1 kB / 358.3 MB, free: 4.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/0.1481, allocations: 7.938 kB / 358.3 MB, free: 4.473 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.89e-05/0.1481, allocations: 8 kB / 358.3 MB, free: 4.465 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.1482, allocations: 15.94 kB / 358.3 MB, free: 4.449 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006841/0.1489, allocations: 242.5 kB / 358.5 MB, free: 4.207 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003121/0.152, allocations: 1.447 MB / 360 MB, free: 2.621 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.153, allocations: 0.6982 MB / 360.7 MB, free: 1.805 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001257/0.1532, allocations: 93.11 kB / 360.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.1532, allocations: 30.56 kB / 360.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.915e-06/0.1532, allocations: 0 / 360.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001846/0.1551, allocations: 498.2 kB / 361.3 MB, free: 1.145 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.1552, allocations: 59.34 kB / 361.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.1554, allocations: 167.3 kB / 361.5 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.1555, allocations: 33.7 kB / 361.5 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.1556, allocations: 172 kB / 361.7 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.608e-05/0.1557, allocations: 90.75 kB / 361.8 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.83e-05/0.1558, allocations: 4 kB / 361.8 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.1559, allocations: 326.8 kB / 362.1 MB, free: 264 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001879/0.1561, allocations: 64.53 kB / 362.2 MB, free: 200 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.1564, allocations: 136.1 kB / 362.3 MB, free: 40 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002536/0.1567, allocations: 89.2 kB / 362.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.1567, allocations: 7.953 kB / 362.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008916/0.1576, allocations: 320.9 kB / 362.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1576, allocations: 6.188 kB / 362.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.1577, allocations: 4 kB / 362.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004282/0.1581, allocations: 76.8 kB / 362.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.1584, allocations: 39.92 kB / 362.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002856/0.1612, allocations: 1.859 MB / 364.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.1615, allocations: 27.72 kB / 364.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.1615, allocations: 8.094 kB / 364.7 MB, free: 13.47 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002043/0.1617, allocations: 153.7 kB / 364.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.737e-05/0.1618, allocations: 15.81 kB / 364.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008471/0.1627, allocations: 295.9 kB / 365.2 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1627, allocations: 0 / 365.2 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.1627, allocations: 4 kB / 365.2 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1627, allocations: 0 / 365.2 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/0.1642, allocations: 0.6866 MB / 365.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.1643, allocations: 0 / 365.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.1645, allocations: 23.98 kB / 365.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003655/0.1648, allocations: 72.75 kB / 366 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.1649, allocations: 4 kB / 366 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002712/0.1676, allocations: 1.862 MB / 367.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1676, allocations: 0 / 367.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.1686, allocations: 454.6 kB / 368.3 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.1688, allocations: 108.8 kB / 368.4 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.084e-05/0.1689, allocations: 11.95 kB / 368.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.1691, allocations: 3.984 kB / 368.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.33e-05/0.1691, allocations: 15.98 kB / 368.4 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.1692, allocations: 8 kB / 368.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001472/0.1693, allocations: 131.4 kB / 368.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1693, allocations: 0 / 368.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008241/0.1702, allocations: 95.73 kB / 368.6 MB, free: 9.305 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * 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 (15): * Single equations (assignments): 14 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002349/0.1704, allocations: 123.3 kB / 368.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008802/0.1713, allocations: 342.5 kB / 369.1 MB, free: 8.828 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1713, allocations: 0 / 369.1 MB, free: 8.828 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005173/0.1719, allocations: 255.2 kB / 369.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.1722, allocations: 16 kB / 369.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.1737, allocations: 0.7106 MB / 370.1 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.1741, allocations: 0.7635 MB / 370.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001953/0.1743, allocations: 17.95 kB / 370.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.741e-05/0.1744, allocations: 23.44 kB / 370.9 MB, free: 6.984 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1744, allocations: 0 / 370.9 MB, free: 6.984 MB / 302.1 MB Notification: Performance of Templates: time 0.00882/0.1833, allocations: 2.416 MB / 373.3 MB, free: 4.578 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches