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.001579/0.001579, allocations: 121.7 kB / 17.83 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001659/0.001659, allocations: 205.8 kB / 18.79 MB, free: 4.102 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.456/1.456, allocations: 230.4 MB / 250 MB, free: 8.984 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.001928/0.001928, allocations: 67.83 kB / 367.3 MB, free: 7.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2596, allocations: 53.31 MB / 420.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.009081/0.2687, allocations: 6.529 MB / 427.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005178/0.2739, allocations: 2.647 MB / 429.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005456/0.2744, allocations: 23.94 kB / 429.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003046/0.2775, allocations: 1.267 MB / 431.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001456/0.279, allocations: 0.5357 MB / 431.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002458/0.2814, allocations: 1.264 MB / 432.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.2827, allocations: 1.083 MB / 434 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.2838, allocations: 0.6922 MB / 434.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005437/0.2843, allocations: 454.3 kB / 435.1 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006595/0.285, allocations: 0.5485 MB / 435.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001287/0.2851, allocations: 96 kB / 435.8 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008231/0.2859, allocations: 419.6 kB / 436.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002063/0.2861, allocations: 235.1 kB / 436.4 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004907/0.2866, allocations: 0.517 MB / 436.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001846/0.2885, allocations: 1.525 MB / 438.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.2885, allocations: 0 / 438.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2885, allocations: 0 / 438.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.2885, allocations: 0 / 438.5 MB, free: 6.449 MB / 350.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.004323/0.2928, allocations: 1.669 MB / 440.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2929, allocations: 19.97 kB / 440.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003324/0.2962, allocations: 0.492 MB / 440.6 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007298/0.2969, allocations: 0.4906 MB / 441.1 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.068e-05/0.297, allocations: 82.22 kB / 441.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001765/0.2972, allocations: 123.9 kB / 441.3 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001861/0.299, allocations: 0.9706 MB / 442.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.2991, allocations: 0 / 442.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/0.2992, allocations: 44 kB / 442.3 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.698e-05/0.2992, allocations: 28 kB / 442.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001966/0.3012, allocations: 0.9574 MB / 443.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006125/0.3073, allocations: 3.769 MB / 447.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002031/0.3093, allocations: 1.482 MB / 448.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007791/0.3101, allocations: 400.4 kB / 449 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001899/0.3103, allocations: 175.2 kB / 449.1 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008935/0.3112, allocations: 474.5 kB / 449.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.405e-06/0.3112, allocations: 0 / 449.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.009364/0.3205, allocations: 4.012 MB / 453.6 MB, free: 6.578 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.3206, allocations: 145.5 kB / 453.8 MB, free: 6.406 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005084/0.3212, allocations: 401.6 kB / 454.2 MB, free: 6.008 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.463e-05/0.3212, allocations: 53.64 kB / 454.2 MB, free: 5.949 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004149/0.3216, allocations: 440.9 kB / 454.6 MB, free: 5.512 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003814/0.322, allocations: 440.1 kB / 455.1 MB, free: 5.078 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003358/0.3223, allocations: 206.8 kB / 455.3 MB, free: 4.871 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002082/0.3226, allocations: 382.8 kB / 455.6 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000792/0.3233, allocations: 358.5 kB / 456 MB, free: 4.137 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009231/0.3243, allocations: 0.5351 MB / 456.5 MB, free: 3.539 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001739/0.326, allocations: 0.9459 MB / 457.5 MB, free: 2.535 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.326, allocations: 0 / 457.5 MB, free: 2.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002764/0.3288, allocations: 1.382 MB / 458.9 MB, free: 1.137 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.3288, allocations: 8 kB / 458.9 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.3288, allocations: 4 kB / 458.9 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009638/0.3298, allocations: 351.1 kB / 459.2 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000868/0.3307, allocations: 203.7 kB / 459.4 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009118/0.3398, allocations: 8.5 MB / 467.9 MB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008178/0.3406, allocations: 43.98 kB / 468 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.933e-05/0.3407, allocations: 52 kB / 468 MB, free: 7.422 MB / 382.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.0005857/0.3413, allocations: 261.5 kB / 468.3 MB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.3414, allocations: 79.53 kB / 468.3 MB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00281/0.3442, allocations: 1.289 MB / 469.6 MB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.234e-05/0.3442, allocations: 12 kB / 469.6 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.324e-05/0.3443, allocations: 8 kB / 469.6 MB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.3443, allocations: 7.984 kB / 469.7 MB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004389/0.3487, allocations: 2.518 MB / 472.2 MB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.3487, allocations: 4 kB / 472.2 MB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007041/0.3494, allocations: 151.8 kB / 472.3 MB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008107/0.3502, allocations: 327.3 kB / 472.6 MB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.59e-05/0.3502, allocations: 31.92 kB / 472.7 MB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008226/0.3585, allocations: 8.111 MB / 480.8 MB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3585, allocations: 0 / 480.8 MB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003431/0.3619, allocations: 1.821 MB / 482.6 MB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003275/0.3622, allocations: 228.5 kB / 482.8 MB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.3623, allocations: 24 kB / 482.9 MB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005257/0.3629, allocations: 39.98 kB / 482.9 MB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/0.3631, allocations: 104.7 kB / 483 MB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.734e-05/0.3631, allocations: 32 kB / 483 MB, free: 7.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003321/0.3635, allocations: 279.2 kB / 483.3 MB, free: 7.387 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3635, allocations: 0 / 483.3 MB, free: 7.387 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001153/0.3646, allocations: 319.9 kB / 483.6 MB, free: 7.074 MB / 398.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.0002928/0.3649, allocations: 179 kB / 483.8 MB, free: 6.891 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002788/0.3677, allocations: 1.554 MB / 485.3 MB, free: 5.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3677, allocations: 320 / 485.3 MB, free: 5.285 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001694/0.3694, allocations: 1.099 MB / 486.4 MB, free: 4.133 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005412/0.3699, allocations: 77.48 kB / 486.5 MB, free: 4.059 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0036/0.3735, allocations: 1.977 MB / 488.5 MB, free: 2.035 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006824/0.3742, allocations: 1.021 MB / 489.5 MB, free: 0.9844 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004327/0.3747, allocations: 106.2 kB / 489.6 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/0.3748, allocations: 55.44 kB / 489.7 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3748, allocations: 0 / 489.7 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of Templates: time 0.02181/0.3966, allocations: 11.47 MB / 0.4894 GB, free: 5.371 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins/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