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.001082/0.001082, allocations: 109.4 kB / 17.06 MB, free: 5.965 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.001131/0.001131, allocations: 200 kB / 18.01 MB, free: 5.047 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.219/1.219, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo): time 0.8087/0.8087, allocations: 119.3 MB / 411.2 MB, free: 9.488 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 62.09 kB / 0.5705 GB, free: 39.95 MB / 462.3 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1299, allocations: 80.7 MB / 0.6493 GB, free: 13.49 MB / 0.4983 GB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20): time 0.00189/0.1319, allocations: 1.222 MB / 0.6505 GB, free: 12.26 MB / 0.4983 GB Notification: Performance of NFInst.instExpressions: time 0.0001751/0.1321, allocations: 47.86 kB / 0.6505 GB, free: 12.21 MB / 0.4983 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.82e-05/0.1321, allocations: 4 kB / 0.6505 GB, free: 12.21 MB / 0.4983 GB Notification: Performance of NFTyping.typeComponents: time 8.212e-05/0.1322, allocations: 7.938 kB / 0.6506 GB, free: 12.2 MB / 0.4983 GB Notification: Performance of NFTyping.typeBindings: time 6.372e-05/0.1323, allocations: 3.984 kB / 0.6506 GB, free: 12.2 MB / 0.4983 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001518/0.1324, allocations: 19.95 kB / 0.6506 GB, free: 12.18 MB / 0.4983 GB Notification: Performance of NFFlatten.flatten: time 0.0003548/0.1328, allocations: 443.4 kB / 0.651 GB, free: 11.75 MB / 0.4983 GB Notification: Performance of NFFlatten.resolveConnections: time 4.255e-05/0.1328, allocations: 4 kB / 0.651 GB, free: 11.74 MB / 0.4983 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.133, allocations: 151.8 kB / 0.6511 GB, free: 11.59 MB / 0.4983 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.1332, allocations: 147.7 kB / 0.6513 GB, free: 11.45 MB / 0.4983 GB Notification: Performance of NFPackage.collectConstants: time 4.986e-05/0.1332, allocations: 24 kB / 0.6513 GB, free: 11.43 MB / 0.4983 GB Notification: Performance of NFFlatten.collectFunctions: time 4.128e-05/0.1333, allocations: 24 kB / 0.6513 GB, free: 11.4 MB / 0.4983 GB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.1334, allocations: 134 kB / 0.6515 GB, free: 11.27 MB / 0.4983 GB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.1335, allocations: 139.5 kB / 0.6516 GB, free: 11.14 MB / 0.4983 GB Notification: Performance of NFConvertDAE.convert: time 0.0001915/0.1337, allocations: 235.3 kB / 0.6518 GB, free: 10.91 MB / 0.4983 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1337, allocations: 4 kB / 0.6518 GB, free: 10.9 MB / 0.4983 GB Notification: Performance of FrontEnd: time 1.352e-06/0.1337, allocations: 0 / 0.6518 GB, free: 10.9 MB / 0.4983 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.1338, allocations: 0 / 0.6518 GB, free: 10.9 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.001479/0.1352, allocations: 0.7652 MB / 0.6526 GB, free: 10.08 MB / 0.4983 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.1353, allocations: 8.031 kB / 0.6526 GB, free: 10.07 MB / 0.4983 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.222e-05/0.1354, allocations: 66.72 kB / 0.6526 GB, free: 10 MB / 0.4983 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.835e-05/0.1354, allocations: 20.84 kB / 0.6527 GB, free: 9.98 MB / 0.4983 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/0.1357, allocations: 244 kB / 0.6529 GB, free: 9.703 MB / 0.4983 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.1357, allocations: 28.94 kB / 0.6529 GB, free: 9.676 MB / 0.4983 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.999e-05/0.1358, allocations: 60.25 kB / 0.653 GB, free: 9.617 MB / 0.4983 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004706/0.1363, allocations: 333.2 kB / 0.6533 GB, free: 9.285 MB / 0.4983 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.1363, allocations: 19.88 kB / 0.6533 GB, free: 9.266 MB / 0.4983 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.1364, allocations: 8 kB / 0.6533 GB, free: 9.258 MB / 0.4983 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.1364, allocations: 8 kB / 0.6533 GB, free: 9.25 MB / 0.4983 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003098/0.1367, allocations: 210.1 kB / 0.6535 GB, free: 9.043 MB / 0.4983 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005075/0.1372, allocations: 483.9 kB / 0.654 GB, free: 8.523 MB / 0.4983 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000715/0.1379, allocations: 489.9 kB / 0.6545 GB, free: 8.035 MB / 0.4983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003071/0.1382, allocations: 246.3 kB / 0.6547 GB, free: 7.789 MB / 0.4983 GB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.1383, allocations: 8.562 kB / 0.6547 GB, free: 7.781 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.1383, allocations: 47.11 kB / 0.6547 GB, free: 7.727 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=60): time 1.613e-06/0.1383, allocations: 0 / 0.6547 GB, free: 7.727 MB / 0.4983 GB Notification: Performance of matching and sorting (n=60): time 0.003526/0.1418, allocations: 1.245 MB / 0.656 GB, free: 6.457 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.1419, allocations: 63.97 kB / 0.656 GB, free: 6.379 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.645e-05/0.142, allocations: 113.8 kB / 0.6561 GB, free: 6.258 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.142, allocations: 41.7 kB / 0.6562 GB, free: 6.211 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 3.365e-05/0.142, allocations: 93.44 kB / 0.6563 GB, free: 6.113 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.1422, allocations: 265.8 kB / 0.6565 GB, free: 5.852 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.1424, allocations: 142.7 kB / 0.6567 GB, free: 5.707 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1425, allocations: 346.8 kB / 0.657 GB, free: 5.359 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003493/0.1428, allocations: 253.8 kB / 0.6572 GB, free: 5.109 MB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000433/0.1433, allocations: 432.4 kB / 0.6576 GB, free: 4.625 MB / 0.4983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008219/0.1441, allocations: 0.7151 MB / 0.6583 GB, free: 3.844 MB / 0.4983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1441, allocations: 0 / 0.6583 GB, free: 3.844 MB / 0.4983 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001759/0.1459, allocations: 1.019 MB / 0.6593 GB, free: 2.816 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.1459, allocations: 4 kB / 0.6593 GB, free: 2.812 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.1459, allocations: 8 kB / 0.6593 GB, free: 2.805 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/0.1471, allocations: 300.4 kB / 0.6596 GB, free: 2.508 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004719/0.1476, allocations: 159.8 kB / 0.6598 GB, free: 2.352 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003852/0.1514, allocations: 3.104 MB / 0.6628 GB, free: 15.11 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.1517, allocations: 71.5 kB / 0.6629 GB, free: 15.04 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.936e-05/0.1518, allocations: 31.94 kB / 0.6629 GB, free: 15.01 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.0001685/0.152, allocations: 190.4 kB / 0.6631 GB, free: 14.82 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.411e-05/0.152, allocations: 19.86 kB / 0.6631 GB, free: 14.8 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.1521, allocations: 61.88 kB / 0.6632 GB, free: 14.73 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.1521, allocations: 4 kB / 0.6632 GB, free: 14.72 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.1521, allocations: 4 kB / 0.6632 GB, free: 14.72 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.1522, allocations: 4.172 kB / 0.6632 GB, free: 14.71 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004401/0.1526, allocations: 453.6 kB / 0.6636 GB, free: 14.23 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1526, allocations: 4 kB / 0.6636 GB, free: 14.22 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006738/0.1533, allocations: 131.9 kB / 0.6637 GB, free: 14.09 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001109/0.1544, allocations: 300.5 kB / 0.664 GB, free: 13.8 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.104e-05/0.1545, allocations: 27.97 kB / 0.6641 GB, free: 13.77 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003753/0.1582, allocations: 3.111 MB / 0.6671 GB, free: 10.53 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1583, allocations: 0 / 0.6671 GB, free: 10.53 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.1601, allocations: 1.132 MB / 0.6682 GB, free: 9.379 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 4.765e-05/0.1602, allocations: 108.8 kB / 0.6683 GB, free: 9.254 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.853e-05/0.1602, allocations: 23.97 kB / 0.6683 GB, free: 9.23 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.1604, allocations: 8 kB / 0.6683 GB, free: 9.223 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.93e-05/0.1605, allocations: 52.44 kB / 0.6684 GB, free: 9.168 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.1605, allocations: 15.98 kB / 0.6684 GB, free: 9.152 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 3.348e-05/0.1606, allocations: 83.22 kB / 0.6685 GB, free: 9.07 MB / 0.5139 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1606, allocations: 4 kB / 0.6685 GB, free: 9.066 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.000449/0.161, allocations: 140 kB / 0.6686 GB, free: 8.93 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.002116/0.1632, allocations: 1.707 MB / 0.6703 GB, free: 7.188 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.001615/0.1648, allocations: 0.891 MB / 0.6712 GB, free: 6.285 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1648, allocations: 0 / 0.6712 GB, free: 6.285 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.1658, allocations: 0.564 MB / 0.6717 GB, free: 5.711 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.1661, allocations: 20 kB / 0.6717 GB, free: 5.691 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007948/0.174, allocations: 7.026 MB / 0.6786 GB, free: 14.45 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.1744, allocations: 0.8082 MB / 0.6794 GB, free: 13.62 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.0002666/0.1746, allocations: 147.1 kB / 0.6795 GB, free: 13.48 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.1748, allocations: 83.41 kB / 0.6796 GB, free: 13.39 MB / 0.5295 GB Notification: Performance of SimCode: time 8.02e-07/0.1748, allocations: 0 / 0.6796 GB, free: 13.39 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03046/0.2053, allocations: 9.548 MB / 0.6889 GB, free: 4.078 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.863/10.07, allocations: 16.34 kB / 0.6889 GB, free: 4.059 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