Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 108 kB / 16.92 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001898/0.001897, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 43.12 kB / 300.6 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07883/0.07988, allocations: 49.45 MB / 350.1 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.006391/0.08631, allocations: 5.083 MB / 355.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0035/0.08984, allocations: 2.078 MB / 357.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002869/0.09015, allocations: 16 kB / 357.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00292/0.09308, allocations: 1.4 MB / 358.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.09426, allocations: 0.5896 MB / 359.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001864/0.09613, allocations: 1.046 MB / 360.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007351/0.09688, allocations: 0.7511 MB / 361 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008692/0.09776, allocations: 0.6575 MB / 361.7 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003584/0.09813, allocations: 338.8 kB / 362 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000432/0.09857, allocations: 434.3 kB / 362.4 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.338e-05/0.09867, allocations: 68 kB / 362.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006679/0.09935, allocations: 391.6 kB / 362.9 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.09948, allocations: 167.4 kB / 363.1 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003067/0.0998, allocations: 386.1 kB / 363.4 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0011/0.1009, allocations: 1.18 MB / 364.6 MB, free: 5.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.1009, allocations: 0 / 364.6 MB, free: 5.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1009, allocations: 0 / 364.6 MB, free: 5.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.1009, allocations: 0 / 364.6 MB, free: 5.797 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004142/0.1051, allocations: 1.463 MB / 366.1 MB, free: 4.285 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.1051, allocations: 8.031 kB / 366.1 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002607/0.1077, allocations: 387.7 kB / 366.5 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000212/0.108, allocations: 255.8 kB / 366.7 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.145e-05/0.108, allocations: 66.38 kB / 366.8 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.1082, allocations: 80.38 kB / 366.9 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001567/0.1097, allocations: 0.8798 MB / 367.7 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.1098, allocations: 0 / 367.7 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.593e-05/0.1099, allocations: 40 kB / 367.8 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.1099, allocations: 20 kB / 367.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001795/0.1117, allocations: 0.8003 MB / 368.6 MB, free: 1.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1404/0.2521, allocations: 2.957 MB / 371.5 MB, free: 23.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.2533, allocations: 1.004 MB / 372.6 MB, free: 22.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005951/0.2539, allocations: 241.9 kB / 372.8 MB, free: 22.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-05/0.254, allocations: 93.33 kB / 372.9 MB, free: 22.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.2541, allocations: 40.42 kB / 372.9 MB, free: 22.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.365e-06/0.2541, allocations: 0 / 372.9 MB, free: 22.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.008215/0.2623, allocations: 2.422 MB / 375.3 MB, free: 21.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.2624, allocations: 87.17 kB / 375.4 MB, free: 21.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003499/0.2627, allocations: 319.6 kB / 375.7 MB, free: 21.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.525e-05/0.2628, allocations: 40.02 kB / 375.8 MB, free: 21.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.2629, allocations: 356.9 kB / 376.1 MB, free: 21.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/0.263, allocations: 215 kB / 376.3 MB, free: 21.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.2633, allocations: 147.4 kB / 376.5 MB, free: 21.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.289e-05/0.2634, allocations: 355.8 kB / 376.8 MB, free: 20.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007902/0.2642, allocations: 273.1 kB / 377.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000862/0.265, allocations: 0.5108 MB / 377.6 MB, free: 20.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001629/0.2667, allocations: 0.8119 MB / 378.4 MB, free: 19.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.2667, allocations: 6.25 kB / 378.4 MB, free: 19.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002163/0.2689, allocations: 0.9019 MB / 379.3 MB, free: 19.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.2689, allocations: 17.86 kB / 379.3 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/0.2689, allocations: 7.625 kB / 379.3 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002673/0.2692, allocations: 74.34 kB / 379.4 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009097/0.2701, allocations: 202.6 kB / 379.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001598/0.2717, allocations: 2.867 MB / 382.5 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000743/0.2725, allocations: 59.77 kB / 382.5 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-05/0.2726, allocations: 41.34 kB / 382.6 MB, free: 16.52 MB / 302.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.000361/0.2729, allocations: 213.7 kB / 382.8 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.273, allocations: 53.47 kB / 382.8 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002061/0.2751, allocations: 0.7407 MB / 383.6 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.2751, allocations: 6.531 kB / 383.6 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.2752, allocations: 1.312 kB / 383.6 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.2752, allocations: 7.078 kB / 383.6 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003178/0.2784, allocations: 1.437 MB / 385 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.2784, allocations: 1.25 kB / 385 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007132/0.2791, allocations: 131.7 kB / 385.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001931/0.2793, allocations: 65.02 kB / 385.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.78e-05/0.2794, allocations: 20.19 kB / 385.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/0.2807, allocations: 2.847 MB / 388.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2807, allocations: 3.938 kB / 388.1 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002681/0.2834, allocations: 1.087 MB / 389.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002056/0.2836, allocations: 175.8 kB / 389.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.403e-05/0.2837, allocations: 11.61 kB / 389.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000544/0.2843, allocations: 47.98 kB / 389.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.2844, allocations: 47.02 kB / 389.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.095e-05/0.2845, allocations: 20.39 kB / 389.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002227/0.2847, allocations: 216.8 kB / 389.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2847, allocations: 4 kB / 389.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007638/0.2855, allocations: 176.8 kB / 389.9 MB, free: 11.54 MB / 302.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.0002335/0.2857, allocations: 164.3 kB / 390 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002286/0.288, allocations: 0.9436 MB / 391 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.288, allocations: 3.828 kB / 391 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009801/0.289, allocations: 0.5536 MB / 391.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.2895, allocations: 50.89 kB / 391.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/0.292, allocations: 1.254 MB / 392.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.2923, allocations: 0.882 MB / 393.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004734/0.2928, allocations: 96.16 kB / 393.8 MB, free: 9.227 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.2929, allocations: 50.7 kB / 393.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.293, allocations: 0 / 393.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of Templates: time 0.01069/0.3036, allocations: 6.446 MB / 400.3 MB, free: 6.449 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches