Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.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.001278/0.001278, allocations: 84.3 kB / 20.68 MB, free: 1.035 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.001331/0.001331, allocations: 168.8 kB / 23.95 MB, free: 4.172 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.434/1.434, allocations: 177.1 MB / 204.3 MB, free: 9.172 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.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.334e-06/2.334e-06, allocations: 1.25 kB / 325.1 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.181e-05/2.415e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.003855/0.003879, allocations: 2.686 MB / 327.8 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.005261, allocations: 0.7555 MB / 328.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001441/0.005405, allocations: 5.469 kB / 328.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002332/0.005638, allocations: 62.75 kB / 328.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003078/0.005946, allocations: 117 kB / 328.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.006259, allocations: 110.2 kB / 328.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004463/0.006706, allocations: 410.2 kB / 329.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.006915, allocations: 99.27 kB / 329.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004373/0.007353, allocations: 237.3 kB / 329.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.007576, allocations: 126.4 kB / 329.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.604e-05/0.007632, allocations: 34.25 kB / 329.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.361e-05/0.007696, allocations: 36.53 kB / 329.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.845e-05/0.007784, allocations: 80.3 kB / 329.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.007965, allocations: 123 kB / 329.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005532/0.008518, allocations: 418.1 kB / 330.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.008522, allocations: 3.938 kB / 330.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.008523, allocations: 0 / 330.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.00853, allocations: 0 / 330.3 MB, free: 13.35 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001305/0.009835, allocations: 0.5851 MB / 330.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.009872, allocations: 9.031 kB / 330.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.612e-05/0.009958, allocations: 43.44 kB / 331 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.01031, allocations: 216.2 kB / 331.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.757e-05/0.01034, allocations: 26.31 kB / 331.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.375e-05/0.0104, allocations: 29.19 kB / 331.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000605/0.011, allocations: 291 kB / 331.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.01101, allocations: 192 / 331.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/0.01105, allocations: 14.75 kB / 331.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.01107, allocations: 11.81 kB / 331.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006358/0.0117, allocations: 249.4 kB / 331.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001636/0.01334, allocations: 0.8703 MB / 332.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004037/0.01374, allocations: 142.3 kB / 332.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.01394, allocations: 67.81 kB / 332.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.01397, allocations: 6.188 kB / 332.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.014, allocations: 32.81 kB / 332.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.014, allocations: 0 / 332.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002125/0.01612, allocations: 0.6012 MB / 333.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.01617, allocations: 57.91 kB / 333.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/0.01648, allocations: 290 kB / 333.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.0165, allocations: 26.67 kB / 333.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.01667, allocations: 235.9 kB / 334.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.264e-05/0.01673, allocations: 69.36 kB / 334.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.01684, allocations: 68.83 kB / 334.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.01699, allocations: 341.3 kB / 334.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003031/0.01729, allocations: 92.16 kB / 334.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000381/0.01767, allocations: 209.6 kB / 334.9 MB, free: 9.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006652/0.01834, allocations: 300 kB / 335.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.01834, allocations: 5.438 kB / 335.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008942/0.01924, allocations: 398.9 kB / 335.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.01925, allocations: 9.094 kB / 335.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.01926, allocations: 4.531 kB / 335.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002483/0.01951, allocations: 61.48 kB / 335.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003359/0.01984, allocations: 82.28 kB / 335.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002094/0.02194, allocations: 2.588 MB / 338.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002762/0.02221, allocations: 19.83 kB / 338.3 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.057e-05/0.02225, allocations: 15.25 kB / 338.3 MB, free: 6.777 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0001655/0.02241, allocations: 153.4 kB / 338.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.563e-05/0.02247, allocations: 27.03 kB / 338.5 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.555e-05/0.02254, allocations: 32.75 kB / 338.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.02254, allocations: 2.281 kB / 338.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.02255, allocations: 1.188 kB / 338.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.036e-06/0.02256, allocations: 4.891 kB / 338.5 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000306/0.02286, allocations: 226.2 kB / 338.8 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.02287, allocations: 0 / 338.8 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000214/0.02308, allocations: 35.97 kB / 338.8 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000165/0.02325, allocations: 62.52 kB / 338.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.02326, allocations: 10.19 kB / 338.9 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001985/0.02525, allocations: 2.566 MB / 341.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.02525, allocations: 3.938 kB / 341.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00078/0.02603, allocations: 374.6 kB / 341.8 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.32e-05/0.02608, allocations: 22.66 kB / 341.8 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.761e-05/0.02611, allocations: 10.23 kB / 341.8 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.02633, allocations: 24.08 kB / 341.9 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.533e-05/0.02639, allocations: 13.69 kB / 341.9 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.02641, allocations: 8.562 kB / 341.9 MB, free: 3.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001998/0.02661, allocations: 196.7 kB / 342.1 MB, free: 3.301 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.02661, allocations: 0 / 342.1 MB, free: 3.301 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000415/0.02703, allocations: 72.38 kB / 342.1 MB, free: 3.293 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.0001364/0.02716, allocations: 109.1 kB / 342.2 MB, free: 3.191 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009692/0.02813, allocations: 469.9 kB / 342.7 MB, free: 2.703 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.02813, allocations: 4.125 kB / 342.7 MB, free: 2.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005257/0.02866, allocations: 348.5 kB / 343.1 MB, free: 2.336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.029, allocations: 24.62 kB / 343.1 MB, free: 2.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.03016, allocations: 0.5452 MB / 343.6 MB, free: 1.738 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001611/0.03032, allocations: 168.8 kB / 343.8 MB, free: 1.555 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.03044, allocations: 30.22 kB / 343.8 MB, free: 1.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.053e-05/0.03051, allocations: 28.5 kB / 343.8 MB, free: 1.496 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.03051, allocations: 0 / 343.8 MB, free: 1.496 MB / 302.1 MB Notification: Performance of Templates: time 0.00741/0.03792, allocations: 2.843 MB / 346.7 MB, free: 14.72 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.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.256878826767206]