Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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.0007567/0.0007567, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001029/0.001785, 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.0006224/0.0006224, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008914/0.001514, 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.8969/0.8969, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1721/1.069, allocations: 52.48 MB / 238.5 MB, free: 7.613 MB / 234.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1269/0.1269, allocations: 32.8 MB / 272 MB, free: 6.285 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02093/0.1478, allocations: 12.54 MB / 284.5 MB, free: 9.699 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|signalSource.V_m|signalSource.Phi|cuboid.G_m|cuboid.A|hollowCylinderAxialFlux.G_m|hollowCylinderAxialFlux.A|hollowCylinderRadialFlux.G_m|hollowCylinderRadialFlux.A|genericFluxTube.G_m|genericFluxTube.A",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape") translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|signalSource.V_m|signalSource.Phi|cuboid.G_m|cuboid.A|hollowCylinderAxialFlux.G_m|hollowCylinderAxialFlux.A|hollowCylinderRadialFlux.G_m|hollowCylinderRadialFlux.A|genericFluxTube.G_m|genericFluxTube.A",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 285.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.167e-05/1.343e-05, allocations: 2.312 kB / 285.8 MB, free: 8.414 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.002615/0.002629, allocations: 2.497 MB / 288.3 MB, free: 5.902 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009986/0.003627, allocations: 0.7904 MB / 289.1 MB, free: 5.105 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.003739, allocations: 7.938 kB / 289.1 MB, free: 5.098 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001297/0.003868, allocations: 59.48 kB / 289.2 MB, free: 5.039 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.003998, allocations: 99.23 kB / 289.3 MB, free: 4.941 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000172/0.00417, allocations: 99.73 kB / 289.4 MB, free: 4.844 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002481/0.004418, allocations: 358.6 kB / 289.7 MB, free: 4.492 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.004551, allocations: 66.86 kB / 289.8 MB, free: 4.43 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000225/0.004776, allocations: 225.5 kB / 290 MB, free: 4.207 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/0.004905, allocations: 115.7 kB / 290.1 MB, free: 4.094 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.16e-05/0.004947, allocations: 28 kB / 290.2 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.534e-05/0.004982, allocations: 32 kB / 290.2 MB, free: 4.035 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.675e-05/0.005029, allocations: 47.81 kB / 290.2 MB, free: 3.988 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.868e-05/0.005098, allocations: 83.81 kB / 290.3 MB, free: 3.906 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000221/0.005319, allocations: 211.2 kB / 290.5 MB, free: 3.699 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.208e-05/0.005331, allocations: 0 / 290.5 MB, free: 3.699 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.005331, allocations: 0 / 290.5 MB, free: 3.699 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.005341, allocations: 4 kB / 290.5 MB, free: 3.695 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0006879/0.006029, allocations: 0.5736 MB / 291.1 MB, free: 3.098 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.006065, allocations: 12.03 kB / 291.1 MB, free: 3.086 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.899e-05/0.006124, allocations: 40.91 kB / 291.2 MB, free: 3.047 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.006327, allocations: 181.2 kB / 291.3 MB, free: 2.844 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.006343, allocations: 20.88 kB / 291.4 MB, free: 2.824 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/0.006371, allocations: 24.38 kB / 291.4 MB, free: 2.801 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.006602, allocations: 177.3 kB / 291.5 MB, free: 2.617 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.006613, allocations: 192 / 291.5 MB, free: 2.617 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.006632, allocations: 8.375 kB / 291.6 MB, free: 2.609 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.006642, allocations: 19.92 kB / 291.6 MB, free: 2.59 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001051/0.006747, allocations: 71.47 kB / 291.6 MB, free: 2.52 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006697/0.007416, allocations: 0.5355 MB / 292.2 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.007614, allocations: 182.2 kB / 292.4 MB, free: 1.766 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.394e-05/0.007688, allocations: 68.72 kB / 292.4 MB, free: 1.695 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.007715, allocations: 8 kB / 292.4 MB, free: 1.688 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.007737, allocations: 38.56 kB / 292.5 MB, free: 1.641 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.413e-06/0.007739, allocations: 0 / 292.5 MB, free: 1.641 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.001637/0.009376, allocations: 0.7463 MB / 293.2 MB, free: 0.875 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.009406, allocations: 55.41 kB / 293.3 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.009521, allocations: 205 kB / 293.5 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.009537, allocations: 29.7 kB / 293.5 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.887e-05/0.009606, allocations: 148.7 kB / 293.6 MB, free: 420 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.727e-05/0.009654, allocations: 103.1 kB / 293.7 MB, free: 316 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.669e-05/0.00971, allocations: 57.64 kB / 293.8 MB, free: 252 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.684e-05/0.009807, allocations: 342.7 kB / 294.1 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.057e-05/0.009848, allocations: 27.98 kB / 294.2 MB, free: 15.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.13e-05/0.009909, allocations: 61.81 kB / 294.2 MB, free: 15.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.01002, allocations: 113.5 kB / 294.3 MB, free: 15.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01003, allocations: 0 / 294.3 MB, free: 15.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005928/0.01062, allocations: 373.5 kB / 294.7 MB, free: 15.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.01063, allocations: 4 kB / 294.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.01064, allocations: 0 / 294.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001/0.01164, allocations: 450.9 kB / 295.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.68e-05/0.01172, allocations: 23.98 kB / 295.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003412/0.01514, allocations: 5.326 MB / 300.5 MB, free: 9.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.705e-05/0.01521, allocations: 27.83 kB / 300.5 MB, free: 9.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.01522, allocations: 8 kB / 300.5 MB, free: 9.121 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 7.575e-05/0.0153, allocations: 129.8 kB / 300.7 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.011e-05/0.01533, allocations: 23.92 kB / 300.7 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000579/0.01591, allocations: 383.4 kB / 301.1 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.01591, allocations: 4 kB / 301.1 MB, free: 8.562 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.01e-07/0.01591, allocations: 0 / 301.1 MB, free: 8.562 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.01592, allocations: 7.984 kB / 301.1 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001699/0.01609, allocations: 173.7 kB / 301.2 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.01609, allocations: 192 / 301.2 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.439e-05/0.01614, allocations: 27.92 kB / 301.3 MB, free: 8.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.016e-05/0.01616, allocations: 31.73 kB / 301.3 MB, free: 8.309 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009259/0.01709, allocations: 438.9 kB / 301.7 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.0171, allocations: 7.984 kB / 301.7 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003276/0.02038, allocations: 5.408 MB / 307.1 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.02038, allocations: 4.031 kB / 307.1 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005679/0.02095, allocations: 463.5 kB / 307.6 MB, free: 1.621 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.02096, allocations: 4 kB / 307.6 MB, free: 1.617 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.093e-05/0.02103, allocations: 8 kB / 307.6 MB, free: 1.609 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.066e-05/0.02109, allocations: 31.94 kB / 307.6 MB, free: 1.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.0211, allocations: 15.92 kB / 307.7 MB, free: 1.562 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.401e-05/0.02115, allocations: 54.81 kB / 307.7 MB, free: 1.512 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02115, allocations: 4 kB / 307.7 MB, free: 1.508 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002636/0.02141, allocations: 119.9 kB / 307.8 MB, free: 1.391 MB / 298.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 (11): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 8.129e-05/0.02149, allocations: 92.33 kB / 307.9 MB, free: 1.289 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004294/0.02192, allocations: 0.6397 MB / 308.6 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.809e-06/0.02193, allocations: 7.984 kB / 308.6 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005187/0.02245, allocations: 0.6942 MB / 309.3 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.02267, allocations: 196.9 kB / 309.5 MB, free: 15.61 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.02398, allocations: 0.5226 MB / 310 MB, free: 15.06 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.037e-05/0.02405, allocations: 104.5 kB / 310.1 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.859e-05/0.02408, allocations: 13.95 kB / 310.1 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.965e-05/0.02415, allocations: 71.36 kB / 310.2 MB, free: 14.86 MB / 314.7 MB Notification: Performance of SimCode: time 1.183e-06/0.02415, allocations: 0 / 310.2 MB, free: 14.86 MB / 314.7 MB Notification: Performance of Templates: time 0.00893/0.03308, allocations: 8.295 MB / 318.5 MB, free: 6.625 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.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: 3.0259056091308594]