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: translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources") translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001089/0.001089, allocations: 192 kB / 18.56 MB, free: 4.434 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.376/1.376, allocations: 222.9 MB / 242.2 MB, free: 15.15 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.2157/0.2157, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002396/0.002396, allocations: 65.12 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1632/0.1657, allocations: 60.84 MB / 469.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004191/0.1699, allocations: 2.638 MB / 471.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1713, allocations: 0.7517 MB / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001505/0.1715, allocations: 8 kB / 472.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002483/0.1717, allocations: 71.36 kB / 472.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002342/0.172, allocations: 99.17 kB / 472.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002896/0.1723, allocations: 111.9 kB / 472.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003885/0.1727, allocations: 410.5 kB / 473.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002276/0.1729, allocations: 159.4 kB / 473.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.1731, allocations: 155.4 kB / 473.6 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.1733, allocations: 167.2 kB / 473.8 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.939e-05/0.1734, allocations: 32 kB / 473.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.409e-05/0.1734, allocations: 32 kB / 473.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.328e-05/0.1735, allocations: 83.69 kB / 474 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001458/0.1736, allocations: 187 kB / 474.1 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003352/0.174, allocations: 402.5 kB / 474.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.174, allocations: 0 / 474.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.174, allocations: 0 / 474.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.174, allocations: 4 kB / 474.5 MB, free: 9.059 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.0009415/0.175, allocations: 0.6628 MB / 475.2 MB, free: 8.348 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.175, allocations: 12.03 kB / 475.2 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.711e-05/0.1751, allocations: 40.47 kB / 475.2 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.1753, allocations: 272.7 kB / 475.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.1754, allocations: 29.36 kB / 475.5 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.617e-05/0.1754, allocations: 32.38 kB / 475.6 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006097/0.176, allocations: 362.2 kB / 475.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1761, allocations: 4 kB / 475.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.1761, allocations: 12 kB / 475.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.1761, allocations: 12 kB / 476 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006011/0.1767, allocations: 263.8 kB / 476.2 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.1786, allocations: 1.354 MB / 477.6 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000464/0.1791, allocations: 194.6 kB / 477.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002078/0.1793, allocations: 87.55 kB / 477.8 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.1794, allocations: 7.938 kB / 477.8 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.1794, allocations: 34.56 kB / 477.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.703e-06/0.1794, allocations: 0 / 477.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007611/0.1802, allocations: 245.2 kB / 478.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.848e-05/0.1803, allocations: 136.6 kB / 478.3 MB, free: 5.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003577/0.1806, allocations: 328.4 kB / 478.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.1807, allocations: 33.64 kB / 478.6 MB, free: 4.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.1809, allocations: 231.6 kB / 478.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.613e-05/0.1809, allocations: 59.27 kB / 478.9 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.604e-05/0.181, allocations: 57.89 kB / 478.9 MB, free: 4.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1812, allocations: 342.8 kB / 479.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/0.1814, allocations: 84.5 kB / 479.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.1817, allocations: 168.1 kB / 479.5 MB, free: 3.688 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000481/0.1822, allocations: 247 kB / 479.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.1822, allocations: 0 / 479.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006465/0.1828, allocations: 313.6 kB / 480.1 MB, free: 3.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.1829, allocations: 8 kB / 480.1 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1829, allocations: 4.109 kB / 480.1 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.1829, allocations: 11.98 kB / 480.1 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003813/0.1833, allocations: 88.11 kB / 480.2 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.1833, allocations: 8 kB / 480.2 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.1836, allocations: 47.56 kB / 480.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.1836, allocations: 16 kB / 480.3 MB, free: 2.914 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.0001528/0.1838, allocations: 153.6 kB / 480.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.777e-05/0.1839, allocations: 27.72 kB / 480.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.96e-05/0.1839, allocations: 30.41 kB / 480.5 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.1839, allocations: 4 kB / 480.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-06/0.184, allocations: 4 kB / 480.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.184, allocations: 3.984 kB / 480.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007508/0.1847, allocations: 0.5953 MB / 481.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.1847, allocations: 0 / 481.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.185, allocations: 56.11 kB / 481.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.185, allocations: 3.984 kB / 481.1 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.185, allocations: 11.94 kB / 481.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1851, allocations: 3.938 kB / 481.1 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1851, allocations: 4 kB / 481.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005095/0.1856, allocations: 383.7 kB / 481.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.985e-05/0.1857, allocations: 112.7 kB / 481.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.904e-05/0.1857, allocations: 11.94 kB / 481.6 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.1859, allocations: 19.92 kB / 481.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.619e-05/0.186, allocations: 15.97 kB / 481.7 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.829e-06/0.186, allocations: 4 kB / 481.7 MB, free: 1.352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002147/0.1862, allocations: 227.1 kB / 481.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1862, allocations: 0 / 481.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003771/0.1866, allocations: 75.75 kB / 482 MB, free: 1.055 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.0001205/0.1867, allocations: 103.2 kB / 482.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000529/0.1873, allocations: 199.7 kB / 482.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1873, allocations: 0.5 kB / 482.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002175/0.1875, allocations: 83.83 kB / 482.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004753/0.188, allocations: 29.88 kB / 482.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009773/0.189, allocations: 0.5497 MB / 482.9 MB, free: 44 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.1894, allocations: 0.7714 MB / 483.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000104/0.1895, allocations: 26.12 kB / 483.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.282e-05/0.1896, allocations: 19.44 kB / 483.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1896, allocations: 0 / 483.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of Templates: time 0.004508/0.1941, allocations: 1.808 MB / 485.6 MB, free: 13.39 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins/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