Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20.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/ScalableTestSuite 2.2.0-master/package.mo", uses=false) Using package ScalableTestSuite with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/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(ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Mechanical_HarmonicOscillator_ScaledExperiments_HarmonicOscillatorNetwork_N_20",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Mechanical_HarmonicOscillator_ScaledExperiments_HarmonicOscillatorNetwork_N_20",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.001299/0.001299, allocations: 107.6 kB / 17.06 MB, free: 5.82 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.001239/0.001239, allocations: 195.9 kB / 18 MB, free: 4.965 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.389/1.389, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo): time 1.029/1.029, allocations: 119.3 MB / 411.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001819/0.001819, allocations: 62.52 kB / 0.5705 GB, free: 39.99 MB / 462.3 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1382, allocations: 80.7 MB / 0.6493 GB, free: 13.52 MB / 0.4983 GB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20): time 0.002345/0.1406, allocations: 1.227 MB / 0.6505 GB, free: 12.28 MB / 0.4983 GB Notification: Performance of NFInst.instExpressions: time 0.0002538/0.1408, allocations: 47.86 kB / 0.6505 GB, free: 12.23 MB / 0.4983 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.734e-05/0.1409, allocations: 0 / 0.6505 GB, free: 12.23 MB / 0.4983 GB Notification: Performance of NFTyping.typeComponents: time 7.484e-05/0.141, allocations: 0 / 0.6505 GB, free: 12.23 MB / 0.4983 GB Notification: Performance of NFTyping.typeBindings: time 5.85e-05/0.1411, allocations: 11.91 kB / 0.6506 GB, free: 12.22 MB / 0.4983 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001519/0.1412, allocations: 19.97 kB / 0.6506 GB, free: 12.2 MB / 0.4983 GB Notification: Performance of NFFlatten.flatten: time 0.0004776/0.1417, allocations: 439.4 kB / 0.651 GB, free: 11.77 MB / 0.4983 GB Notification: Performance of NFFlatten.resolveConnections: time 6.135e-05/0.1418, allocations: 8 kB / 0.651 GB, free: 11.76 MB / 0.4983 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.1419, allocations: 151.9 kB / 0.6512 GB, free: 11.61 MB / 0.4983 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002466/0.1422, allocations: 143.7 kB / 0.6513 GB, free: 11.47 MB / 0.4983 GB Notification: Performance of NFPackage.collectConstants: time 6.05e-05/0.1423, allocations: 24 kB / 0.6513 GB, free: 11.45 MB / 0.4983 GB Notification: Performance of NFFlatten.collectFunctions: time 5.684e-05/0.1423, allocations: 23.94 kB / 0.6513 GB, free: 11.43 MB / 0.4983 GB Notification: Performance of NFScalarize.scalarize: time 0.0001385/0.1425, allocations: 138 kB / 0.6515 GB, free: 11.29 MB / 0.4983 GB Notification: Performance of NFVerifyModel.verify: time 0.0002119/0.1427, allocations: 139.4 kB / 0.6516 GB, free: 11.16 MB / 0.4983 GB Notification: Performance of NFConvertDAE.convert: time 0.0002556/0.1429, allocations: 231.3 kB / 0.6518 GB, free: 10.93 MB / 0.4983 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.143, allocations: 0 / 0.6518 GB, free: 10.93 MB / 0.4983 GB Notification: Performance of FrontEnd: time 1.623e-06/0.143, allocations: 0 / 0.6518 GB, free: 10.93 MB / 0.4983 GB Notification: Performance of Transformations before backend: time 1.215e-05/0.143, allocations: 0 / 0.6518 GB, free: 10.93 MB / 0.4983 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001793/0.1448, allocations: 0.773 MB / 0.6526 GB, free: 10.1 MB / 0.4983 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1448, allocations: 12.03 kB / 0.6526 GB, free: 10.09 MB / 0.4983 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.664e-05/0.1449, allocations: 58.73 kB / 0.6526 GB, free: 10.02 MB / 0.4983 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.285e-05/0.145, allocations: 24.84 kB / 0.6527 GB, free: 10 MB / 0.4983 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.1453, allocations: 236.1 kB / 0.6529 GB, free: 9.73 MB / 0.4983 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.538e-05/0.1453, allocations: 28.94 kB / 0.6529 GB, free: 9.703 MB / 0.4983 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.1454, allocations: 56.27 kB / 0.653 GB, free: 9.648 MB / 0.4983 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005789/0.146, allocations: 345.2 kB / 0.6533 GB, free: 9.305 MB / 0.4983 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.146, allocations: 11.89 kB / 0.6533 GB, free: 9.293 MB / 0.4983 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.1461, allocations: 8 kB / 0.6533 GB, free: 9.285 MB / 0.4983 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.1461, allocations: 8 kB / 0.6533 GB, free: 9.277 MB / 0.4983 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003698/0.1465, allocations: 218.1 kB / 0.6535 GB, free: 9.062 MB / 0.4983 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006413/0.1471, allocations: 471.9 kB / 0.654 GB, free: 8.555 MB / 0.4983 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008862/0.148, allocations: 0.4978 MB / 0.6545 GB, free: 8.047 MB / 0.4983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003575/0.1484, allocations: 242.3 kB / 0.6547 GB, free: 7.805 MB / 0.4983 GB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.1484, allocations: 8.562 kB / 0.6547 GB, free: 7.797 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.1485, allocations: 39.12 kB / 0.6547 GB, free: 7.75 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=60): time 1.843e-06/0.1485, allocations: 0 / 0.6547 GB, free: 7.75 MB / 0.4983 GB Notification: Performance of matching and sorting (n=60): time 0.004024/0.1525, allocations: 1.253 MB / 0.656 GB, free: 6.473 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.1526, allocations: 55.97 kB / 0.656 GB, free: 6.402 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.604e-05/0.1527, allocations: 109.8 kB / 0.6561 GB, free: 6.285 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 4.674e-05/0.1527, allocations: 45.7 kB / 0.6562 GB, free: 6.234 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 5.431e-05/0.1528, allocations: 89.45 kB / 0.6563 GB, free: 6.141 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.153, allocations: 261.8 kB / 0.6565 GB, free: 5.883 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002354/0.1533, allocations: 146.7 kB / 0.6566 GB, free: 5.734 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.1534, allocations: 346.8 kB / 0.657 GB, free: 5.387 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003984/0.1538, allocations: 253.8 kB / 0.6572 GB, free: 5.137 MB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005738/0.1544, allocations: 434.5 kB / 0.6576 GB, free: 4.652 MB / 0.4983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.1555, allocations: 0.7152 MB / 0.6583 GB, free: 3.871 MB / 0.4983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.1555, allocations: 3.938 kB / 0.6583 GB, free: 3.867 MB / 0.4983 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002101/0.1576, allocations: 1.007 MB / 0.6593 GB, free: 2.852 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.1576, allocations: 8 kB / 0.6593 GB, free: 2.844 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.1576, allocations: 4 kB / 0.6593 GB, free: 2.84 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/0.159, allocations: 304.4 kB / 0.6596 GB, free: 2.539 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005429/0.1595, allocations: 167.8 kB / 0.6598 GB, free: 2.375 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004814/0.1643, allocations: 3.106 MB / 0.6628 GB, free: 15.13 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003144/0.1647, allocations: 63.58 kB / 0.6629 GB, free: 15.07 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-05/0.1647, allocations: 35.94 kB / 0.6629 GB, free: 15.04 MB / 0.5139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002614/0.165, allocations: 178.4 kB / 0.6631 GB, free: 14.85 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.061e-05/0.1651, allocations: 19.86 kB / 0.6631 GB, free: 14.83 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001636/0.1652, allocations: 61.88 kB / 0.6632 GB, free: 14.76 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1652, allocations: 8 kB / 0.6632 GB, free: 14.75 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.1653, allocations: 4 kB / 0.6632 GB, free: 14.75 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.1653, allocations: 3.984 kB / 0.6632 GB, free: 14.75 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005825/0.1659, allocations: 465.6 kB / 0.6636 GB, free: 14.25 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.1659, allocations: 3.984 kB / 0.6636 GB, free: 14.24 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007289/0.1666, allocations: 135.9 kB / 0.6638 GB, free: 14.11 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/0.1678, allocations: 284.5 kB / 0.664 GB, free: 13.83 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.809e-05/0.1679, allocations: 35.91 kB / 0.6641 GB, free: 13.79 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004631/0.1725, allocations: 3.099 MB / 0.6671 GB, free: 10.56 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1726, allocations: 0 / 0.6671 GB, free: 10.56 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/0.1748, allocations: 1.132 MB / 0.6682 GB, free: 9.414 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 9.107e-05/0.1749, allocations: 112.8 kB / 0.6683 GB, free: 9.285 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.488e-05/0.175, allocations: 23.98 kB / 0.6683 GB, free: 9.262 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.1752, allocations: 16 kB / 0.6683 GB, free: 9.246 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.1753, allocations: 48.42 kB / 0.6684 GB, free: 9.195 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.715e-05/0.1754, allocations: 16 kB / 0.6684 GB, free: 9.18 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 4.495e-05/0.1754, allocations: 79.22 kB / 0.6685 GB, free: 9.102 MB / 0.5139 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1754, allocations: 0 / 0.6685 GB, free: 9.102 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.0006628/0.1761, allocations: 148 kB / 0.6686 GB, free: 8.957 MB / 0.5139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 40 (xm[1],xm[2],xm[3],xm[4],xm[5],xm[6],xm[7],xm[8],xm[9],xm[10],xm[11],xm[12],xm[13],xm[14],xm[15],xm[16],xm[17],xm[18],xm[19],xm[20],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15],v[16],v[17],v[18],v[19],v[20]) * 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 (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00259/0.1787, allocations: 1.703 MB / 0.6703 GB, free: 7.219 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.001952/0.1807, allocations: 0.8921 MB / 0.6711 GB, free: 6.316 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-05/0.1807, allocations: 0 / 0.6711 GB, free: 6.316 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.001172/0.1819, allocations: 0.559 MB / 0.6717 GB, free: 5.746 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.1822, allocations: 27.98 kB / 0.6717 GB, free: 5.719 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01012/0.1923, allocations: 7.034 MB / 0.6786 GB, free: 14.47 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004802/0.1928, allocations: 0.8082 MB / 0.6794 GB, free: 13.64 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.0003096/0.1931, allocations: 143.1 kB / 0.6795 GB, free: 13.5 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.1933, allocations: 91.42 kB / 0.6796 GB, free: 13.41 MB / 0.5295 GB Notification: Performance of SimCode: time 6.21e-07/0.1933, allocations: 0 / 0.6796 GB, free: 13.41 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04214/0.2354, allocations: 9.539 MB / 0.6889 GB, free: 4.102 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.975/10.21, allocations: 15.16 kB / 0.6889 GB, free: 4.086 MB / 0.5295 GB (rm -f ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20.pipe ; mkfifo ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20.pipe ; head -c 1048576 < ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20.pipe >> ../files/ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20.sim & python3 -m fmpy simulate --output-file ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20_res.csv --start-time 0 --stop-time 10 --timeout 300 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ScalableTestSuite_ScalableTestSuite_Mechanical_HarmonicOscillator_ScaledExperiments_HarmonicOscillatorNetwork_N_20.fmu > ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20.pipe 2>&1) diffSimulationResults("ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ScalableTestSuite/ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches