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.001476/0.001476, allocations: 110.4 kB / 17.06 MB, free: 6.023 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.001784/0.001784, allocations: 191 kB / 17.99 MB, free: 5.109 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.292/1.292, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009415/0.0009416, allocations: 47.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2677, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.007697/0.2755, allocations: 6.466 MB / 407.2 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004633/0.2801, allocations: 2.534 MB / 409.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005356/0.2807, allocations: 20 kB / 409.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002863/0.2837, allocations: 1.282 MB / 411 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001749/0.2854, allocations: 0.6796 MB / 411.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002146/0.2876, allocations: 1.101 MB / 412.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00125/0.2889, allocations: 1.067 MB / 413.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001173/0.29, allocations: 0.8963 MB / 414.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004929/0.2905, allocations: 442.4 kB / 415.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000585/0.2911, allocations: 0.5407 MB / 415.7 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.2913, allocations: 100 kB / 415.8 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008148/0.2921, allocations: 407.6 kB / 416.2 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001598/0.2923, allocations: 223.2 kB / 416.4 MB, free: 9.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003998/0.2927, allocations: 0.5209 MB / 417 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001552/0.2942, allocations: 1.511 MB / 418.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2942, allocations: 0 / 418.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2942, allocations: 0 / 418.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.386e-05/0.2943, allocations: 0 / 418.5 MB, free: 7.047 MB / 334.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.004183/0.2985, allocations: 1.628 MB / 420.1 MB, free: 5.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.2985, allocations: 11.97 kB / 420.1 MB, free: 5.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003125/0.3016, allocations: 487.2 kB / 420.6 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006476/0.3023, allocations: 490.2 kB / 421.1 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.164e-05/0.3024, allocations: 90.2 kB / 421.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001564/0.3025, allocations: 112 kB / 421.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001763/0.3043, allocations: 0.9628 MB / 422.2 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.247e-05/0.3044, allocations: 11.91 kB / 422.2 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.76e-05/0.3045, allocations: 44 kB / 422.3 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.18e-05/0.3045, allocations: 24 kB / 422.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.3063, allocations: 0.9613 MB / 423.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005397/0.3117, allocations: 3.662 MB / 426.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001853/0.3136, allocations: 1.544 MB / 428.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007501/0.3143, allocations: 448.4 kB / 428.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.3145, allocations: 94.09 kB / 429 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00081/0.3153, allocations: 478.4 kB / 429.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.615e-06/0.3153, allocations: 0 / 429.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.008755/0.3241, allocations: 3.994 MB / 433.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.974e-05/0.3242, allocations: 145.5 kB / 433.6 MB, free: 7.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004308/0.3246, allocations: 397.5 kB / 434 MB, free: 6.805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.499e-05/0.3247, allocations: 49.7 kB / 434 MB, free: 6.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002916/0.325, allocations: 423.6 kB / 434.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002824/0.3253, allocations: 425.8 kB / 434.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002759/0.3256, allocations: 198.9 kB / 435.1 MB, free: 5.707 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3257, allocations: 382.8 kB / 435.4 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006788/0.3264, allocations: 346.5 kB / 435.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008081/0.3272, allocations: 0.5483 MB / 436.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.3287, allocations: 0.9411 MB / 437.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.3288, allocations: 4 kB / 437.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002467/0.3312, allocations: 1.386 MB / 438.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.3313, allocations: 8 kB / 438.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.3313, allocations: 4 kB / 438.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008488/0.3321, allocations: 351.1 kB / 439 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008297/0.333, allocations: 207.7 kB / 439.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007744/0.3407, allocations: 8.486 MB / 447.7 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007328/0.3415, allocations: 47.97 kB / 447.8 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-05/0.3416, allocations: 43.94 kB / 447.8 MB, free: 8.27 MB / 366.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,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * 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.0004718/0.3421, allocations: 265.6 kB / 448.1 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.3422, allocations: 75.14 kB / 448.1 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002448/0.3446, allocations: 1.301 MB / 449.4 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.3447, allocations: 15.98 kB / 449.4 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.3447, allocations: 8 kB / 449.5 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.3447, allocations: 3.984 kB / 449.5 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003963/0.3487, allocations: 2.526 MB / 452 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.3487, allocations: 4 kB / 452 MB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006889/0.3494, allocations: 151.8 kB / 452.1 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007875/0.3502, allocations: 338 kB / 452.5 MB, free: 3.473 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.872e-05/0.3502, allocations: 24 kB / 452.5 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007184/0.3574, allocations: 8.109 MB / 460.6 MB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.3575, allocations: 7.938 kB / 460.6 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003208/0.3607, allocations: 1.821 MB / 462.4 MB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003292/0.361, allocations: 220.2 kB / 462.6 MB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.941e-05/0.3611, allocations: 24 kB / 462.7 MB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005084/0.3616, allocations: 35.98 kB / 462.7 MB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.3618, allocations: 104.7 kB / 462.8 MB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.658e-05/0.3619, allocations: 39.98 kB / 462.8 MB, free: 8.473 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002993/0.3622, allocations: 267.2 kB / 463.1 MB, free: 8.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3622, allocations: 0 / 463.1 MB, free: 8.211 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001121/0.3634, allocations: 319.9 kB / 463.4 MB, free: 7.898 MB / 382.1 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_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 80 * 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.0002787/0.3636, allocations: 165.3 kB / 463.6 MB, free: 7.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002506/0.3662, allocations: 1.624 MB / 465.2 MB, free: 6.062 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3662, allocations: 0 / 465.2 MB, free: 6.062 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001525/0.3677, allocations: 1.139 MB / 466.3 MB, free: 4.871 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005198/0.3682, allocations: 77.48 kB / 466.4 MB, free: 4.797 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00324/0.3715, allocations: 1.927 MB / 468.3 MB, free: 2.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005918/0.3721, allocations: 1.024 MB / 469.4 MB, free: 1.766 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004073/0.3725, allocations: 106.2 kB / 469.5 MB, free: 1.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.3727, allocations: 55.42 kB / 469.5 MB, free: 1.605 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3727, allocations: 0 / 469.5 MB, free: 1.605 MB / 382.1 MB Notification: Performance of Templates: time 0.01833/0.391, allocations: 11.15 MB / 480.7 MB, free: 6.461 MB / 398.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches