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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 194.6 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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=500,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=500,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 51.92 kB / 370.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2865, allocations: 52.18 MB / 423.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.007013/0.2936, allocations: 4.592 MB / 427.7 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003852/0.2974, allocations: 1.95 MB / 429.6 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003707/0.2978, allocations: 16 kB / 429.6 MB, free: 7.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003394/0.3012, allocations: 1.301 MB / 430.9 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001471/0.3026, allocations: 0.5553 MB / 431.5 MB, free: 5.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002262/0.3049, allocations: 1.004 MB / 432.5 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001048/0.306, allocations: 0.7472 MB / 433.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001002/0.307, allocations: 0.5672 MB / 433.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005255/0.3075, allocations: 346.8 kB / 434.2 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006364/0.3081, allocations: 382.3 kB / 434.5 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001365/0.3083, allocations: 68 kB / 434.6 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000829/0.3091, allocations: 375.6 kB / 435 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001705/0.3093, allocations: 163.4 kB / 435.1 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003864/0.3096, allocations: 306.6 kB / 435.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001679/0.3113, allocations: 1.213 MB / 436.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.3113, allocations: 3.984 kB / 436.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3113, allocations: 0 / 436.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.571e-05/0.3114, allocations: 0 / 436.6 MB, free: 0.832 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.004758/0.3161, allocations: 1.394 MB / 438 MB, free: 15.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.3162, allocations: 8.031 kB / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002692/0.3189, allocations: 392.1 kB / 438.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.3191, allocations: 201.5 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.536e-05/0.3192, allocations: 66.38 kB / 438.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001618/0.3194, allocations: 84.36 kB / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.3214, allocations: 0.9047 MB / 439.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.327e-05/0.3215, allocations: 0 / 439.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.343e-05/0.3216, allocations: 35.98 kB / 439.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.907e-05/0.3216, allocations: 20 kB / 439.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002065/0.3236, allocations: 0.8003 MB / 440.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004729/0.3284, allocations: 2.286 MB / 442.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.3296, allocations: 0.52 MB / 443.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005715/0.3302, allocations: 218.2 kB / 443.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.777e-05/0.3303, allocations: 16.48 kB / 443.6 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.3303, allocations: 35.06 kB / 443.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.494e-06/0.3303, allocations: 0 / 443.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.008622/0.3389, allocations: 2.206 MB / 445.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/0.339, allocations: 85.61 kB / 445.9 MB, free: 7.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003942/0.3394, allocations: 315.9 kB / 446.2 MB, free: 7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.086e-05/0.3394, allocations: 37.7 kB / 446.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.3397, allocations: 375.9 kB / 446.6 MB, free: 6.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002111/0.3399, allocations: 222.1 kB / 446.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002503/0.3402, allocations: 146.5 kB / 447 MB, free: 6.211 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.3404, allocations: 354.8 kB / 447.3 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008798/0.3412, allocations: 273.8 kB / 447.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.3423, allocations: 0.5333 MB / 448.1 MB, free: 4.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002003/0.3443, allocations: 0.8087 MB / 448.9 MB, free: 4.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.3444, allocations: 4 kB / 448.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002431/0.3468, allocations: 0.9087 MB / 449.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.3468, allocations: 8 kB / 449.8 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/0.3468, allocations: 8 kB / 449.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002953/0.3471, allocations: 73.86 kB / 449.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000982/0.3481, allocations: 203.7 kB / 450.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002465/0.3506, allocations: 2.616 MB / 452.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007035/0.3513, allocations: 71.83 kB / 452.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.881e-05/0.3513, allocations: 43.92 kB / 452.8 MB, free: 15.88 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.000319/0.3517, allocations: 217.7 kB / 453.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.651e-05/0.3518, allocations: 39.77 kB / 453.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002237/0.354, allocations: 0.7453 MB / 453.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.354, allocations: 4 kB / 453.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.702e-05/0.354, allocations: 4 kB / 453.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.3541, allocations: 3.984 kB / 453.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002896/0.3569, allocations: 1.212 MB / 455.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.357, allocations: 0 / 455.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007341/0.3577, allocations: 139.8 kB / 455.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001869/0.3579, allocations: 65.66 kB / 455.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.606e-05/0.3579, allocations: 15.98 kB / 455.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002258/0.3602, allocations: 2.596 MB / 457.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3602, allocations: 0 / 457.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002896/0.3631, allocations: 1.086 MB / 459 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002297/0.3633, allocations: 87.72 kB / 459 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.215e-05/0.3634, allocations: 15.94 kB / 459.1 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005445/0.3639, allocations: 47.94 kB / 459.1 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.364, allocations: 52.41 kB / 459.2 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.954e-05/0.3641, allocations: 23.98 kB / 459.2 MB, free: 9.242 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002505/0.3643, allocations: 211.1 kB / 459.4 MB, free: 9.031 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3643, allocations: 0 / 459.4 MB, free: 9.031 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006895/0.365, allocations: 180 kB / 459.6 MB, free: 8.855 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.0002745/0.3653, allocations: 167 kB / 459.7 MB, free: 8.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002187/0.3675, allocations: 0.8846 MB / 460.6 MB, free: 7.777 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.686e-06/0.3675, allocations: 4.062 kB / 460.6 MB, free: 7.773 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.3686, allocations: 0.5195 MB / 461.1 MB, free: 7.223 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004377/0.3691, allocations: 49.97 kB / 461.2 MB, free: 7.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002812/0.3719, allocations: 1.258 MB / 462.4 MB, free: 5.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.3722, allocations: 286.6 kB / 462.7 MB, free: 5.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004108/0.3726, allocations: 96.41 kB / 462.8 MB, free: 5.492 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.3728, allocations: 59.34 kB / 462.9 MB, free: 5.434 MB / 366.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3728, allocations: 0 / 462.9 MB, free: 5.434 MB / 366.1 MB Notification: Performance of Templates: time 0.01459/0.3874, allocations: 7.057 MB / 469.9 MB, free: 14.48 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.6931107472628355]