Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001082/0.001082, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001545/0.001545, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1929/0.1929, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 76.48 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1219, allocations: 62.44 MB / 480.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004161/0.1261, allocations: 2.487 MB / 482.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001459/0.1276, allocations: 0.8256 MB / 483.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002276/0.1279, allocations: 4 kB / 483.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002769/0.1282, allocations: 63.44 kB / 483.5 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004668/0.1287, allocations: 111.2 kB / 483.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004032/0.1291, allocations: 99.81 kB / 483.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005277/0.1296, allocations: 346.8 kB / 484.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002537/0.1299, allocations: 104.8 kB / 484.2 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003332/0.1302, allocations: 135.5 kB / 484.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002485/0.1305, allocations: 163.3 kB / 484.5 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.013e-05/0.1306, allocations: 28 kB / 484.5 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.943e-05/0.1307, allocations: 36 kB / 484.5 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.941e-05/0.1308, allocations: 67.75 kB / 484.6 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000182/0.1309, allocations: 163.1 kB / 484.7 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004419/0.1314, allocations: 366.7 kB / 485.1 MB, free: 192 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1314, allocations: 0 / 485.1 MB, free: 192 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1314, allocations: 4 kB / 485.1 MB, free: 188 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.714e-05/0.1314, allocations: 0 / 485.1 MB, free: 188 kB / 350.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.001375/0.1328, allocations: 0.6312 MB / 485.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1329, allocations: 8.031 kB / 485.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.382e-05/0.133, allocations: 62.73 kB / 485.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.1331, allocations: 36.56 kB / 485.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002887/0.1334, allocations: 270.7 kB / 486.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.1335, allocations: 16.94 kB / 486.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.494e-05/0.1335, allocations: 24.38 kB / 486.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004755/0.134, allocations: 252.9 kB / 486.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.134, allocations: 0 / 486.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.134, allocations: 8 kB / 486.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.627e-06/0.134, allocations: 8 kB / 486.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000485/0.1345, allocations: 234.1 kB / 486.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.1361, allocations: 0.8947 MB / 487.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006335/0.1368, allocations: 301.1 kB / 487.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003185/0.1371, allocations: 144.8 kB / 488 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.105e-05/0.1372, allocations: 7.984 kB / 488 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.1372, allocations: 42.55 kB / 488 MB, free: 13.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.824e-06/0.1372, allocations: 0 / 488 MB, free: 13.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.004619/0.1418, allocations: 1.258 MB / 489.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.1419, allocations: 55.39 kB / 489.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002484/0.1422, allocations: 233 kB / 489.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.1422, allocations: 29.7 kB / 489.6 MB, free: 11.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.1423, allocations: 169.1 kB / 489.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.778e-05/0.1424, allocations: 102.5 kB / 489.8 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.936e-05/0.1425, allocations: 53.61 kB / 489.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.1427, allocations: 342.8 kB / 490.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002175/0.1429, allocations: 95.81 kB / 490.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.1431, allocations: 121.8 kB / 490.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000472/0.1436, allocations: 240.1 kB / 490.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.1436, allocations: 4 kB / 490.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00181/0.1455, allocations: 0.5411 MB / 491.2 MB, free: 9.703 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.1455, allocations: 7.938 kB / 491.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1455, allocations: 0 / 491.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001603/0.1471, allocations: 315.1 kB / 491.5 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.1473, allocations: 35.89 kB / 491.6 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007712/0.155, allocations: 6.84 MB / 498.4 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/0.1553, allocations: 27.83 kB / 498.4 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.1553, allocations: 4 kB / 498.4 MB, free: 1.898 MB / 366.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.0001808/0.1555, allocations: 149.3 kB / 498.6 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.135e-05/0.1555, allocations: 31.69 kB / 498.6 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.1573, allocations: 0.5478 MB / 499.2 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1573, allocations: 7.938 kB / 499.2 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1573, allocations: 7.938 kB / 499.2 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.1573, allocations: 3.984 kB / 499.2 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004558/0.1578, allocations: 353.5 kB / 499.5 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.1578, allocations: 4 kB / 499.5 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.1579, allocations: 15.98 kB / 499.6 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001432/0.1593, allocations: 315.1 kB / 499.9 MB, free: 408 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.1594, allocations: 11.94 kB / 499.9 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006823/0.1662, allocations: 6.912 MB / 0.4949 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1662, allocations: 0 / 0.4949 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.1678, allocations: 0.6195 MB / 0.4955 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.933e-05/0.1679, allocations: 112.6 kB / 0.4956 GB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.152e-05/0.1679, allocations: 12 kB / 0.4956 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.1681, allocations: 11.98 kB / 0.4956 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.159e-05/0.1682, allocations: 31.94 kB / 0.4957 GB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.1682, allocations: 16.12 kB / 0.4957 GB, free: 8.066 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001407/0.1684, allocations: 166 kB / 0.4959 GB, free: 7.902 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1684, allocations: 0 / 0.4959 GB, free: 7.902 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000458/0.1689, allocations: 123.8 kB / 0.496 GB, free: 7.781 MB / 382.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.001833/0.1707, allocations: 1.156 MB / 0.4971 GB, free: 6.586 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.1717, allocations: 0.7686 MB / 0.4978 GB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1717, allocations: 0 / 0.4978 GB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.1728, allocations: 0.725 MB / 0.4986 GB, free: 4.988 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.1732, allocations: 30.91 kB / 0.4986 GB, free: 4.961 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005446/0.1786, allocations: 3.159 MB / 0.5017 GB, free: 1.688 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.1789, allocations: 0.7756 MB / 0.5024 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.47e-05/0.179, allocations: 9.953 kB / 0.5024 GB, free: 0.875 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.51e-05/0.1791, allocations: 79.41 kB / 0.5025 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1791, allocations: 0 / 0.5025 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5432/0.7224, allocations: 10.78 MB / 0.513 GB, free: 40.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/13.76, allocations: 8.25 kB / 0.513 GB, free: 40.53 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches