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.002235/0.002235, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.001576/0.001576, allocations: 209.2 kB / 23.73 MB, free: 4.41 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.642/1.642, allocations: 230.6 MB / 257.5 MB, free: 7.828 MB / 206.1 MB " [Timeout remaining time 178] 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.2404/0.2404, allocations: 44.94 MB / 358.8 MB, free: 6.059 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002143/0.002143, allocations: 68.17 kB / 0.4935 GB, free: 10.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.365, allocations: 65.48 MB / 0.5575 GB, free: 7.492 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004302/0.3694, allocations: 2.349 MB / 0.5597 GB, free: 5.129 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.371, allocations: 0.7828 MB / 0.5605 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.3712, allocations: 7.938 kB / 0.5605 GB, free: 4.332 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.3714, allocations: 59.5 kB / 0.5606 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000315/0.3718, allocations: 99.25 kB / 0.5607 GB, free: 4.176 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.3721, allocations: 111.8 kB / 0.5608 GB, free: 4.066 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003966/0.3725, allocations: 354.7 kB / 0.5611 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.3727, allocations: 67.56 kB / 0.5612 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002959/0.373, allocations: 147.5 kB / 0.5613 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.3732, allocations: 135.3 kB / 0.5614 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.41e-05/0.3732, allocations: 32 kB / 0.5615 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.522e-05/0.3733, allocations: 31.98 kB / 0.5615 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.005e-05/0.3734, allocations: 67.75 kB / 0.5616 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.3735, allocations: 135.3 kB / 0.5617 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004757/0.374, allocations: 382.1 kB / 0.5621 GB, free: 2.742 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.374, allocations: 0 / 0.5621 GB, free: 2.742 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.374, allocations: 0 / 0.5621 GB, free: 2.742 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.374, allocations: 0 / 0.5621 GB, free: 2.742 MB / 398.1 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.001137/0.3752, allocations: 0.5596 MB / 0.5626 GB, free: 2.152 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.3752, allocations: 8.031 kB / 0.5626 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.3754, allocations: 40.7 kB / 0.5627 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004246/0.3758, allocations: 216.9 kB / 0.5629 GB, free: 1.863 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.3758, allocations: 16.88 kB / 0.5629 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.153e-05/0.3759, allocations: 28.38 kB / 0.5629 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005381/0.3764, allocations: 252.3 kB / 0.5632 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.3764, allocations: 0 / 0.5632 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.82e-05/0.3764, allocations: 12 kB / 0.5632 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.3764, allocations: 7.938 kB / 0.5632 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005147/0.377, allocations: 225.9 kB / 0.5634 GB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001538/0.3785, allocations: 0.7461 MB / 0.5641 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005682/0.3791, allocations: 282.4 kB / 0.5644 GB, free: 260 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002832/0.3794, allocations: 124.8 kB / 0.5645 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.179e-05/0.3794, allocations: 7.984 kB / 0.5645 GB, free: 124 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.456e-05/0.3794, allocations: 42.55 kB / 0.5646 GB, free: 72 kB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.315e-06/0.3794, allocations: 0 / 0.5646 GB, free: 72 kB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.004538/0.384, allocations: 0.9611 MB / 0.5655 GB, free: 15.09 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.179e-05/0.384, allocations: 55.41 kB / 0.5655 GB, free: 15.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002869/0.3843, allocations: 229.1 kB / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.3844, allocations: 33.7 kB / 0.5658 GB, free: 14.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.3845, allocations: 161.3 kB / 0.5659 GB, free: 14.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.3846, allocations: 119 kB / 0.5661 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.666e-05/0.3847, allocations: 53.7 kB / 0.5661 GB, free: 14.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.3849, allocations: 334.8 kB / 0.5664 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002225/0.3851, allocations: 95.95 kB / 0.5665 GB, free: 13.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002434/0.3853, allocations: 122.8 kB / 0.5666 GB, free: 13.85 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004844/0.3858, allocations: 227.3 kB / 0.5669 GB, free: 13.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3858, allocations: 0 / 0.5669 GB, free: 13.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00175/0.3876, allocations: 0.5489 MB / 0.5674 GB, free: 13.06 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.3876, allocations: 8 kB / 0.5674 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.3876, allocations: 0 / 0.5674 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/0.3893, allocations: 315.1 kB / 0.5677 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.3895, allocations: 23.98 kB / 0.5677 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008176/0.3977, allocations: 6.304 MB / 0.5739 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002576/0.3979, allocations: 23.91 kB / 0.5739 GB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.3979, allocations: 12 kB / 0.5739 GB, free: 5.957 MB / 414.1 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.0002035/0.3981, allocations: 137.9 kB / 0.574 GB, free: 5.812 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.413e-05/0.3982, allocations: 27.81 kB / 0.5741 GB, free: 5.785 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/0.4, allocations: 0.554 MB / 0.5746 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.4, allocations: 4 kB / 0.5746 GB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.4, allocations: 3.938 kB / 0.5746 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.4, allocations: 3.984 kB / 0.5746 GB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003805/0.4004, allocations: 253.1 kB / 0.5749 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.4004, allocations: 3.938 kB / 0.5749 GB, free: 4.922 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.4005, allocations: 19.92 kB / 0.5749 GB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001498/0.402, allocations: 311.2 kB / 0.5752 GB, free: 4.586 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.4021, allocations: 4 kB / 0.5752 GB, free: 4.582 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007922/0.41, allocations: 6.357 MB / 0.5814 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.41, allocations: 0 / 0.5814 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001818/0.4118, allocations: 0.609 MB / 0.582 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.731e-05/0.4119, allocations: 35.67 kB / 0.582 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/0.4119, allocations: 8 kB / 0.582 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/0.4121, allocations: 11.98 kB / 0.582 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.4122, allocations: 31.94 kB / 0.5821 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.4122, allocations: 8 kB / 0.5821 GB, free: 13.08 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001821/0.4124, allocations: 168.5 kB / 0.5822 GB, free: 12.92 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4124, allocations: 0 / 0.5822 GB, free: 12.92 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006258/0.413, allocations: 119.9 kB / 0.5824 GB, free: 12.8 MB / 430.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 (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.0001431/0.4132, allocations: 99.52 kB / 0.5825 GB, free: 12.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.4145, allocations: 0.7444 MB / 0.5832 GB, free: 11.9 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4145, allocations: 4.062 kB / 0.5832 GB, free: 11.89 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00134/0.4158, allocations: 0.7288 MB / 0.5839 GB, free: 11.11 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003498/0.4162, allocations: 32.31 kB / 0.5839 GB, free: 11.08 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.4174, allocations: 0.5629 MB / 0.5845 GB, free: 10.49 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001917/0.4176, allocations: 167.8 kB / 0.5846 GB, free: 10.31 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.515e-05/0.4176, allocations: 9.953 kB / 0.5846 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.287e-05/0.4177, allocations: 11.44 kB / 0.5847 GB, free: 10.29 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4177, allocations: 4 kB / 0.5847 GB, free: 10.29 MB / 430.1 MB Notification: Performance of Templates: time 0.01629/0.4339, allocations: 8.727 MB / 0.5932 GB, free: 1.609 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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: 6.0360083021223545]