Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.000729/0.000729, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009916/0.001721, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006465/0.0006465, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008711/0.001518, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8556/0.8556, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1475/1.003, allocations: 52.49 MB / 238.5 MB, free: 7.625 MB / 234.7 MB " [Timeout remaining time 179] 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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 239.7 MB, free: 6.367 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.138e-05/2.272e-05, allocations: 6.906 kB / 239.7 MB, free: 6.363 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004008/0.004031, allocations: 2.84 MB / 242.6 MB, free: 3.52 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.005107, allocations: 0.756 MB / 243.3 MB, free: 2.762 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.005229, allocations: 5.094 kB / 243.3 MB, free: 2.758 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001654/0.005395, allocations: 63.39 kB / 243.4 MB, free: 2.695 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002055/0.0056, allocations: 110.2 kB / 243.5 MB, free: 2.59 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002187/0.005819, allocations: 103.8 kB / 243.6 MB, free: 2.488 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003494/0.006168, allocations: 402.3 kB / 244 MB, free: 2.094 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.006343, allocations: 85.97 kB / 244.1 MB, free: 2.008 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003469/0.00669, allocations: 273.3 kB / 244.4 MB, free: 1.742 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.006869, allocations: 119.7 kB / 244.5 MB, free: 1.625 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.304e-05/0.006922, allocations: 36.97 kB / 244.5 MB, free: 1.59 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.112e-05/0.006973, allocations: 32 kB / 244.5 MB, free: 1.559 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.518e-05/0.007029, allocations: 55.81 kB / 244.6 MB, free: 1.504 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.007133, allocations: 98.84 kB / 244.7 MB, free: 1.41 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002882/0.007421, allocations: 231 kB / 244.9 MB, free: 1.184 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.135e-05/0.007433, allocations: 0 / 244.9 MB, free: 1.184 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.007434, allocations: 0 / 244.9 MB, free: 1.184 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.007446, allocations: 0 / 244.9 MB, free: 1.184 MB / 234.7 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.0008983/0.008344, allocations: 0.6106 MB / 245.5 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.008375, allocations: 8.031 kB / 245.5 MB, free: 0.543 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.628e-05/0.008451, allocations: 50.69 kB / 245.6 MB, free: 0.4961 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.008682, allocations: 185.1 kB / 245.8 MB, free: 296 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.423e-05/0.008716, allocations: 25.03 kB / 245.8 MB, free: 272 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.531e-05/0.008761, allocations: 32.38 kB / 245.8 MB, free: 240 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000331/0.009092, allocations: 219.9 kB / 246 MB, free: 16 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.009104, allocations: 4.875 kB / 246 MB, free: 12 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.009126, allocations: 8.375 kB / 246.1 MB, free: 4 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.703e-05/0.009153, allocations: 13.95 kB / 246.1 MB, free: 15.99 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001589/0.009312, allocations: 84.44 kB / 246.1 MB, free: 15.91 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001108/0.01042, allocations: 0.7498 MB / 246.9 MB, free: 15.11 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.01059, allocations: 75.16 kB / 247 MB, free: 15.02 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.889e-05/0.01064, allocations: 29.44 kB / 247 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.01066, allocations: 4.562 kB / 247 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.01068, allocations: 36.22 kB / 247 MB, free: 14.95 MB / 250.7 MB Notification: Performance of pre-optimization done (n=17): time 1.373e-06/0.01068, allocations: 0 / 247 MB, free: 14.95 MB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.001018/0.0117, allocations: 408.8 kB / 247.4 MB, free: 14.54 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.01173, allocations: 52.41 kB / 247.5 MB, free: 14.48 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.01191, allocations: 256.7 kB / 247.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.01193, allocations: 30.2 kB / 247.8 MB, free: 14.18 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.01203, allocations: 212.1 kB / 248 MB, free: 13.97 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.034e-05/0.01208, allocations: 80.95 kB / 248.1 MB, free: 13.89 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.029e-05/0.01217, allocations: 73.61 kB / 248.1 MB, free: 13.81 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.098e-05/0.01226, allocations: 338.7 kB / 248.5 MB, free: 13.47 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.969e-05/0.01232, allocations: 27.98 kB / 248.5 MB, free: 13.45 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.0125, allocations: 128.8 kB / 248.6 MB, free: 13.27 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002133/0.01271, allocations: 203.7 kB / 248.8 MB, free: 13.04 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.01272, allocations: 4 kB / 248.8 MB, free: 13.03 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000326/0.01304, allocations: 232.5 kB / 249 MB, free: 12.79 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.01305, allocations: 4 kB / 249 MB, free: 12.79 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.01306, allocations: 4.406 kB / 249.1 MB, free: 12.79 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00032/0.01338, allocations: 77.58 kB / 249.1 MB, free: 12.7 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002308/0.01361, allocations: 75.89 kB / 249.2 MB, free: 12.63 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.01493, allocations: 2.369 MB / 251.6 MB, free: 10.08 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001592/0.01509, allocations: 23.98 kB / 251.6 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.306e-05/0.01511, allocations: 8 kB / 251.6 MB, free: 10.05 MB / 250.7 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.0001003/0.01521, allocations: 145.6 kB / 251.7 MB, free: 9.898 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.416e-05/0.01526, allocations: 19.98 kB / 251.8 MB, free: 9.879 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.376e-05/0.0153, allocations: 30.27 kB / 251.8 MB, free: 9.852 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.01531, allocations: 4 kB / 251.8 MB, free: 9.848 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.01531, allocations: 0 / 251.8 MB, free: 9.848 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.01531, allocations: 3.984 kB / 251.8 MB, free: 9.844 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.01552, allocations: 157.7 kB / 252 MB, free: 9.672 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.01552, allocations: 0 / 252 MB, free: 9.672 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001267/0.01564, allocations: 31.98 kB / 252 MB, free: 9.641 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.863e-05/0.01567, allocations: 19.86 kB / 252 MB, free: 9.621 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002422/0.01592, allocations: 73.58 kB / 252.1 MB, free: 9.543 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.01593, allocations: 4 kB / 252.1 MB, free: 9.539 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.01713, allocations: 2.373 MB / 254.5 MB, free: 6.992 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01713, allocations: 0 / 254.5 MB, free: 6.992 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002411/0.01737, allocations: 244.9 kB / 254.7 MB, free: 6.73 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.388e-05/0.01739, allocations: 4 kB / 254.7 MB, free: 6.727 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.01752, allocations: 16.05 kB / 254.7 MB, free: 6.711 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.692e-05/0.01757, allocations: 19.97 kB / 254.7 MB, free: 6.691 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.01758, allocations: 4 kB / 254.7 MB, free: 6.688 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.828e-05/0.01767, allocations: 82.77 kB / 254.8 MB, free: 6.602 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.01767, allocations: 0 / 254.8 MB, free: 6.602 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003493/0.01801, allocations: 68 kB / 254.9 MB, free: 6.535 MB / 250.7 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 8.606e-05/0.0181, allocations: 84.42 kB / 255 MB, free: 6.441 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004042/0.0185, allocations: 376.7 kB / 255.3 MB, free: 6.047 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.358e-05/0.01852, allocations: 7.938 kB / 255.3 MB, free: 6.039 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003076/0.01883, allocations: 311.2 kB / 255.6 MB, free: 5.707 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.01918, allocations: 233.3 kB / 255.9 MB, free: 5.445 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/0.02133, allocations: 0.5495 MB / 256.4 MB, free: 4.871 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.459e-05/0.02139, allocations: 92.56 kB / 256.5 MB, free: 4.762 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.0215, allocations: 30.95 kB / 256.5 MB, free: 4.734 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.02163, allocations: 91.36 kB / 256.6 MB, free: 4.645 MB / 250.7 MB Notification: Performance of SimCode: time 8.42e-07/0.02163, allocations: 0 / 256.6 MB, free: 4.645 MB / 250.7 MB Notification: Performance of Templates: time 0.006643/0.02827, allocations: 3.233 MB / 259.9 MB, free: 1.453 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4398871045559645]