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.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.0009829/0.0009829, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001061/0.001061, allocations: 173.6 kB / 25 MB, free: 8.344 MB / 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.061/1.061, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.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.3054/0.3054, allocations: 32.81 MB / 294.6 MB, free: 1.195 MB / 266.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.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(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.473e-06/1.473e-06, allocations: 0 / 376 MB, free: 4.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.067e-05/2.214e-05, allocations: 6.25 kB / 376 MB, free: 4.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.00266/0.002683, allocations: 2.521 MB / 378.5 MB, free: 2.449 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.003737, allocations: 0.81 MB / 379.3 MB, free: 1.633 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.003842, allocations: 4 kB / 379.3 MB, free: 1.629 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.004018, allocations: 59.44 kB / 379.4 MB, free: 1.57 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002058/0.004223, allocations: 107.2 kB / 379.5 MB, free: 1.465 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002017/0.004425, allocations: 107.8 kB / 379.6 MB, free: 1.359 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002609/0.004686, allocations: 366.5 kB / 380 MB, free: 1 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.004833, allocations: 64.83 kB / 380 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002437/0.005077, allocations: 199.6 kB / 380.2 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.00521, allocations: 127.6 kB / 380.3 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.538e-05/0.005246, allocations: 28 kB / 380.4 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.624e-05/0.005312, allocations: 32 kB / 380.4 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.209e-05/0.005354, allocations: 71.73 kB / 380.5 MB, free: 500 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.695e-05/0.005431, allocations: 103.7 kB / 380.6 MB, free: 396 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.005671, allocations: 243 kB / 380.8 MB, free: 152 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.005673, allocations: 0 / 380.8 MB, free: 152 kB / 346.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.005674, allocations: 0 / 380.8 MB, free: 152 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.005678, allocations: 0 / 380.8 MB, free: 152 kB / 346.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.0007257/0.006404, allocations: 0.6634 MB / 381.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.006441, allocations: 12.03 kB / 381.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.00658, allocations: 64.7 kB / 381.5 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.006808, allocations: 211.5 kB / 381.7 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.006825, allocations: 16.88 kB / 381.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.672e-05/0.006851, allocations: 24.38 kB / 381.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002935/0.007145, allocations: 197.3 kB / 382 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.007154, allocations: 192 / 382 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.13e-05/0.007176, allocations: 8.375 kB / 382 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.00719, allocations: 11.94 kB / 382 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.007396, allocations: 114.9 kB / 382.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009168/0.008313, allocations: 0.7496 MB / 382.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.00861, allocations: 211.1 kB / 383.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.008729, allocations: 79.66 kB / 383.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.008754, allocations: 4 kB / 383.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.008776, allocations: 45.33 kB / 383.2 MB, free: 13.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.513e-06/0.008778, allocations: 0 / 383.2 MB, free: 13.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.002082/0.01086, allocations: 0.8505 MB / 384 MB, free: 12.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.01089, allocations: 59.34 kB / 384.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.01106, allocations: 284.3 kB / 384.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.01108, allocations: 29.7 kB / 384.4 MB, free: 12.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.842e-05/0.01118, allocations: 216 kB / 384.6 MB, free: 12.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.845e-05/0.01124, allocations: 111 kB / 384.7 MB, free: 12.01 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.644e-05/0.01131, allocations: 55.36 kB / 384.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.01143, allocations: 0.5079 MB / 385.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.389e-05/0.01151, allocations: 55.83 kB / 385.3 MB, free: 11.37 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.01162, allocations: 81.09 kB / 385.4 MB, free: 11.28 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001882/0.01181, allocations: 133 kB / 385.6 MB, free: 11.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.01181, allocations: 0 / 385.6 MB, free: 11.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008076/0.01262, allocations: 465.5 kB / 386 MB, free: 10.67 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.01264, allocations: 11.94 kB / 386 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.01264, allocations: 4 kB / 386 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/0.0139, allocations: 474.3 kB / 386.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.53e-05/0.01399, allocations: 23.92 kB / 386.5 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004501/0.01849, allocations: 7.794 MB / 394.3 MB, free: 1.859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.477e-05/0.01857, allocations: 27.83 kB / 394.3 MB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.01859, allocations: 8 kB / 394.3 MB, free: 1.824 MB / 362.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 0.0001007/0.01869, allocations: 176.5 kB / 394.5 MB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.015e-05/0.01873, allocations: 35.81 kB / 394.5 MB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008013/0.01953, allocations: 471.7 kB / 395 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.01953, allocations: 4 kB / 395 MB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.01953, allocations: 4 kB / 395 MB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.01954, allocations: 0 / 395 MB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.01977, allocations: 248.4 kB / 395.3 MB, free: 0.832 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.01977, allocations: 0 / 395.3 MB, free: 0.832 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.868e-05/0.01982, allocations: 19.92 kB / 395.3 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001147/0.02096, allocations: 478.2 kB / 395.7 MB, free: 336 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.02098, allocations: 7.938 kB / 395.8 MB, free: 328 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004303/0.02528, allocations: 7.838 MB / 403.6 MB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.02528, allocations: 0 / 403.6 MB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007997/0.02608, allocations: 0.5877 MB / 404.2 MB, free: 7.367 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.416e-05/0.02611, allocations: 35.73 kB / 404.2 MB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.02613, allocations: 11.94 kB / 404.2 MB, free: 7.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.002e-05/0.02621, allocations: 8 kB / 404.2 MB, free: 7.312 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.482e-05/0.02629, allocations: 31.92 kB / 404.3 MB, free: 7.281 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.0263, allocations: 12 kB / 404.3 MB, free: 7.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001053/0.02641, allocations: 193.1 kB / 404.5 MB, free: 7.082 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02641, allocations: 4 kB / 404.5 MB, free: 7.078 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003323/0.02674, allocations: 123.9 kB / 404.6 MB, free: 6.957 MB / 378.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 0.0001028/0.02684, allocations: 95.25 kB / 404.7 MB, free: 6.852 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006752/0.02752, allocations: 0.8931 MB / 405.6 MB, free: 5.883 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.02752, allocations: 0 / 405.6 MB, free: 5.883 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006512/0.02817, allocations: 0.9209 MB / 406.5 MB, free: 4.887 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/0.0284, allocations: 20.5 kB / 406.5 MB, free: 4.863 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008846/0.02928, allocations: 0.5378 MB / 407.1 MB, free: 4.293 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.733e-05/0.02935, allocations: 108.5 kB / 407.2 MB, free: 4.168 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.231e-05/0.02939, allocations: 9.953 kB / 407.2 MB, free: 4.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.515e-05/0.02943, allocations: 12.5 kB / 407.2 MB, free: 4.148 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.02943, allocations: 0 / 407.2 MB, free: 4.148 MB / 378.7 MB Notification: Performance of Templates: time 0.01001/0.03944, allocations: 8.839 MB / 416 MB, free: 11.36 MB / 394.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5277288190554827]