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.001139/0.001138, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 63.88 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2274, allocations: 50.55 MB / 409.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006056/0.2335, allocations: 5.039 MB / 414.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003747/0.2372, allocations: 2.152 MB / 416.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005073/0.2378, allocations: 16 kB / 416.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00359/0.2414, allocations: 1.4 MB / 417.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001312/0.2427, allocations: 413.4 kB / 418.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002295/0.245, allocations: 1.213 MB / 419.5 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000961/0.246, allocations: 0.7356 MB / 420.2 MB, free: 6.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009098/0.2469, allocations: 0.6495 MB / 420.9 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003989/0.2473, allocations: 330.8 kB / 421.2 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004531/0.2478, allocations: 430.3 kB / 421.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.203e-05/0.2479, allocations: 68 kB / 421.7 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008204/0.2487, allocations: 411.6 kB / 422.1 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.2488, allocations: 167.4 kB / 422.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002969/0.2491, allocations: 374.2 kB / 422.6 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001385/0.2505, allocations: 1.21 MB / 423.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.014e-06/0.2506, allocations: 0 / 423.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.2506, allocations: 7.922 kB / 423.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.906e-05/0.2506, allocations: 0 / 423.8 MB, free: 2.957 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.00446/0.2551, allocations: 1.477 MB / 425.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.2551, allocations: 15.97 kB / 425.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002638/0.2578, allocations: 388.1 kB / 425.7 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.2581, allocations: 256.1 kB / 426 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.099e-05/0.2581, allocations: 66.38 kB / 426 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.2583, allocations: 84.36 kB / 426.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001632/0.2599, allocations: 0.8721 MB / 427 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/0.26, allocations: 7.953 kB / 427 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.501e-05/0.26, allocations: 40 kB / 427 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.2601, allocations: 20 kB / 427 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001748/0.2618, allocations: 0.7925 MB / 427.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004228/0.2661, allocations: 3.018 MB / 430.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.2673, allocations: 1 MB / 431.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005157/0.2678, allocations: 238.4 kB / 432.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001492/0.268, allocations: 186.7 kB / 432.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.268, allocations: 35.12 kB / 432.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 3.797e-06/0.268, allocations: 0 / 432.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007122/0.2752, allocations: 2.409 MB / 434.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.2752, allocations: 81.67 kB / 434.8 MB, free: 7.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003053/0.2755, allocations: 307.1 kB / 435.1 MB, free: 7.094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.493e-05/0.2756, allocations: 41.69 kB / 435.1 MB, free: 7.047 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001972/0.2758, allocations: 367.9 kB / 435.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.276, allocations: 214.2 kB / 435.7 MB, free: 6.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002173/0.2762, allocations: 150.6 kB / 435.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.2763, allocations: 350.8 kB / 436.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007279/0.277, allocations: 265.8 kB / 436.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008689/0.2779, allocations: 0.5081 MB / 437 MB, free: 5.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001608/0.2795, allocations: 0.8075 MB / 437.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.2796, allocations: 0 / 437.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001977/0.2815, allocations: 0.895 MB / 438.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.2816, allocations: 15.98 kB / 438.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.2816, allocations: 8 kB / 438.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002382/0.2818, allocations: 65.62 kB / 438.7 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008263/0.2827, allocations: 203.7 kB / 438.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001899/0.2846, allocations: 2.868 MB / 441.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000623/0.2852, allocations: 64.08 kB / 441.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.588e-05/0.2853, allocations: 35.98 kB / 441.9 MB, free: 15.74 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.000271/0.2856, allocations: 217.5 kB / 442.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.617e-05/0.2857, allocations: 47.91 kB / 442.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001834/0.2875, allocations: 0.7311 MB / 442.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.311e-06/0.2875, allocations: 12 kB / 442.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2875, allocations: 0 / 442.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.2875, allocations: 0 / 442.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002498/0.29, allocations: 1.421 MB / 444.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2901, allocations: 4 kB / 444.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006445/0.2907, allocations: 127.8 kB / 444.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001619/0.2909, allocations: 61.66 kB / 444.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.2909, allocations: 15.98 kB / 444.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001763/0.2927, allocations: 2.85 MB / 447.4 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.2927, allocations: 0 / 447.4 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002365/0.2951, allocations: 1.079 MB / 448.5 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001793/0.2953, allocations: 168.8 kB / 448.6 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.3e-05/0.2954, allocations: 12 kB / 448.6 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004647/0.2958, allocations: 51.94 kB / 448.7 MB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.2959, allocations: 40.5 kB / 448.7 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.591e-05/0.296, allocations: 16 kB / 448.7 MB, free: 8.484 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001943/0.2962, allocations: 215.1 kB / 449 MB, free: 8.281 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2962, allocations: 4 kB / 449 MB, free: 8.277 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006428/0.2968, allocations: 175.9 kB / 449.1 MB, free: 8.105 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.0003012/0.2972, allocations: 163 kB / 449.3 MB, free: 7.938 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001945/0.2991, allocations: 0.9124 MB / 450.2 MB, free: 6.996 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2991, allocations: 0 / 450.2 MB, free: 6.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009198/0.3001, allocations: 0.5473 MB / 450.8 MB, free: 6.426 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004052/0.3005, allocations: 40.59 kB / 450.8 MB, free: 6.387 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/0.3029, allocations: 1.252 MB / 452 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.3033, allocations: 0.881 MB / 452.9 MB, free: 4.203 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003694/0.3036, allocations: 88.5 kB / 453 MB, free: 4.113 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.3038, allocations: 47.42 kB / 453.1 MB, free: 4.07 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3038, allocations: 4 kB / 453.1 MB, free: 4.066 MB / 366.1 MB Notification: Performance of Templates: time 0.01143/0.3152, allocations: 6.412 MB / 459.5 MB, free: 13.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/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