Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(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.1.0-beta.om_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.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001909/0.001908, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002258/0.002258, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.496/1.496, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 63.67 kB / 307.9 MB, free: 492 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09726/0.0992, allocations: 50.55 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008895/0.1081, allocations: 6.485 MB / 364.9 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004986/0.1132, allocations: 2.636 MB / 367.6 MB, free: 4.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000748/0.114, allocations: 23.94 kB / 367.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003024/0.117, allocations: 1.271 MB / 368.9 MB, free: 3.457 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001604/0.1186, allocations: 0.524 MB / 369.4 MB, free: 2.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002523/0.1212, allocations: 1.267 MB / 370.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001433/0.1226, allocations: 1.071 MB / 371.7 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1592/0.2819, allocations: 0.8974 MB / 372.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009126/0.2828, allocations: 443.9 kB / 373 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007569/0.2836, allocations: 0.547 MB / 373.6 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002133/0.2838, allocations: 96.62 kB / 373.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001222/0.2851, allocations: 416.1 kB / 374.1 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002108/0.2853, allocations: 234.1 kB / 374.3 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005723/0.2859, allocations: 0.5205 MB / 374.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002319/0.2882, allocations: 1.509 MB / 376.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2882, allocations: 3.5 kB / 376.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.2882, allocations: 0 / 376.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.163e-05/0.2883, allocations: 3.938 kB / 376.4 MB, free: 8.945 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.004819/0.2931, allocations: 1.638 MB / 378 MB, free: 8.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.2932, allocations: 14 kB / 378 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003313/0.2965, allocations: 495.1 kB / 378.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009439/0.2975, allocations: 0.4925 MB / 379 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.572e-05/0.2976, allocations: 86.5 kB / 379.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001803/0.2977, allocations: 113 kB / 379.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001972/0.2997, allocations: 0.9671 MB / 380.2 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.587e-05/0.2998, allocations: 1.984 kB / 380.2 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.327e-05/0.2999, allocations: 45.22 kB / 380.2 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.474e-05/0.2999, allocations: 26.5 kB / 380.2 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001875/0.3018, allocations: 0.9639 MB / 381.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005991/0.3078, allocations: 3.796 MB / 385 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00181/0.3096, allocations: 1.543 MB / 386.5 MB, free: 4.195 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007556/0.3104, allocations: 431.1 kB / 386.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001484/0.3106, allocations: 186 kB / 387.1 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008208/0.3114, allocations: 474.3 kB / 387.6 MB, free: 3.629 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 3.897e-06/0.3114, allocations: 0 / 387.6 MB, free: 3.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.008858/0.3203, allocations: 4.001 MB / 391.6 MB, free: 1.699 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.157e-05/0.3204, allocations: 146 kB / 391.7 MB, free: 1.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000491/0.3209, allocations: 412.8 kB / 392.1 MB, free: 1.324 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.706e-05/0.321, allocations: 46.36 kB / 392.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002633/0.3212, allocations: 422.2 kB / 392.6 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000253/0.3215, allocations: 424.3 kB / 393 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002793/0.3218, allocations: 207.5 kB / 393.2 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.825e-05/0.3219, allocations: 375.6 kB / 393.6 MB, free: 180 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006666/0.3226, allocations: 356.6 kB / 393.9 MB, free: 44 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.3237, allocations: 0.5717 MB / 394.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001656/0.3253, allocations: 0.9391 MB / 395.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.3254, allocations: 3.375 kB / 395.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002891/0.3283, allocations: 1.384 MB / 396.8 MB, free: 14.7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.3283, allocations: 10.56 kB / 396.8 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.3283, allocations: 5.219 kB / 396.8 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009204/0.3293, allocations: 354.6 kB / 397.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008418/0.3301, allocations: 207 kB / 397.4 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009117/0.3392, allocations: 8.49 MB / 405.9 MB, free: 6.953 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009757/0.3403, allocations: 45.95 kB / 405.9 MB, free: 6.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.192e-05/0.3404, allocations: 46.61 kB / 406 MB, free: 6.918 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,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.0005357/0.3409, allocations: 254.6 kB / 406.2 MB, free: 6.719 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.3411, allocations: 79.53 kB / 406.3 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00266/0.3437, allocations: 1.304 MB / 407.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/0.3438, allocations: 12.78 kB / 407.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.3438, allocations: 13.25 kB / 407.6 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.3438, allocations: 7.969 kB / 407.6 MB, free: 5.926 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004696/0.3485, allocations: 2.537 MB / 410.2 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.3485, allocations: 0 / 410.2 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007181/0.3493, allocations: 151.9 kB / 410.3 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000879/0.3502, allocations: 336.9 kB / 410.6 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-05/0.3503, allocations: 24 kB / 410.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008662/0.3589, allocations: 8.118 MB / 418.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.359, allocations: 4.031 kB / 418.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00364/0.3626, allocations: 1.827 MB / 420.6 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004651/0.3631, allocations: 220.2 kB / 420.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.3632, allocations: 20 kB / 420.9 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005334/0.3638, allocations: 47.92 kB / 420.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002438/0.364, allocations: 96.8 kB / 421 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.726e-05/0.3641, allocations: 35.98 kB / 421 MB, free: 8 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000359/0.3645, allocations: 279.2 kB / 421.3 MB, free: 7.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3645, allocations: 0 / 421.3 MB, free: 7.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001387/0.3659, allocations: 319.9 kB / 421.6 MB, free: 7.414 MB / 334.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.0003556/0.3662, allocations: 184.9 kB / 421.8 MB, free: 7.238 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00366/0.3699, allocations: 1.648 MB / 423.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/0.37, allocations: 0 / 423.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001938/0.3719, allocations: 1.155 MB / 424.6 MB, free: 4.383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007374/0.3727, allocations: 78.58 kB / 424.7 MB, free: 4.309 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00398/0.3767, allocations: 1.998 MB / 426.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007609/0.3774, allocations: 1.028 MB / 427.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/0.3778, allocations: 67.41 kB / 427.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of SimCode: time 1.292e-06/0.3778, allocations: 0 / 427.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of Templates: time 0.03391/0.4117, allocations: 26.57 MB / 454.3 MB, free: 6.551 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches