Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001631/0.001631, allocations: 199.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 226.5 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007727/0.0007731, allocations: 98.83 kB / 296.8 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002367/0.0002369, allocations: 8 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2074, allocations: 51.29 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.003523/0.211, allocations: 4.362 MB / 412.4 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.2131, allocations: 1.943 MB / 414.4 MB, free: 21.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.2133, allocations: 16 kB / 414.4 MB, free: 21.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003929/0.2137, allocations: 222.9 kB / 414.6 MB, free: 21.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007006/0.2144, allocations: 341.1 kB / 414.9 MB, free: 20.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001377/0.2158, allocations: 0.9972 MB / 415.9 MB, free: 19.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004844/0.2163, allocations: 0.6885 MB / 416.6 MB, free: 19.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001506/0.2178, allocations: 1.171 MB / 417.8 MB, free: 17.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000262/0.2181, allocations: 278.9 kB / 418.1 MB, free: 17.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/0.2184, allocations: 378.5 kB / 418.4 MB, free: 17.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.261e-05/0.2184, allocations: 36 kB / 418.5 MB, free: 17.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004972/0.2189, allocations: 359.7 kB / 418.8 MB, free: 16.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.075e-05/0.219, allocations: 127.4 kB / 418.9 MB, free: 16.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001901/0.2192, allocations: 348.1 kB / 419.3 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006067/0.2198, allocations: 0.9007 MB / 420.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2198, allocations: 0 / 420.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2199, allocations: 0 / 420.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.2199, allocations: 0 / 420.2 MB, free: 15.55 MB / 298.7 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.003412/0.2233, allocations: 1.346 MB / 421.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.2233, allocations: 12.03 kB / 421.5 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002181/0.2255, allocations: 387.6 kB / 421.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.2257, allocations: 267.2 kB / 422.2 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.458e-05/0.2257, allocations: 66.38 kB / 422.2 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.735e-05/0.2258, allocations: 84.31 kB / 422.3 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.2272, allocations: 0.8915 MB / 423.2 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.108e-05/0.2273, allocations: 0 / 423.2 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.836e-05/0.2273, allocations: 32 kB / 423.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.2274, allocations: 20 kB / 423.3 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.2289, allocations: 0.8277 MB / 424.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003324/0.2322, allocations: 3.044 MB / 427.1 MB, free: 8.273 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009227/0.2332, allocations: 1.015 MB / 428.2 MB, free: 7.145 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004476/0.2336, allocations: 254.4 kB / 428.4 MB, free: 6.895 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.925e-05/0.2337, allocations: 174.8 kB / 428.6 MB, free: 6.688 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.2338, allocations: 39.12 kB / 428.6 MB, free: 6.641 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 1.733e-06/0.2338, allocations: 0 / 428.6 MB, free: 6.641 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.006909/0.2407, allocations: 2.7 MB / 431.3 MB, free: 3.844 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.2407, allocations: 85.67 kB / 431.4 MB, free: 3.742 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.241, allocations: 312.4 kB / 431.7 MB, free: 3.434 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.424e-05/0.241, allocations: 37.7 kB / 431.7 MB, free: 3.391 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.2412, allocations: 366.6 kB / 432.1 MB, free: 3.023 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.349e-05/0.2413, allocations: 212.9 kB / 432.3 MB, free: 2.812 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.716e-05/0.2413, allocations: 12 kB / 432.3 MB, free: 2.801 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.802e-05/0.2414, allocations: 354.7 kB / 432.7 MB, free: 2.445 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006928/0.2421, allocations: 297.8 kB / 432.9 MB, free: 2.156 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007533/0.2428, allocations: 0.5238 MB / 433.5 MB, free: 1.523 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001472/0.2443, allocations: 0.8544 MB / 434.3 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.2443, allocations: 4 kB / 434.3 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001969/0.2463, allocations: 0.9417 MB / 435.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.2463, allocations: 8 kB / 435.3 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.2463, allocations: 11.94 kB / 435.3 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000268/0.2466, allocations: 69.67 kB / 435.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009422/0.2476, allocations: 215.7 kB / 435.6 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002149/0.2497, allocations: 2.671 MB / 438.2 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006362/0.2504, allocations: 72.02 kB / 438.3 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.087e-05/0.2505, allocations: 39.98 kB / 438.4 MB, free: 12.26 MB / 314.7 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 (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.0002931/0.2508, allocations: 213.5 kB / 438.6 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.36e-05/0.2508, allocations: 39.53 kB / 438.6 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001988/0.2528, allocations: 0.7858 MB / 439.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.2528, allocations: 8 kB / 439.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2529, allocations: 0 / 439.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.2529, allocations: 3.984 kB / 439.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002684/0.2556, allocations: 1.488 MB / 440.9 MB, free: 9.645 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2556, allocations: 0 / 440.9 MB, free: 9.645 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006689/0.2563, allocations: 151.8 kB / 441 MB, free: 9.496 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001622/0.2564, allocations: 61.67 kB / 441.1 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.815e-05/0.2565, allocations: 15.98 kB / 441.1 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001789/0.2583, allocations: 2.644 MB / 443.8 MB, free: 6.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2583, allocations: 4.062 kB / 443.8 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002679/0.261, allocations: 1.156 MB / 444.9 MB, free: 5.312 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.2612, allocations: 160.6 kB / 445.1 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.073e-05/0.2613, allocations: 12 kB / 445.1 MB, free: 5.125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004996/0.2618, allocations: 64 kB / 445.1 MB, free: 5.062 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.2619, allocations: 40.5 kB / 445.2 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.954e-05/0.2619, allocations: 19.98 kB / 445.2 MB, free: 5.004 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002236/0.2622, allocations: 219.1 kB / 445.4 MB, free: 4.793 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2622, allocations: 4 kB / 445.4 MB, free: 4.789 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006623/0.2628, allocations: 176 kB / 445.6 MB, free: 4.617 MB / 314.7 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 (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.0002535/0.2631, allocations: 178.9 kB / 445.8 MB, free: 4.434 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002012/0.2651, allocations: 0.955 MB / 446.7 MB, free: 3.457 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2651, allocations: 0.5 kB / 446.7 MB, free: 3.457 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.2662, allocations: 0.5746 MB / 447.3 MB, free: 2.855 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.2666, allocations: 52.95 kB / 447.3 MB, free: 2.805 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002612/0.2692, allocations: 1.591 MB / 448.9 MB, free: 1.176 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.2696, allocations: 0.881 MB / 449.8 MB, free: 276 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.2699, allocations: 63.39 kB / 449.9 MB, free: 216 kB / 314.7 MB Notification: Performance of SimCode: time 3.41e-07/0.2699, allocations: 0 / 449.9 MB, free: 216 kB / 314.7 MB Notification: Performance of Templates: time 0.01444/0.2843, allocations: 13.18 MB / 463.1 MB, free: 3.047 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches