Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.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_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.126/1.126, allocations: 205.1 MB / 223.7 MB, free: 8.484 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.0008717/0.0008717, allocations: 98.06 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008358/0.0008361, allocations: 43.94 kB / 327.2 MB, free: 328 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1733/0.1741, allocations: 46.61 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.00563/0.1798, allocations: 6.425 MB / 380.2 MB, free: 40.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00273/0.1826, allocations: 2.563 MB / 382.8 MB, free: 38.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002718/0.1828, allocations: 19.56 kB / 382.8 MB, free: 38.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.1848, allocations: 1.193 MB / 384 MB, free: 37.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001004/0.1858, allocations: 0.6382 MB / 384.7 MB, free: 37.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001434/0.1873, allocations: 1.064 MB / 385.7 MB, free: 36.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007296/0.188, allocations: 1.055 MB / 386.8 MB, free: 35.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008895/0.1889, allocations: 0.7978 MB / 387.6 MB, free: 35.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003325/0.1892, allocations: 416.7 kB / 388 MB, free: 35.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000417/0.1897, allocations: 0.5416 MB / 388.5 MB, free: 34.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.929e-05/0.1898, allocations: 72 kB / 388.6 MB, free: 34.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004815/0.1903, allocations: 371.6 kB / 389 MB, free: 34.33 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.1904, allocations: 215.1 kB / 389.2 MB, free: 34.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002699/0.1906, allocations: 0.4974 MB / 389.7 MB, free: 33.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008361/0.1915, allocations: 1.479 MB / 391.1 MB, free: 32.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1915, allocations: 0 / 391.1 MB, free: 32.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.1915, allocations: 0 / 391.1 MB, free: 32.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.1915, allocations: 0 / 391.1 MB, free: 32.13 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.003145/0.1947, allocations: 1.652 MB / 392.8 MB, free: 30.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.654e-05/0.1947, allocations: 8.031 kB / 392.8 MB, free: 30.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003213/0.1979, allocations: 0.5811 MB / 393.4 MB, free: 29.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004335/0.1984, allocations: 0.4941 MB / 393.9 MB, free: 29.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.266e-05/0.1984, allocations: 86.3 kB / 394 MB, free: 29.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.1985, allocations: 116 kB / 394.1 MB, free: 29.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.1999, allocations: 1.007 MB / 395.1 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.567e-05/0.1999, allocations: 0 / 395.1 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.585e-05/0.2, allocations: 48 kB / 395.1 MB, free: 28.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.2, allocations: 31.94 kB / 395.2 MB, free: 28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.2015, allocations: 1.028 MB / 396.2 MB, free: 26.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004113/0.2056, allocations: 3.887 MB / 400.1 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.2071, allocations: 2.052 MB / 402.1 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005973/0.2077, allocations: 447.4 kB / 402.6 MB, free: 20.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.59e-05/0.2078, allocations: 98.16 kB / 402.7 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000613/0.2084, allocations: 486.4 kB / 403.1 MB, free: 19.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=98): time 2.104e-06/0.2084, allocations: 0 / 403.1 MB, free: 19.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=127): time 0.006914/0.2154, allocations: 4.014 MB / 407.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.2154, allocations: 149.5 kB / 407.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003077/0.2157, allocations: 405.8 kB / 407.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.101e-05/0.2158, allocations: 53.7 kB / 407.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.2159, allocations: 443.4 kB / 408.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001638/0.2161, allocations: 421.8 kB / 408.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.2163, allocations: 214.8 kB / 408.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.479e-05/0.2164, allocations: 382.7 kB / 409.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00056/0.217, allocations: 362.5 kB / 409.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006342/0.2176, allocations: 0.5876 MB / 410.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.2188, allocations: 1.005 MB / 411.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.2188, allocations: 7.938 kB / 411.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.001976/0.2208, allocations: 1.433 MB / 412.6 MB, free: 9.676 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.2208, allocations: 8 kB / 412.6 MB, free: 9.668 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.2209, allocations: 8 kB / 412.6 MB, free: 9.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006812/0.2215, allocations: 348.8 kB / 412.9 MB, free: 9.309 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007209/0.2223, allocations: 219.7 kB / 413.1 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004778/0.2271, allocations: 7.735 MB / 420.9 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005579/0.2276, allocations: 52.11 kB / 420.9 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.013e-05/0.2277, allocations: 51.97 kB / 421 MB, free: 0.7227 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002638/0.228, allocations: 265.5 kB / 421.2 MB, free: 464 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.038e-05/0.2281, allocations: 71.16 kB / 421.3 MB, free: 392 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002223/0.2303, allocations: 1.337 MB / 422.6 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.2303, allocations: 12 kB / 422.6 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.2303, allocations: 11.94 kB / 422.7 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.2303, allocations: 3.984 kB / 422.7 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003597/0.2339, allocations: 2.561 MB / 425.2 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.234, allocations: 4 kB / 425.2 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006176/0.2346, allocations: 151.8 kB / 425.4 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007111/0.2353, allocations: 336.2 kB / 425.7 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.511e-05/0.2354, allocations: 27.98 kB / 425.7 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006002/0.2414, allocations: 7.436 MB / 433.2 MB, free: 3.863 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2414, allocations: 8 kB / 433.2 MB, free: 3.855 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006362/0.2478, allocations: 5.454 MB / 438.6 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002464/0.248, allocations: 224.3 kB / 438.8 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.9e-05/0.2481, allocations: 35.92 kB / 438.9 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004607/0.2486, allocations: 35.98 kB / 438.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.2488, allocations: 96.8 kB / 439 MB, free: 13.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.613e-05/0.2488, allocations: 36 kB / 439 MB, free: 13.64 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002502/0.2491, allocations: 279.2 kB / 439.3 MB, free: 13.36 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2491, allocations: 0 / 439.3 MB, free: 13.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00105/0.2501, allocations: 364.1 kB / 439.7 MB, free: 13.01 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002281/0.2504, allocations: 171.1 kB / 439.8 MB, free: 12.83 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00226/0.2526, allocations: 1.639 MB / 441.5 MB, free: 11.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.2527, allocations: 0 / 441.5 MB, free: 11.15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001404/0.2541, allocations: 1.147 MB / 442.6 MB, free: 9.949 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004788/0.2546, allocations: 73.55 kB / 442.7 MB, free: 9.879 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00371/0.2583, allocations: 3.223 MB / 445.9 MB, free: 6.578 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005631/0.2588, allocations: 1.066 MB / 447 MB, free: 5.484 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004848/0.2593, allocations: 110.4 kB / 447.1 MB, free: 5.371 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.2595, allocations: 59.42 kB / 447.2 MB, free: 5.312 MB / 330.7 MB Notification: Performance of SimCode: time 4.21e-07/0.2595, allocations: 4 kB / 447.2 MB, free: 5.309 MB / 330.7 MB Notification: Performance of Templates: time 0.01636/0.2759, allocations: 11.49 MB / 458.6 MB, free: 9.82 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches