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.001386/0.001386, allocations: 84.47 kB / 20.68 MB, free: 1.027 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.001412/0.001412, allocations: 163 kB / 23.95 MB, free: 4.156 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.454/1.454, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.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 1.482e-06/1.482e-06, allocations: 0 / 325.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.001e-05/2.149e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.006429/0.006451, allocations: 4.596 MB / 329.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004286/0.01074, allocations: 2.025 MB / 331.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006149/0.01135, allocations: 15.81 kB / 331.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003766/0.01512, allocations: 1.381 MB / 333.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001548/0.01666, allocations: 435.5 kB / 333.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002632/0.0193, allocations: 1.141 MB / 334.7 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001318/0.02061, allocations: 0.7758 MB / 335.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001169/0.02178, allocations: 0.5694 MB / 336 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009866/0.02277, allocations: 486.1 kB / 336.5 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006658/0.02344, allocations: 327 kB / 336.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001734/0.02361, allocations: 67.19 kB / 336.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001026/0.02463, allocations: 402.8 kB / 337.3 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001956/0.02483, allocations: 173.6 kB / 337.4 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004379/0.02527, allocations: 249.8 kB / 337.7 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001989/0.02726, allocations: 1.267 MB / 338.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.02726, allocations: 3.984 kB / 338.9 MB, free: 7.277 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.02726, allocations: 4 kB / 338.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.558e-05/0.0273, allocations: 0 / 338.9 MB, free: 7.273 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.005048/0.03235, allocations: 1.406 MB / 340.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.03239, allocations: 16.03 kB / 340.4 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002775/0.03516, allocations: 360.1 kB / 340.7 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.03545, allocations: 204.8 kB / 340.9 MB, free: 5.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.797e-05/0.03553, allocations: 62.38 kB / 341 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001675/0.0357, allocations: 80.38 kB / 341.1 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001921/0.03762, allocations: 0.8936 MB / 342 MB, free: 4.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.279e-05/0.03765, allocations: 4.141 kB / 342 MB, free: 4.188 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.302e-05/0.03774, allocations: 43.92 kB / 342 MB, free: 4.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.875e-05/0.03776, allocations: 24 kB / 342 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002017/0.03978, allocations: 0.7847 MB / 342.8 MB, free: 3.332 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004567/0.04435, allocations: 2.304 MB / 345.1 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.04553, allocations: 0.5095 MB / 345.6 MB, free: 404 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005592/0.04608, allocations: 222.1 kB / 345.8 MB, free: 180 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.04619, allocations: 32.41 kB / 345.9 MB, free: 148 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/0.04623, allocations: 39.06 kB / 345.9 MB, free: 96 kB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.284e-06/0.04624, allocations: 0 / 345.9 MB, free: 96 kB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.008141/0.05438, allocations: 2.171 MB / 348.1 MB, free: 13.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.287e-05/0.05445, allocations: 89.59 kB / 348.2 MB, free: 13.78 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003982/0.05485, allocations: 319.9 kB / 348.5 MB, free: 13.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.0549, allocations: 33.7 kB / 348.5 MB, free: 13.42 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002804/0.05518, allocations: 375.9 kB / 348.9 MB, free: 13.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.05538, allocations: 222.1 kB / 349.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002548/0.05564, allocations: 146.6 kB / 349.2 MB, free: 12.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.05582, allocations: 346.8 kB / 349.6 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008574/0.05668, allocations: 269.8 kB / 349.8 MB, free: 12.06 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.05775, allocations: 0.5333 MB / 350.4 MB, free: 11.42 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001921/0.05967, allocations: 0.8088 MB / 351.2 MB, free: 10.51 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.05968, allocations: 4 kB / 351.2 MB, free: 10.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002352/0.06203, allocations: 0.9006 MB / 352.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.06205, allocations: 8 kB / 352.1 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.06206, allocations: 4 kB / 352.1 MB, free: 9.582 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000264/0.06232, allocations: 70.11 kB / 352.2 MB, free: 9.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009138/0.06324, allocations: 199.7 kB / 352.4 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002338/0.06557, allocations: 2.608 MB / 355 MB, free: 6.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006858/0.06626, allocations: 63.89 kB / 355 MB, free: 6.438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.744e-05/0.06633, allocations: 39.92 kB / 355.1 MB, free: 6.398 MB / 318.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.0003249/0.06665, allocations: 217.7 kB / 355.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.06676, allocations: 43.7 kB / 355.3 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002117/0.06888, allocations: 0.7296 MB / 356.1 MB, free: 5.387 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.06888, allocations: 8 kB / 356.1 MB, free: 5.379 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.06889, allocations: 3.938 kB / 356.1 MB, free: 5.375 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.964e-06/0.0689, allocations: 3.984 kB / 356.1 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.0717, allocations: 1.205 MB / 357.3 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.0717, allocations: 4 kB / 357.3 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000728/0.07243, allocations: 127.8 kB / 357.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001928/0.07262, allocations: 69.55 kB / 357.5 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.693e-05/0.07267, allocations: 15.98 kB / 357.5 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002263/0.07493, allocations: 2.58 MB / 360.1 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.07493, allocations: 4.062 kB / 360.1 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002833/0.07777, allocations: 1.081 MB / 361.2 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002378/0.078, allocations: 83.88 kB / 361.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.589e-05/0.07808, allocations: 20.05 kB / 361.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005358/0.07862, allocations: 43.95 kB / 361.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.07874, allocations: 48.41 kB / 361.3 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.455e-05/0.07879, allocations: 19.98 kB / 361.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002463/0.07904, allocations: 215 kB / 361.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.07904, allocations: 0 / 361.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007514/0.07979, allocations: 175.9 kB / 361.7 MB, free: 15.41 MB / 334.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.000294/0.08008, allocations: 167.1 kB / 361.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002237/0.08232, allocations: 0.8762 MB / 362.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.08232, allocations: 0 / 362.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.0835, allocations: 0.5277 MB / 363.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004281/0.08393, allocations: 44.58 kB / 363.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002783/0.08671, allocations: 1.142 MB / 364.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.08702, allocations: 286.8 kB / 364.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003662/0.08739, allocations: 84.41 kB / 364.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.08757, allocations: 52.47 kB / 364.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.08758, allocations: 7.938 kB / 364.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of Templates: time 0.01491/0.1025, allocations: 6.448 MB / 371.4 MB, free: 5.805 MB / 334.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins/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: 4.4789404682815075]