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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 104.1 kB / 17.64 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 192 kB / 18.55 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2233/0.2233, allocations: 44.19 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 69.14 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1352, allocations: 60.81 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004585/0.1398, allocations: 2.662 MB / 472 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.1415, allocations: 0.7403 MB / 472.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003157/0.1419, allocations: 7.938 kB / 472.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003345/0.1422, allocations: 75.38 kB / 472.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004175/0.1427, allocations: 103.2 kB / 472.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000365/0.1431, allocations: 107.8 kB / 473 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005918/0.1437, allocations: 414.3 kB / 473.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002972/0.144, allocations: 150.9 kB / 473.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003336/0.1443, allocations: 159.4 kB / 473.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002511/0.1446, allocations: 167.2 kB / 473.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.457e-05/0.1447, allocations: 36 kB / 474 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.483e-05/0.1448, allocations: 32 kB / 474 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.629e-05/0.1448, allocations: 75.69 kB / 474.1 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001947/0.145, allocations: 183.1 kB / 474.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004404/0.1455, allocations: 414.5 kB / 474.6 MB, free: 8.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1455, allocations: 0 / 474.6 MB, free: 8.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1455, allocations: 4 kB / 474.6 MB, free: 8.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.505e-05/0.1455, allocations: 0 / 474.6 MB, free: 8.957 MB / 350.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.00127/0.1468, allocations: 0.6589 MB / 475.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.1469, allocations: 12.03 kB / 475.3 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.604e-05/0.147, allocations: 78.66 kB / 475.4 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.73e-05/0.147, allocations: 40.47 kB / 475.4 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003358/0.1474, allocations: 272.6 kB / 475.7 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.778e-05/0.1474, allocations: 25.38 kB / 475.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.1475, allocations: 32.38 kB / 475.8 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007185/0.1482, allocations: 362 kB / 476.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.1482, allocations: 0 / 476.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.089e-05/0.1483, allocations: 19.94 kB / 476.1 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.1483, allocations: 11.98 kB / 476.1 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006581/0.149, allocations: 263.8 kB / 476.4 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002059/0.151, allocations: 1.346 MB / 477.7 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005141/0.1516, allocations: 202.5 kB / 477.9 MB, free: 5.414 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.1518, allocations: 79.56 kB / 478 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.1518, allocations: 0 / 478 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.1518, allocations: 46.55 kB / 478.1 MB, free: 5.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.1518, allocations: 0 / 478.1 MB, free: 5.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007889/0.1526, allocations: 249.6 kB / 478.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.904e-05/0.1527, allocations: 140.5 kB / 478.4 MB, free: 4.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003767/0.1531, allocations: 324.5 kB / 478.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.1532, allocations: 29.7 kB / 478.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.1533, allocations: 235.6 kB / 479 MB, free: 4.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.849e-05/0.1534, allocations: 59.22 kB / 479.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.1535, allocations: 53.89 kB / 479.1 MB, free: 4.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.1537, allocations: 346.7 kB / 479.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002429/0.154, allocations: 80.5 kB / 479.5 MB, free: 3.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002983/0.1543, allocations: 172.2 kB / 479.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005533/0.1548, allocations: 246.9 kB / 480 MB, free: 3.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.1548, allocations: 4 kB / 480 MB, free: 3.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007434/0.1556, allocations: 308.9 kB / 480.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.1556, allocations: 4 kB / 480.3 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1557, allocations: 4 kB / 480.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.1557, allocations: 4 kB / 480.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000413/0.1561, allocations: 100 kB / 480.4 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.1561, allocations: 4 kB / 480.4 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000306/0.1564, allocations: 47.58 kB / 480.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.919e-05/0.1565, allocations: 11.98 kB / 480.4 MB, free: 2.738 MB / 350.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.0001664/0.1566, allocations: 153.7 kB / 480.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.1568, allocations: 27.62 kB / 480.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.682e-05/0.1569, allocations: 42.34 kB / 480.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.1569, allocations: 4.281 kB / 480.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1569, allocations: 0 / 480.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.1569, allocations: 7.984 kB / 480.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008481/0.1578, allocations: 0.5799 MB / 481.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1578, allocations: 4.031 kB / 481.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002828/0.1581, allocations: 63.88 kB / 481.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.1581, allocations: 4 kB / 481.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.1581, allocations: 3.938 kB / 481.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1581, allocations: 4 kB / 481.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1581, allocations: 0 / 481.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006015/0.1587, allocations: 406.7 kB / 481.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.913e-05/0.1588, allocations: 108.8 kB / 481.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.22e-05/0.1589, allocations: 7.938 kB / 481.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/0.1591, allocations: 15.98 kB / 481.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.44e-05/0.1592, allocations: 15.98 kB / 481.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.1592, allocations: 4 kB / 481.9 MB, free: 1.168 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002252/0.1594, allocations: 231 kB / 482.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1595, allocations: 0 / 482.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004229/0.1599, allocations: 75.75 kB / 482.2 MB, free: 0.8672 MB / 350.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.001119/0.161, allocations: 0.9254 MB / 483.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006062/0.1616, allocations: 199.8 kB / 483.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.1616, allocations: 0 / 483.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000235/0.1619, allocations: 87.77 kB / 483.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005659/0.1625, allocations: 30.05 kB / 483.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004265/0.1667, allocations: 2.948 MB / 486.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003807/0.1671, allocations: 0.779 MB / 487.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000145/0.1673, allocations: 26.12 kB / 487.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.1675, allocations: 99.41 kB / 487.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1675, allocations: 0 / 487.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02924/0.1967, allocations: 4.759 MB / 492 MB, free: 6.836 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.569/7.766, allocations: 8.062 kB / 492 MB, free: 6.828 MB / 366.1 MB (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 --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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches