Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001473/0.001473, allocations: 87.58 kB / 21.19 MB, free: 3.371 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.001637/0.001637, allocations: 165 kB / 24.56 MB, free: 4 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.014/1.014, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2686/0.2686, allocations: 34.26 MB / 295.7 MB, free: 0.6992 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 378 MB, free: 2.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.306e-05/2.446e-05, allocations: 5.828 kB / 378 MB, free: 2.676 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.00308/0.003104, allocations: 2.525 MB / 380.5 MB, free: 136 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.004684, allocations: 0.81 MB / 381.4 MB, free: 15.32 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.004833, allocations: 7.938 kB / 381.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000229/0.005062, allocations: 55.52 kB / 381.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000238/0.0053, allocations: 111.1 kB / 381.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002515/0.005551, allocations: 103.8 kB / 381.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.000336/0.005887, allocations: 358.6 kB / 382 MB, free: 14.69 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.006031, allocations: 68.83 kB / 382 MB, free: 14.62 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002966/0.006328, allocations: 211.5 kB / 382.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.006458, allocations: 119.7 kB / 382.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.56e-05/0.006494, allocations: 28 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.818e-05/0.006552, allocations: 35.98 kB / 382.4 MB, free: 14.24 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.656e-05/0.006599, allocations: 67.75 kB / 382.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 8.149e-05/0.00668, allocations: 103.7 kB / 382.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002441/0.006924, allocations: 247.1 kB / 382.8 MB, free: 13.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.006927, allocations: 0 / 382.8 MB, free: 13.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.006928, allocations: 3.938 kB / 382.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.006932, allocations: 0 / 382.8 MB, free: 13.82 MB / 362.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.0007302/0.007662, allocations: 0.6556 MB / 383.5 MB, free: 13.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.007707, allocations: 8.031 kB / 383.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.007873, allocations: 64.69 kB / 383.6 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.008134, allocations: 215.5 kB / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.008154, allocations: 16.88 kB / 383.8 MB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.364e-05/0.008188, allocations: 28.38 kB / 383.8 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003295/0.008517, allocations: 201.3 kB / 384 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.008533, allocations: 192 / 384 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.008553, allocations: 8.375 kB / 384 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.008568, allocations: 11.94 kB / 384 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002086/0.008777, allocations: 110.9 kB / 384.2 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009945/0.009771, allocations: 0.7535 MB / 384.9 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.01005, allocations: 211.1 kB / 385.1 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.01017, allocations: 83.66 kB / 385.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.0102, allocations: 7.984 kB / 385.2 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.01023, allocations: 41.39 kB / 385.2 MB, free: 11.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.392e-06/0.01023, allocations: 0 / 385.2 MB, free: 11.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.002084/0.01231, allocations: 0.835 MB / 386.1 MB, free: 10.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.01235, allocations: 59.34 kB / 386.1 MB, free: 10.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.01257, allocations: 292.3 kB / 386.4 MB, free: 10.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.01259, allocations: 33.64 kB / 386.5 MB, free: 10.01 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.01275, allocations: 216 kB / 386.7 MB, free: 9.797 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.349e-05/0.01282, allocations: 115 kB / 386.8 MB, free: 9.684 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.3e-05/0.01289, allocations: 55.36 kB / 386.8 MB, free: 9.621 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.01305, allocations: 0.5079 MB / 387.3 MB, free: 9.102 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-05/0.01314, allocations: 51.83 kB / 387.4 MB, free: 9.051 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.01324, allocations: 77.09 kB / 387.5 MB, free: 8.965 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.01343, allocations: 137 kB / 387.6 MB, free: 8.824 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.01343, allocations: 0 / 387.6 MB, free: 8.824 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008129/0.01425, allocations: 473.5 kB / 388.1 MB, free: 8.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.01426, allocations: 7.938 kB / 388.1 MB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.01427, allocations: 4 kB / 388.1 MB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/0.01552, allocations: 470.3 kB / 388.5 MB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.614e-05/0.0156, allocations: 27.92 kB / 388.6 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00442/0.02002, allocations: 7.792 MB / 396.4 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.067e-05/0.02011, allocations: 19.84 kB / 396.4 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.02013, allocations: 11.98 kB / 396.4 MB, free: 15.51 MB / 378.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 9.248e-05/0.02022, allocations: 164.6 kB / 396.5 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.021e-05/0.02026, allocations: 43.75 kB / 396.6 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007647/0.02103, allocations: 463.8 kB / 397 MB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.02103, allocations: 7.938 kB / 397 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.02103, allocations: 0 / 397 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.02103, allocations: 3.984 kB / 397.1 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000225/0.02126, allocations: 252.4 kB / 397.3 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.02126, allocations: 0 / 397.3 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.96e-05/0.02131, allocations: 15.98 kB / 397.3 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/0.02248, allocations: 478.3 kB / 397.8 MB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.0225, allocations: 7.938 kB / 397.8 MB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004079/0.02658, allocations: 7.842 MB / 405.6 MB, free: 5.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.02658, allocations: 0 / 405.6 MB, free: 5.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007846/0.02736, allocations: 0.5877 MB / 406.2 MB, free: 5.055 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.162e-05/0.02738, allocations: 35.69 kB / 406.3 MB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.0274, allocations: 15.92 kB / 406.3 MB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.129e-05/0.02748, allocations: 8 kB / 406.3 MB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.958e-05/0.02757, allocations: 31.94 kB / 406.3 MB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.02758, allocations: 8 kB / 406.3 MB, free: 4.957 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.984e-05/0.02768, allocations: 197.1 kB / 406.5 MB, free: 4.766 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02768, allocations: 0 / 406.5 MB, free: 4.766 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003338/0.02802, allocations: 123.9 kB / 406.6 MB, free: 4.645 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 9.093e-05/0.02811, allocations: 103.2 kB / 406.7 MB, free: 4.531 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006193/0.02873, allocations: 0.8853 MB / 407.6 MB, free: 3.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.02873, allocations: 0 / 407.6 MB, free: 3.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006283/0.02936, allocations: 0.9248 MB / 408.5 MB, free: 2.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002241/0.02958, allocations: 27.25 kB / 408.6 MB, free: 2.543 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008337/0.03042, allocations: 0.5405 MB / 409.1 MB, free: 1.973 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.618e-05/0.03049, allocations: 100.6 kB / 409.2 MB, free: 1.855 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.816e-05/0.03053, allocations: 9.953 kB / 409.2 MB, free: 1.848 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.363e-05/0.03056, allocations: 16.5 kB / 409.2 MB, free: 1.832 MB / 378.7 MB Notification: Performance of SimCode: time 9.12e-07/0.03056, allocations: 3.938 kB / 409.2 MB, free: 1.828 MB / 378.7 MB Notification: Performance of Templates: time 0.009508/0.04007, allocations: 8.835 MB / 418.1 MB, free: 9.035 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & ./ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.694199637044221]