Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001613/0.001613, allocations: 118.5 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002056/0.002056, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.304/2.304, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002125/0.002125, allocations: 63.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3742, allocations: 50.53 MB / 409.9 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.01077/0.385, allocations: 5.062 MB / 415 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006471/0.3916, allocations: 2.144 MB / 417.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009563/0.3926, allocations: 16 kB / 417.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00542/0.3981, allocations: 1.396 MB / 418.5 MB, free: 9.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002483/0.4006, allocations: 421.4 kB / 419 MB, free: 8.672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004413/0.405, allocations: 1.207 MB / 420.2 MB, free: 7.469 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001817/0.4069, allocations: 0.7356 MB / 420.9 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001842/0.4087, allocations: 0.6468 MB / 421.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008798/0.4096, allocations: 338.8 kB / 421.9 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000952/0.4106, allocations: 426.3 kB / 422.3 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002342/0.4109, allocations: 68 kB / 422.4 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001606/0.4125, allocations: 415.6 kB / 422.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002854/0.4128, allocations: 163.4 kB / 422.9 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007704/0.4136, allocations: 378.2 kB / 423.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002782/0.4164, allocations: 1.199 MB / 424.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.295e-06/0.4164, allocations: 4 kB / 424.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4164, allocations: 3.938 kB / 424.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.102e-05/0.4165, allocations: 0 / 424.5 MB, free: 3.105 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.008033/0.4245, allocations: 1.455 MB / 426 MB, free: 1.598 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.4246, allocations: 8.031 kB / 426 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004843/0.4295, allocations: 379.7 kB / 426.3 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.43, allocations: 275.8 kB / 426.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.4301, allocations: 58.38 kB / 426.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003602/0.4305, allocations: 84.38 kB / 426.7 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003312/0.4339, allocations: 0.8761 MB / 427.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.011e-05/0.4339, allocations: 0 / 427.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001602/0.4341, allocations: 36 kB / 427.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.357e-05/0.4342, allocations: 20 kB / 427.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003101/0.4373, allocations: 0.8003 MB / 428.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007614/0.4449, allocations: 3.009 MB / 431.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001967/0.447, allocations: 1 MB / 432.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000838/0.4478, allocations: 242.4 kB / 432.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000314/0.4482, allocations: 174.8 kB / 432.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/0.4483, allocations: 39.12 kB / 432.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 6.722e-06/0.4483, allocations: 0 / 432.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01211/0.4604, allocations: 2.396 MB / 435.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.985e-05/0.4606, allocations: 85.67 kB / 435.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000594/0.4612, allocations: 311.1 kB / 435.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.336e-05/0.4613, allocations: 33.7 kB / 435.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003323/0.4616, allocations: 354.6 kB / 436.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002666/0.4619, allocations: 220.9 kB / 436.3 MB, free: 6.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003617/0.4623, allocations: 138.6 kB / 436.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.4625, allocations: 346.8 kB / 436.8 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.4637, allocations: 273.8 kB / 437.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/0.4653, allocations: 0.5003 MB / 437.6 MB, free: 5.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002738/0.4681, allocations: 0.8114 MB / 438.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.31e-05/0.4681, allocations: 4 kB / 438.4 MB, free: 4.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003567/0.4717, allocations: 0.8986 MB / 439.3 MB, free: 3.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.764e-05/0.4718, allocations: 8 kB / 439.3 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.499e-05/0.4718, allocations: 8 kB / 439.3 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004462/0.4723, allocations: 73.61 kB / 439.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.4736, allocations: 195.7 kB / 439.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003202/0.4768, allocations: 2.864 MB / 442.4 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/0.478, allocations: 67.89 kB / 442.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.4781, allocations: 43.88 kB / 442.5 MB, free: 15.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005319/0.4787, allocations: 217.6 kB / 442.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/0.4789, allocations: 39.53 kB / 442.8 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00319/0.4821, allocations: 0.7351 MB / 443.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.4821, allocations: 4 kB / 443.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.4821, allocations: 0 / 443.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.4822, allocations: 7.984 kB / 443.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004728/0.4869, allocations: 1.409 MB / 444.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.487, allocations: 0 / 444.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.4881, allocations: 131.8 kB / 445.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003529/0.4884, allocations: 61.67 kB / 445.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.229e-05/0.4885, allocations: 12 kB / 445.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003489/0.492, allocations: 2.853 MB / 448 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.059e-05/0.4921, allocations: 8.031 kB / 448 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004251/0.4963, allocations: 1.079 MB / 449.1 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004577/0.4968, allocations: 168.4 kB / 449.2 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/0.497, allocations: 8 kB / 449.2 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008212/0.4978, allocations: 47.95 kB / 449.3 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/0.498, allocations: 52.55 kB / 449.3 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.216e-05/0.4981, allocations: 16 kB / 449.4 MB, free: 8.695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003676/0.4985, allocations: 207.1 kB / 449.6 MB, free: 8.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.4985, allocations: 0 / 449.6 MB, free: 8.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001318/0.4998, allocations: 180 kB / 449.7 MB, free: 8.324 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004389/0.5003, allocations: 159.1 kB / 449.9 MB, free: 8.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003474/0.5038, allocations: 0.9124 MB / 450.8 MB, free: 7.219 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.5038, allocations: 0 / 450.8 MB, free: 7.219 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001685/0.5055, allocations: 0.5472 MB / 451.3 MB, free: 6.648 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008576/0.5064, allocations: 56.5 kB / 451.4 MB, free: 6.594 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004666/0.5111, allocations: 1.268 MB / 452.7 MB, free: 5.297 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008348/0.512, allocations: 0.8771 MB / 453.5 MB, free: 4.395 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004636/0.5125, allocations: 59.41 kB / 453.6 MB, free: 4.34 MB / 366.1 MB Notification: Performance of SimCode: time 1.503e-06/0.5125, allocations: 0 / 453.6 MB, free: 4.34 MB / 366.1 MB Notification: Performance of Templates: time 0.0293/0.5418, allocations: 13.19 MB / 466.8 MB, free: 7.164 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches