Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001436/0.001436, allocations: 117 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001525/0.001525, allocations: 216.7 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.228/0.228, allocations: 46.92 MB / 357.7 MB, free: 10.18 MB / 286.1 MB " [Timeout remaining time 180] 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.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002212/0.002212, allocations: 79.89 kB / 0.4916 GB, free: 7.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1287, allocations: 66.04 MB / 0.5561 GB, free: 5.555 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004233/0.133, allocations: 2.698 MB / 0.5588 GB, free: 2.836 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.1344, allocations: 0.7866 MB / 0.5595 GB, free: 2.043 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.1346, allocations: 8 kB / 0.5595 GB, free: 2.035 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002225/0.1348, allocations: 71.31 kB / 0.5596 GB, free: 1.965 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002296/0.135, allocations: 107.2 kB / 0.5597 GB, free: 1.859 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002754/0.1353, allocations: 111.8 kB / 0.5598 GB, free: 1.75 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000475/0.1358, allocations: 430.1 kB / 0.5602 GB, free: 1.328 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.136, allocations: 103.3 kB / 0.5603 GB, free: 1.223 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000185/0.1362, allocations: 147.5 kB / 0.5605 GB, free: 1.078 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002533/0.1364, allocations: 171.2 kB / 0.5606 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.25e-05/0.1365, allocations: 32 kB / 0.5607 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.302e-05/0.1365, allocations: 40 kB / 0.5607 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.581e-05/0.1366, allocations: 75.69 kB / 0.5608 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.1368, allocations: 187 kB / 0.561 GB, free: 0.582 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000553/0.1373, allocations: 430.1 kB / 0.5614 GB, free: 164 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.1373, allocations: 0 / 0.5614 GB, free: 164 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1373, allocations: 0 / 0.5614 GB, free: 164 kB / 414.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.1374, allocations: 0 / 0.5614 GB, free: 164 kB / 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.001189/0.1385, allocations: 0.6858 MB / 0.562 GB, free: 15.43 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1386, allocations: 8.031 kB / 0.562 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.014e-05/0.1386, allocations: 9.188 kB / 0.5621 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.934e-05/0.1387, allocations: 70.72 kB / 0.5621 GB, free: 15.33 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.981e-05/0.1388, allocations: 40.7 kB / 0.5622 GB, free: 15.29 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003878/0.1391, allocations: 298.6 kB / 0.5624 GB, free: 14.96 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.513e-05/0.1392, allocations: 21.38 kB / 0.5625 GB, free: 14.94 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.093e-05/0.1392, allocations: 40.38 kB / 0.5625 GB, free: 14.9 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006897/0.1399, allocations: 357.8 kB / 0.5628 GB, free: 14.53 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1399, allocations: 0 / 0.5628 GB, free: 14.53 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.14, allocations: 16 kB / 0.5629 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.14, allocations: 12 kB / 0.5629 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007045/0.1407, allocations: 259.8 kB / 0.5631 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.143, allocations: 1.343 MB / 0.5644 GB, free: 12.82 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005836/0.1436, allocations: 198.5 kB / 0.5646 GB, free: 12.59 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.1438, allocations: 79.56 kB / 0.5647 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.1439, allocations: 8 kB / 0.5647 GB, free: 12.49 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.1439, allocations: 34.55 kB / 0.5647 GB, free: 12.45 MB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.1439, allocations: 0 / 0.5647 GB, free: 12.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008618/0.1448, allocations: 257.3 kB / 0.565 GB, free: 12.19 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.1449, allocations: 128.5 kB / 0.5651 GB, free: 12.03 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004242/0.1453, allocations: 341.7 kB / 0.5654 GB, free: 11.69 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.1453, allocations: 29.7 kB / 0.5655 GB, free: 11.65 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.1455, allocations: 248.1 kB / 0.5657 GB, free: 11.41 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.544e-05/0.1455, allocations: 47.59 kB / 0.5657 GB, free: 11.36 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.497e-05/0.1456, allocations: 57.94 kB / 0.5658 GB, free: 11.29 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.1458, allocations: 350.7 kB / 0.5661 GB, free: 10.94 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002459/0.1461, allocations: 80.5 kB / 0.5662 GB, free: 10.86 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003056/0.1464, allocations: 168.7 kB / 0.5664 GB, free: 10.66 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000538/0.1469, allocations: 246.9 kB / 0.5666 GB, free: 10.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1469, allocations: 3.938 kB / 0.5666 GB, free: 10.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006999/0.1476, allocations: 317.6 kB / 0.5669 GB, free: 10.06 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.1476, allocations: 14.02 kB / 0.5669 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-06/0.1476, allocations: 4 kB / 0.5669 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.1477, allocations: 4.25 kB / 0.5669 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000424/0.1481, allocations: 91.88 kB / 0.567 GB, free: 9.949 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.553e-05/0.1481, allocations: 11.92 kB / 0.567 GB, free: 9.938 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.1484, allocations: 51.66 kB / 0.5671 GB, free: 9.887 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.1484, allocations: 12 kB / 0.5671 GB, free: 9.875 MB / 430.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.0002335/0.1486, allocations: 149.7 kB / 0.5672 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.96e-05/0.1487, allocations: 31.81 kB / 0.5673 GB, free: 9.688 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.569e-05/0.1488, allocations: 42.39 kB / 0.5673 GB, free: 9.641 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.1488, allocations: 0 / 0.5673 GB, free: 9.641 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.1488, allocations: 4 kB / 0.5673 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1488, allocations: 0 / 0.5673 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008303/0.1497, allocations: 0.5954 MB / 0.5679 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1497, allocations: 0 / 0.5679 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002948/0.1499, allocations: 59.88 kB / 0.5679 GB, free: 8.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.15, allocations: 4.219 kB / 0.568 GB, free: 8.906 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.15, allocations: 4 kB / 0.568 GB, free: 8.902 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.15, allocations: 0 / 0.568 GB, free: 8.902 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.15, allocations: 4 kB / 0.568 GB, free: 8.898 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005985/0.1506, allocations: 415.8 kB / 0.5684 GB, free: 8.461 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.017e-05/0.1507, allocations: 104.9 kB / 0.5685 GB, free: 8.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.1507, allocations: 15.92 kB / 0.5685 GB, free: 8.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.1509, allocations: 11.98 kB / 0.5685 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.693e-05/0.151, allocations: 11.98 kB / 0.5685 GB, free: 8.301 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.151, allocations: 8 kB / 0.5685 GB, free: 8.293 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002539/0.1513, allocations: 239.2 kB / 0.5687 GB, free: 8.062 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1513, allocations: 4 kB / 0.5687 GB, free: 8.059 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003914/0.1516, allocations: 67.89 kB / 0.5688 GB, free: 7.992 MB / 430.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.001137/0.1528, allocations: 0.9357 MB / 0.5697 GB, free: 7.012 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005569/0.1533, allocations: 183.7 kB / 0.5699 GB, free: 6.832 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1533, allocations: 3.938 kB / 0.5699 GB, free: 6.828 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002372/0.1536, allocations: 76.7 kB / 0.57 GB, free: 6.754 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004572/0.154, allocations: 25.42 kB / 0.57 GB, free: 6.727 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004531/0.1586, allocations: 3.003 MB / 0.5729 GB, free: 3.543 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004919/0.1591, allocations: 0.7831 MB / 0.5737 GB, free: 2.734 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.755e-05/0.1592, allocations: 17.95 kB / 0.5737 GB, free: 2.715 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.1593, allocations: 107.4 kB / 0.5738 GB, free: 2.609 MB / 430.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1593, allocations: 0 / 0.5738 GB, free: 2.609 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02204/0.1814, allocations: 5.036 MB / 0.5787 GB, free: 13.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.617/8.798, allocations: 15.98 kB / 0.5787 GB, free: 13.65 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.771371956972871]