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.0008862/0.0008862, allocations: 98.64 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001005/0.001005, allocations: 205.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002241/0.0002243, allocations: 4 kB / 306.6 MB, free: 1.391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08678/0.08703, allocations: 51.49 MB / 358.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.002575/0.08963, allocations: 2.299 MB / 360.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.09068, allocations: 0.7639 MB / 361.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.09081, allocations: 4 kB / 361.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.09096, allocations: 43.69 kB / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002379/0.09121, allocations: 103.7 kB / 361.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002167/0.09144, allocations: 71.86 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.09171, allocations: 263.4 kB / 361.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/0.09189, allocations: 109.7 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002122/0.09211, allocations: 131.5 kB / 361.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001674/0.09229, allocations: 155.3 kB / 362 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.278e-05/0.09233, allocations: 16 kB / 362 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.158e-05/0.09237, allocations: 20 kB / 362 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.922e-05/0.09244, allocations: 59.75 kB / 362.1 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.2e-05/0.09252, allocations: 89.52 kB / 362.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002816/0.09281, allocations: 291.4 kB / 362.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.09282, allocations: 4 kB / 362.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.09283, allocations: 0 / 362.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.09284, allocations: 0 / 362.5 MB, free: 9.477 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001097/0.09394, allocations: 0.608 MB / 363.1 MB, free: 8.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.09399, allocations: 8.031 kB / 363.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.902e-05/0.09407, allocations: 43.47 kB / 363.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.09438, allocations: 258.5 kB / 363.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/0.09441, allocations: 28.66 kB / 363.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.8e-05/0.09447, allocations: 39.95 kB / 363.4 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005687/0.09504, allocations: 286 kB / 363.7 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.09507, allocations: 0 / 363.7 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.423e-05/0.09511, allocations: 16 kB / 363.7 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.09512, allocations: 4 kB / 363.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006144/0.09574, allocations: 274.4 kB / 364 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.09734, allocations: 1.131 MB / 365.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003684/0.09772, allocations: 162.6 kB / 365.3 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.09776, allocations: 4 kB / 365.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.09779, allocations: 30.56 kB / 365.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.363e-06/0.0978, allocations: 0 / 365.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001995/0.0998, allocations: 0.6771 MB / 366 MB, free: 5.711 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.025e-05/0.09984, allocations: 55.59 kB / 366.1 MB, free: 5.645 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002708/0.1001, allocations: 283 kB / 366.3 MB, free: 5.359 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.1001, allocations: 29.7 kB / 366.4 MB, free: 5.324 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.1003, allocations: 231.4 kB / 366.6 MB, free: 5.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.129e-05/0.1003, allocations: 82.88 kB / 366.7 MB, free: 5.008 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.355e-05/0.1004, allocations: 4 kB / 366.7 MB, free: 5.004 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1005, allocations: 338.8 kB / 367 MB, free: 4.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002848/0.1008, allocations: 115.7 kB / 367.1 MB, free: 4.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003258/0.1011, allocations: 204 kB / 367.3 MB, free: 4.305 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/0.1014, allocations: 129.1 kB / 367.5 MB, free: 4.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1014, allocations: 4 kB / 367.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008007/0.1022, allocations: 419.4 kB / 367.9 MB, free: 3.758 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.1023, allocations: 8 kB / 367.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.1023, allocations: 4 kB / 367.9 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002236/0.1025, allocations: 61.61 kB / 367.9 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000318/0.1028, allocations: 79.89 kB / 368 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/0.1046, allocations: 2.651 MB / 370.7 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.1049, allocations: 32.11 kB / 370.7 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.1049, allocations: 15.98 kB / 370.7 MB, free: 0.6367 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000131/0.105, allocations: 149.7 kB / 370.9 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.639e-05/0.1051, allocations: 27.62 kB / 370.9 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.754e-05/0.1052, allocations: 34.2 kB / 370.9 MB, free: 428 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1052, allocations: 4 kB / 370.9 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1052, allocations: 4 kB / 370.9 MB, free: 420 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.1052, allocations: 0 / 370.9 MB, free: 420 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003359/0.1055, allocations: 337.6 kB / 371.3 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1055, allocations: 3.953 kB / 371.3 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.16/0.2655, allocations: 37.73 kB / 371.3 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002571/0.2658, allocations: 56.33 kB / 371.4 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.2659, allocations: 5.922 kB / 371.4 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001502/0.2674, allocations: 2.649 MB / 374 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2674, allocations: 1.188 kB / 374 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007711/0.2682, allocations: 401.1 kB / 374.4 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.26e-05/0.2683, allocations: 103.5 kB / 374.5 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.2683, allocations: 1.469 kB / 374.5 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.2685, allocations: 22.02 kB / 374.5 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.444e-05/0.2686, allocations: 23.72 kB / 374.6 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.2686, allocations: 6.969 kB / 374.6 MB, free: 16.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002158/0.2689, allocations: 201.9 kB / 374.8 MB, free: 16.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2689, allocations: 0 / 374.8 MB, free: 16.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004333/0.2693, allocations: 71.75 kB / 374.8 MB, free: 16.61 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001219/0.2694, allocations: 100.4 kB / 374.9 MB, free: 16.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.2705, allocations: 0.49 MB / 375.4 MB, free: 16.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2705, allocations: 4.969 kB / 375.4 MB, free: 16.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005316/0.271, allocations: 356.6 kB / 375.8 MB, free: 16.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.2713, allocations: 35.81 kB / 375.8 MB, free: 16.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.2727, allocations: 0.6812 MB / 376.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003394/0.2731, allocations: 0.7847 MB / 377.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001581/0.2732, allocations: 30.19 kB / 377.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.069e-05/0.2733, allocations: 20.28 kB / 377.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.2733, allocations: 1.062 kB / 377.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of Templates: time 0.007129/0.2805, allocations: 2.481 MB / 379.8 MB, free: 14.84 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches