Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.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.001581/0.001581, allocations: 116.7 kB / 18.5 MB, free: 4.582 MB / 14.72 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.001775/0.001775, allocations: 189.2 kB / 21.44 MB, free: 1.645 MB / 14.72 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 1.482/1.482, allocations: 225.6 MB / 249.8 MB, free: 3.723 MB / 190.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.2154/0.2154, allocations: 44.91 MB / 349.6 MB, free: 1.723 MB / 270.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.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: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 70.88 kB / 491.8 MB, free: 30.22 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.126, allocations: 64.25 MB / 0.543 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004273/0.1302, allocations: 2.673 MB / 0.5456 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.1316, allocations: 0.7633 MB / 0.5463 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.1318, allocations: 7.938 kB / 0.5463 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002252/0.132, allocations: 63.44 kB / 0.5464 GB, free: 0.582 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002591/0.1323, allocations: 103.2 kB / 0.5465 GB, free: 492 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002868/0.1325, allocations: 111.8 kB / 0.5466 GB, free: 380 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000498/0.133, allocations: 418.2 kB / 0.547 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.1333, allocations: 107 kB / 0.5471 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002499/0.1335, allocations: 151.4 kB / 0.5473 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.1337, allocations: 167.2 kB / 0.5474 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.554e-05/0.1338, allocations: 36 kB / 0.5475 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.123e-05/0.1338, allocations: 32 kB / 0.5475 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.562e-05/0.1339, allocations: 83.67 kB / 0.5476 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001749/0.1341, allocations: 183.1 kB / 0.5477 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005433/0.1346, allocations: 422.2 kB / 0.5481 GB, free: 14.8 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1346, allocations: 0 / 0.5481 GB, free: 14.8 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1346, allocations: 0 / 0.5481 GB, free: 14.8 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.1346, allocations: 0 / 0.5481 GB, free: 14.8 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001174/0.1358, allocations: 0.6703 MB / 0.5488 GB, free: 14.08 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.1359, allocations: 19.95 kB / 0.5488 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.705e-05/0.1359, allocations: 66.72 kB / 0.5489 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.076e-05/0.136, allocations: 44.64 kB / 0.5489 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004134/0.1364, allocations: 272.9 kB / 0.5492 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.1365, allocations: 29.31 kB / 0.5492 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.906e-05/0.1365, allocations: 28.38 kB / 0.5492 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007052/0.1372, allocations: 370 kB / 0.5496 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.1372, allocations: 4 kB / 0.5496 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.889e-05/0.1373, allocations: 8 kB / 0.5496 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.1373, allocations: 8 kB / 0.5496 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006437/0.1379, allocations: 271.8 kB / 0.5499 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.1401, allocations: 1.339 MB / 0.5512 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005098/0.1406, allocations: 194.5 kB / 0.5514 GB, free: 11.26 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.1409, allocations: 79.56 kB / 0.5514 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.1409, allocations: 3.984 kB / 0.5514 GB, free: 11.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.1409, allocations: 42.56 kB / 0.5515 GB, free: 11.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.1409, allocations: 4 kB / 0.5515 GB, free: 11.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008001/0.1417, allocations: 241.2 kB / 0.5517 GB, free: 10.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.181e-05/0.1418, allocations: 132.5 kB / 0.5518 GB, free: 10.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/0.1422, allocations: 336.6 kB / 0.5522 GB, free: 10.37 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.1422, allocations: 29.64 kB / 0.5522 GB, free: 10.33 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.1425, allocations: 240.2 kB / 0.5524 GB, free: 10.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.996e-05/0.1425, allocations: 63.47 kB / 0.5525 GB, free: 10.03 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.1426, allocations: 53.98 kB / 0.5525 GB, free: 9.969 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.1428, allocations: 338.8 kB / 0.5529 GB, free: 9.629 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002424/0.143, allocations: 80.5 kB / 0.5529 GB, free: 9.551 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002945/0.1433, allocations: 168.2 kB / 0.5531 GB, free: 9.348 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005301/0.1439, allocations: 250.9 kB / 0.5533 GB, free: 9.062 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1439, allocations: 0 / 0.5533 GB, free: 9.062 MB / 414.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007007/0.1446, allocations: 317.2 kB / 0.5536 GB, free: 8.746 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.1446, allocations: 8 kB / 0.5536 GB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.1446, allocations: 7.938 kB / 0.5536 GB, free: 8.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.1446, allocations: 4 kB / 0.5537 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004638/0.1451, allocations: 87.86 kB / 0.5537 GB, free: 8.641 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.1451, allocations: 8.125 kB / 0.5537 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002833/0.1454, allocations: 55.7 kB / 0.5538 GB, free: 8.578 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.1454, allocations: 12 kB / 0.5538 GB, free: 8.566 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001841/0.1456, allocations: 153.7 kB / 0.554 GB, free: 8.406 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.1457, allocations: 28.09 kB / 0.554 GB, free: 8.379 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.039e-05/0.1458, allocations: 34.41 kB / 0.554 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.1458, allocations: 7.984 kB / 0.554 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.1458, allocations: 0 / 0.554 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.1458, allocations: 8 kB / 0.554 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009168/0.1467, allocations: 0.5804 MB / 0.5546 GB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1467, allocations: 0 / 0.5546 GB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002833/0.147, allocations: 64.03 kB / 0.5547 GB, free: 7.609 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/0.147, allocations: 7.938 kB / 0.5547 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.147, allocations: 11.94 kB / 0.5547 GB, free: 7.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.895e-06/0.147, allocations: 7.984 kB / 0.5547 GB, free: 7.582 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.147, allocations: 0 / 0.5547 GB, free: 7.582 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005825/0.1476, allocations: 397.7 kB / 0.5551 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.1477, allocations: 108.9 kB / 0.5552 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.929e-05/0.1477, allocations: 7.938 kB / 0.5552 GB, free: 7.031 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/0.148, allocations: 19.98 kB / 0.5552 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.99e-05/0.148, allocations: 11.98 kB / 0.5552 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.1481, allocations: 11.98 kB / 0.5552 GB, free: 6.988 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002699/0.1483, allocations: 227.1 kB / 0.5554 GB, free: 6.766 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1483, allocations: 0 / 0.5554 GB, free: 6.766 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004224/0.1488, allocations: 75.78 kB / 0.5555 GB, free: 6.691 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009977/0.1498, allocations: 0.9303 MB / 0.5564 GB, free: 5.719 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005727/0.1503, allocations: 184.1 kB / 0.5566 GB, free: 5.539 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1503, allocations: 8.125 kB / 0.5566 GB, free: 5.531 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002206/0.1505, allocations: 71.89 kB / 0.5567 GB, free: 5.461 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/0.151, allocations: 29.36 kB / 0.5567 GB, free: 5.434 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00432/0.1553, allocations: 2.96 MB / 0.5596 GB, free: 2.273 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004465/0.1558, allocations: 0.7751 MB / 0.5603 GB, free: 1.473 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.1559, allocations: 26.11 kB / 0.5604 GB, free: 1.449 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.156, allocations: 99.41 kB / 0.5605 GB, free: 1.355 MB / 414.1 MB Notification: Performance of SimCode: time 4.7e-07/0.156, allocations: 0 / 0.5605 GB, free: 1.355 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02715/0.1832, allocations: 4.914 MB / 0.5653 GB, free: 12.53 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.42/8.603, allocations: 11.88 kB / 0.5653 GB, free: 12.52 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.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: 11.576020451262593]