Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001165, allocations: 95.67 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.001401/0.001402, allocations: 184.3 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.301/1.301, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.0003023, allocations: 5.438 kB / 300.7 MB, free: 6.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09278/0.0931, allocations: 50.43 MB / 351.1 MB, free: 11.9 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.006068/0.0992, allocations: 5.244 MB / 356.4 MB, free: 6.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004138/0.1034, allocations: 2.303 MB / 358.7 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007539/0.1042, allocations: 23.94 kB / 358.7 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001009/0.1052, allocations: 266.4 kB / 359 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0018/0.107, allocations: 0.6075 MB / 359.6 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002006/0.109, allocations: 0.8869 MB / 360.5 MB, free: 2.539 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.1103, allocations: 0.7105 MB / 361.2 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002256/0.1126, allocations: 1.163 MB / 362.3 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008511/0.1134, allocations: 354.7 kB / 362.7 MB, free: 272 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007878/0.1142, allocations: 446 kB / 363.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000153/0.1144, allocations: 48 kB / 363.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008407/0.1152, allocations: 307.6 kB / 363.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.1154, allocations: 167.3 kB / 363.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.1156, allocations: 205.2 kB / 363.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001105/0.1167, allocations: 1.098 MB / 364.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1168, allocations: 0 / 364.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1168, allocations: 4 kB / 364.9 MB, free: 14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.1168, allocations: 0 / 364.9 MB, free: 14 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.003725/0.1205, allocations: 1.46 MB / 366.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.1206, allocations: 8.031 kB / 366.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002967/0.1235, allocations: 490.2 kB / 366.9 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005926/0.1241, allocations: 473.5 kB / 367.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.824e-05/0.1242, allocations: 86.22 kB / 367.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/0.1244, allocations: 115.9 kB / 367.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.1261, allocations: 0.9666 MB / 368.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/0.1261, allocations: 0 / 368.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.299e-05/0.1262, allocations: 44 kB / 368.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.1262, allocations: 28 kB / 368.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.128, allocations: 0.9691 MB / 369.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005821/0.1339, allocations: 3.701 MB / 373.2 MB, free: 5.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001964/0.1359, allocations: 1.549 MB / 374.8 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000107/0.136, allocations: 98.16 kB / 374.9 MB, free: 3.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008373/0.1368, allocations: 482.4 kB / 375.4 MB, free: 3.016 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 2.314e-06/0.1368, allocations: 0 / 375.4 MB, free: 3.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=122): time 0.008318/0.1452, allocations: 3.916 MB / 379.3 MB, free: 14.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.237e-05/0.1453, allocations: 145.5 kB / 379.4 MB, free: 14.81 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004114/0.1457, allocations: 389.5 kB / 379.8 MB, free: 14.42 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.139e-05/0.1458, allocations: 45.7 kB / 379.8 MB, free: 14.37 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/0.146, allocations: 431.5 kB / 380.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002624/0.1463, allocations: 406 kB / 380.7 MB, free: 13.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.973e-05/0.1464, allocations: 24 kB / 380.7 MB, free: 13.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1465, allocations: 382.7 kB / 381.1 MB, free: 13.13 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006459/0.1471, allocations: 342.5 kB / 381.4 MB, free: 12.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007757/0.1479, allocations: 0.5366 MB / 381.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007544/0.1487, allocations: 436.2 kB / 382.4 MB, free: 11.78 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.1487, allocations: 4 kB / 382.4 MB, free: 11.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002321/0.151, allocations: 1.361 MB / 383.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.1511, allocations: 8 kB / 383.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.1511, allocations: 4 kB / 383.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008069/0.1519, allocations: 338.1 kB / 384.1 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008282/0.1527, allocations: 203.7 kB / 384.3 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007011/0.1598, allocations: 7.783 MB / 392 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007363/0.1605, allocations: 47.97 kB / 392.1 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.625e-05/0.1606, allocations: 44 kB / 392.1 MB, free: 1.449 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004158/0.161, allocations: 257.7 kB / 392.4 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-05/0.1611, allocations: 75.12 kB / 392.5 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002379/0.1635, allocations: 1.282 MB / 393.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.1635, allocations: 12 kB / 393.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.1636, allocations: 8 kB / 393.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.1636, allocations: 3.984 kB / 393.8 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003602/0.1672, allocations: 2.414 MB / 396.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.1672, allocations: 4 kB / 396.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006951/0.1679, allocations: 147.8 kB / 396.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007864/0.1687, allocations: 337.1 kB / 396.7 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.349e-05/0.1688, allocations: 27.98 kB / 396.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006681/0.1755, allocations: 7.542 MB / 404.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1755, allocations: 0 / 404.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002928/0.1784, allocations: 1.767 MB / 406 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003164/0.1787, allocations: 216.2 kB / 406.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.568e-05/0.1789, allocations: 28 kB / 406.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004924/0.1794, allocations: 35.98 kB / 406.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.1795, allocations: 92.86 kB / 406.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.78e-05/0.1796, allocations: 32 kB / 406.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.1799, allocations: 271.1 kB / 406.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.262e-06/0.1799, allocations: 0 / 406.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001174/0.1811, allocations: 319.9 kB / 407 MB, free: 1.918 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 19,(1,100.0%) 2,(1,100.0%) 4,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002716/0.1814, allocations: 171 kB / 407.1 MB, free: 1.738 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002384/0.1837, allocations: 1.606 MB / 408.7 MB, free: 88 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1838, allocations: 0 / 408.7 MB, free: 88 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/0.1853, allocations: 1.15 MB / 409.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.1856, allocations: 53.55 kB / 409.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003297/0.1889, allocations: 2.325 MB / 412.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005095/0.1894, allocations: 1.04 MB / 413.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004616/0.1899, allocations: 98.02 kB / 413.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/0.1901, allocations: 55.42 kB / 413.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1901, allocations: 0 / 413.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of Templates: time 0.01602/0.2061, allocations: 10 MB / 423.5 MB, free: 1.266 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches