Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001821/0.001821, allocations: 117.7 kB / 18.46 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002232/0.002232, allocations: 204.9 kB / 19.4 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.584/2.584, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4655/0.4675, allocations: 50.55 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.007578/0.4751, allocations: 2.835 MB / 412.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003261/0.4784, allocations: 0.7866 MB / 413.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004762/0.479, allocations: 11.94 kB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004762/0.4795, allocations: 67.42 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00512/0.4847, allocations: 99.11 kB / 413.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007868/0.4855, allocations: 115.8 kB / 413.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009946/0.4865, allocations: 394.5 kB / 414.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004879/0.4871, allocations: 130.9 kB / 414.4 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006206/0.4877, allocations: 163.4 kB / 414.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000479/0.4882, allocations: 179.2 kB / 414.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.4883, allocations: 36 kB / 414.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.4885, allocations: 36 kB / 414.8 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.4886, allocations: 75.75 kB / 414.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003259/0.489, allocations: 183 kB / 415 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008288/0.4898, allocations: 403.6 kB / 415.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.4899, allocations: 4 kB / 415.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.105e-06/0.4899, allocations: 0 / 415.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.925e-05/0.4899, allocations: 0 / 415.4 MB, free: 12.07 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.002339/0.4923, allocations: 0.647 MB / 416.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.122e-05/0.4923, allocations: 8.031 kB / 416.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.4925, allocations: 40.47 kB / 416.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007606/0.4933, allocations: 279.4 kB / 416.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.05e-05/0.4934, allocations: 25.03 kB / 416.4 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.772e-05/0.4935, allocations: 36.38 kB / 416.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.4946, allocations: 290.4 kB / 416.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.4947, allocations: 3.938 kB / 416.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.291e-05/0.4948, allocations: 12 kB / 416.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.4948, allocations: 8 kB / 416.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.4961, allocations: 254.5 kB / 417 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003576/0.4997, allocations: 1.116 MB / 418.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000783/0.5005, allocations: 153.4 kB / 418.3 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004012/0.501, allocations: 68.81 kB / 418.3 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.508e-05/0.501, allocations: 7.938 kB / 418.3 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/0.5011, allocations: 30.56 kB / 418.4 MB, free: 8.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 4.949e-06/0.5011, allocations: 0 / 418.4 MB, free: 8.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.008508/0.5096, allocations: 0.5979 MB / 419 MB, free: 8.301 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.988e-05/0.5098, allocations: 59.34 kB / 419 MB, free: 8.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006685/0.5105, allocations: 290.9 kB / 419.3 MB, free: 7.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.333e-05/0.5106, allocations: 29.7 kB / 419.3 MB, free: 7.902 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002698/0.5108, allocations: 231.5 kB / 419.6 MB, free: 7.672 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.511, allocations: 70.95 kB / 419.6 MB, free: 7.602 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/0.5112, allocations: 69.59 kB / 419.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002653/0.5115, allocations: 334.8 kB / 420 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006057/0.5121, allocations: 91.94 kB / 420.1 MB, free: 7.102 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006962/0.5128, allocations: 196 kB / 420.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.5141, allocations: 313.1 kB / 420.6 MB, free: 6.516 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.5141, allocations: 3.938 kB / 420.6 MB, free: 6.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001937/0.5161, allocations: 401.2 kB / 421 MB, free: 6.109 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.929e-05/0.5162, allocations: 11.12 kB / 421 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.5162, allocations: 4 kB / 421 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004725/0.5167, allocations: 61.67 kB / 421.1 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000604/0.5173, allocations: 71.89 kB / 421.2 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00386/0.5212, allocations: 2.829 MB / 424 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005552/0.5218, allocations: 23.98 kB / 424 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.608e-05/0.5219, allocations: 16 kB / 424 MB, free: 2.812 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0003294/0.5222, allocations: 149.7 kB / 424.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.5223, allocations: 31.69 kB / 424.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001306/0.5225, allocations: 34.2 kB / 424.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.822e-06/0.5225, allocations: 4 kB / 424.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.5225, allocations: 0 / 424.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.5226, allocations: 7.922 kB / 424.2 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007335/0.5233, allocations: 341.4 kB / 424.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-06/0.5233, allocations: 0 / 424.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004326/0.5238, allocations: 35.97 kB / 424.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003932/0.5242, allocations: 61.8 kB / 424.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.5243, allocations: 4 kB / 424.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007771/0.532, allocations: 2.83 MB / 427.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/0.5321, allocations: 0 / 427.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001667/0.5338, allocations: 376.8 kB / 427.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.534, allocations: 96.77 kB / 428 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.491e-05/0.5341, allocations: 8 kB / 428 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004065/0.5345, allocations: 27.91 kB / 428 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.5347, allocations: 15.98 kB / 428 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.257e-05/0.5347, allocations: 11.98 kB / 428 MB, free: 14.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003964/0.5352, allocations: 194 kB / 428.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5352, allocations: 0 / 428.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008409/0.536, allocations: 72 kB / 428.3 MB, free: 14.15 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.0002423/0.5363, allocations: 111.2 kB / 428.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.5382, allocations: 485 kB / 428.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.85e-06/0.5382, allocations: 0.8125 kB / 428.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.5392, allocations: 354.4 kB / 429.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006817/0.5399, allocations: 28.88 kB / 429.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.5422, allocations: 0.5772 MB / 429.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006187/0.5428, allocations: 0.7714 MB / 430.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.543, allocations: 27.38 kB / 430.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.543, allocations: 0 / 430.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of Templates: time 0.02141/0.5645, allocations: 6.164 MB / 436.8 MB, free: 5.535 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches