Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001879/0.001879, allocations: 215.6 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.464/1.464, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 51.91 kB / 379 MB, free: 2.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2487, allocations: 53.36 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.007127/0.2558, allocations: 4.593 MB / 436.9 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004048/0.2598, allocations: 2.02 MB / 439 MB, free: 64 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005269/0.2604, allocations: 16 kB / 439 MB, free: 48 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003436/0.2638, allocations: 1.302 MB / 440.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001326/0.2651, allocations: 421.3 kB / 440.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002488/0.2676, allocations: 1.132 MB / 441.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.2686, allocations: 0.7472 MB / 442.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009359/0.2696, allocations: 0.5672 MB / 443.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004634/0.27, allocations: 346.8 kB / 443.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004935/0.2705, allocations: 378.3 kB / 443.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.2706, allocations: 68 kB / 443.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008106/0.2714, allocations: 395.6 kB / 444.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001453/0.2716, allocations: 167.4 kB / 444.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003097/0.2719, allocations: 310.6 kB / 444.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001497/0.2734, allocations: 1.217 MB / 446 MB, free: 9.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2734, allocations: 3.938 kB / 446 MB, free: 9.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2734, allocations: 0 / 446 MB, free: 9.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.2734, allocations: 0 / 446 MB, free: 9.02 MB / 350.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.004449/0.2778, allocations: 1.413 MB / 447.4 MB, free: 7.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.2779, allocations: 12.03 kB / 447.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002618/0.2805, allocations: 372.1 kB / 447.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.2808, allocations: 193.6 kB / 448 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.921e-05/0.2808, allocations: 66.38 kB / 448 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.281, allocations: 88.36 kB / 448.1 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001773/0.2828, allocations: 0.9008 MB / 449 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.115e-05/0.2828, allocations: 3.953 kB / 449 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.979e-05/0.2829, allocations: 32 kB / 449 MB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.496e-05/0.2829, allocations: 20 kB / 449.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/0.2848, allocations: 0.7925 MB / 449.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004382/0.2892, allocations: 2.293 MB / 452.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.2903, allocations: 0.5024 MB / 452.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005405/0.2909, allocations: 218.2 kB / 452.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.291, allocations: 28.47 kB / 452.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.291, allocations: 39.06 kB / 452.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.505e-06/0.291, allocations: 0 / 452.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007551/0.2986, allocations: 2.171 MB / 455.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.786e-05/0.2986, allocations: 93.53 kB / 455.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003664/0.299, allocations: 319.9 kB / 455.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.163e-05/0.299, allocations: 33.7 kB / 455.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002578/0.2993, allocations: 379.9 kB / 455.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.2995, allocations: 218.1 kB / 456.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.2997, allocations: 146.6 kB / 456.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.2999, allocations: 350.7 kB / 456.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007911/0.3007, allocations: 273.8 kB / 456.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009873/0.3017, allocations: 0.5333 MB / 457.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.3035, allocations: 0.8049 MB / 458.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3035, allocations: 0 / 458.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002181/0.3057, allocations: 0.8972 MB / 459.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.3057, allocations: 8 kB / 459.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.3057, allocations: 11.94 kB / 459.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002468/0.3059, allocations: 73.67 kB / 459.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008714/0.3068, allocations: 191.7 kB / 459.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002281/0.3091, allocations: 2.631 MB / 462 MB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006299/0.3097, allocations: 59.91 kB / 462.1 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.285e-05/0.3098, allocations: 39.98 kB / 462.1 MB, free: 8.125 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.0003017/0.3101, allocations: 213.6 kB / 462.3 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.263e-05/0.3102, allocations: 43.83 kB / 462.4 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001952/0.3121, allocations: 0.7257 MB / 463.1 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3121, allocations: 4 kB / 463.1 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3121, allocations: 0 / 463.1 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.3121, allocations: 7.984 kB / 463.1 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002681/0.3148, allocations: 1.208 MB / 464.3 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.3148, allocations: 0 / 464.3 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006616/0.3155, allocations: 139.8 kB / 464.5 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001855/0.3157, allocations: 57.67 kB / 464.5 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.199e-05/0.3157, allocations: 15.98 kB / 464.5 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002155/0.3179, allocations: 2.592 MB / 467.1 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3179, allocations: 4 kB / 467.1 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002605/0.3205, allocations: 1.078 MB / 468.2 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002242/0.3207, allocations: 91.67 kB / 468.3 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.306e-05/0.3208, allocations: 8 kB / 468.3 MB, free: 1.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004845/0.3213, allocations: 48.02 kB / 468.3 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.3214, allocations: 48.34 kB / 468.4 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.17e-05/0.3214, allocations: 23.98 kB / 468.4 MB, free: 1.535 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002421/0.3216, allocations: 207.1 kB / 468.6 MB, free: 1.332 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3216, allocations: 0 / 468.6 MB, free: 1.332 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007039/0.3223, allocations: 187.9 kB / 468.8 MB, free: 1.148 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.0002893/0.3226, allocations: 159.1 kB / 469 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.3248, allocations: 0.8768 MB / 469.8 MB, free: 84 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3248, allocations: 0 / 469.8 MB, free: 84 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.3258, allocations: 0.5195 MB / 470.4 MB, free: 15.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000462/0.3263, allocations: 52.64 kB / 470.4 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002732/0.329, allocations: 1.229 MB / 471.6 MB, free: 14.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.3293, allocations: 286.7 kB / 471.9 MB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002342/0.3295, allocations: 63.41 kB / 472 MB, free: 13.86 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3295, allocations: 0 / 472 MB, free: 13.86 MB / 382.1 MB Notification: Performance of Templates: time 0.01858/0.3481, allocations: 13.88 MB / 485.9 MB, free: 0 / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.967019793111831]