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.001144/0.001144, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 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.001771/0.001771, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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.026/1.026, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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 1.753e-06/1.753e-06, allocations: 0 / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.087e-05/3.262e-05, allocations: 4.984 kB / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004849/0.004882, allocations: 2.861 MB / 275.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001732/0.006614, allocations: 0.7788 MB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000191/0.006805, allocations: 11.94 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002687/0.007074, allocations: 71.36 kB / 276.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003507/0.007424, allocations: 103.2 kB / 276.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003539/0.007778, allocations: 107.7 kB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004733/0.008251, allocations: 414.2 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002243/0.008476, allocations: 91.33 kB / 277.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000517/0.008993, allocations: 247.4 kB / 277.6 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002176/0.00921, allocations: 127.6 kB / 277.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.807e-05/0.009268, allocations: 35.98 kB / 277.8 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.498e-05/0.009323, allocations: 36 kB / 277.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.342e-05/0.009387, allocations: 75.67 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.009515, allocations: 127.7 kB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000365/0.00988, allocations: 255 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.009883, allocations: 0 / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.009885, allocations: 4 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.009892, allocations: 0 / 278.3 MB, free: 12.2 MB / 266.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.001144/0.01104, allocations: 0.6712 MB / 279 MB, free: 11.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.01108, allocations: 8.031 kB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.0112, allocations: 72.64 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003485/0.01155, allocations: 224 kB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.13e-05/0.01159, allocations: 28.97 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.808e-05/0.01165, allocations: 32.38 kB / 279.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004994/0.01215, allocations: 227.3 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.01216, allocations: 192 / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.01219, allocations: 12.38 kB / 279.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.01221, allocations: 11.94 kB / 279.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003121/0.01252, allocations: 127.8 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.01404, allocations: 0.9095 MB / 280.6 MB, free: 9.746 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002738/0.01432, allocations: 107 kB / 280.7 MB, free: 9.629 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.703e-05/0.0144, allocations: 39.66 kB / 280.7 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.01443, allocations: 0 / 280.7 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.01447, allocations: 45.3 kB / 280.8 MB, free: 9.531 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.553e-06/0.01447, allocations: 4 kB / 280.8 MB, free: 9.527 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.001239/0.01571, allocations: 422.7 kB / 281.2 MB, free: 9.102 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.01575, allocations: 51.41 kB / 281.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/0.01605, allocations: 328.1 kB / 281.6 MB, free: 8.703 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.01607, allocations: 29.7 kB / 281.6 MB, free: 8.668 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.01623, allocations: 282.8 kB / 281.9 MB, free: 8.387 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.904e-05/0.01629, allocations: 83.36 kB / 282 MB, free: 8.305 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.01639, allocations: 67.31 kB / 282 MB, free: 8.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.01655, allocations: 0.5078 MB / 282.5 MB, free: 7.711 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.01667, allocations: 47.97 kB / 282.6 MB, free: 7.664 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.01687, allocations: 183.3 kB / 282.8 MB, free: 7.422 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003012/0.01717, allocations: 236.8 kB / 283 MB, free: 7.133 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.01717, allocations: 4 kB / 283 MB, free: 7.129 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005479/0.01772, allocations: 310.7 kB / 283.3 MB, free: 6.812 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.01774, allocations: 8 kB / 283.3 MB, free: 6.805 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.01775, allocations: 4 kB / 283.3 MB, free: 6.801 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004717/0.01822, allocations: 83.7 kB / 283.4 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000354/0.01858, allocations: 59.91 kB / 283.4 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/0.02028, allocations: 3.535 MB / 287 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/0.02051, allocations: 16 kB / 287 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.02053, allocations: 15.98 kB / 287 MB, free: 2.84 MB / 266.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.0001349/0.02067, allocations: 184.4 kB / 287.2 MB, free: 2.648 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.488e-05/0.02071, allocations: 35.81 kB / 287.2 MB, free: 2.613 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.104e-05/0.02075, allocations: 30.28 kB / 287.3 MB, free: 2.582 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.02076, allocations: 11.92 kB / 287.3 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.02076, allocations: 0 / 287.3 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.02077, allocations: 144 / 287.3 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002086/0.02097, allocations: 244.4 kB / 287.5 MB, free: 2.297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.02098, allocations: 4 kB / 287.5 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.207e-05/0.02106, allocations: 27.98 kB / 287.5 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002481/0.02131, allocations: 79.3 kB / 287.6 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.02132, allocations: 7.938 kB / 287.6 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001274/0.02259, allocations: 3.524 MB / 291.1 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.02259, allocations: 3.938 kB / 291.2 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002845/0.02288, allocations: 337.9 kB / 291.5 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.44e-05/0.0229, allocations: 27.8 kB / 291.5 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.02292, allocations: 8 kB / 291.5 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.828e-05/0.02302, allocations: 4 kB / 291.5 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.02307, allocations: 19.95 kB / 291.5 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-06/0.02308, allocations: 12.03 kB / 291.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001268/0.0232, allocations: 221 kB / 291.8 MB, free: 13.75 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0232, allocations: 0 / 291.8 MB, free: 13.75 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002612/0.02346, allocations: 76 kB / 291.8 MB, free: 13.68 MB / 282.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.803e-05/0.02355, allocations: 95.25 kB / 291.9 MB, free: 13.58 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000414/0.02397, allocations: 0.4944 MB / 292.4 MB, free: 13.05 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.02397, allocations: 0 / 292.4 MB, free: 13.05 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002119/0.02418, allocations: 419.2 kB / 292.8 MB, free: 12.6 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.02441, allocations: 32.5 kB / 292.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008866/0.0253, allocations: 0.5336 MB / 293.4 MB, free: 12.01 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.67e-05/0.02535, allocations: 92.3 kB / 293.5 MB, free: 11.9 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.101e-05/0.02542, allocations: 26.38 kB / 293.5 MB, free: 11.87 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.926e-05/0.02547, allocations: 32.48 kB / 293.6 MB, free: 11.84 MB / 282.7 MB Notification: Performance of SimCode: time 5.91e-07/0.02547, allocations: 0 / 293.6 MB, free: 11.84 MB / 282.7 MB Notification: Performance of Templates: time 0.005046/0.03052, allocations: 2.903 MB / 296.5 MB, free: 9.008 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0851105051115155]