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.001107/0.001112, allocations: 109 kB / 17.06 MB, free: 5.969 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.001075/0.001075, allocations: 200 kB / 18.01 MB, free: 5.051 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.255/1.255, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo): time 0.8499/0.8499, allocations: 119.3 MB / 411.2 MB, free: 9.496 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 61.64 kB / 0.5705 GB, free: 40.03 MB / 462.3 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1303, allocations: 80.69 MB / 0.6493 GB, free: 13.51 MB / 0.4983 GB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_20): time 0.002389/0.1327, allocations: 1.227 MB / 0.6505 GB, free: 12.27 MB / 0.4983 GB Notification: Performance of NFInst.instExpressions: time 0.0002028/0.133, allocations: 43.94 kB / 0.6505 GB, free: 12.23 MB / 0.4983 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.559e-05/0.133, allocations: 7.875 kB / 0.6505 GB, free: 12.22 MB / 0.4983 GB Notification: Performance of NFTyping.typeComponents: time 7.594e-05/0.1331, allocations: 0 / 0.6505 GB, free: 12.22 MB / 0.4983 GB Notification: Performance of NFTyping.typeBindings: time 6.017e-05/0.1332, allocations: 15.91 kB / 0.6506 GB, free: 12.2 MB / 0.4983 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001526/0.1333, allocations: 15.97 kB / 0.6506 GB, free: 12.19 MB / 0.4983 GB Notification: Performance of NFFlatten.flatten: time 0.0004333/0.1338, allocations: 443.4 kB / 0.651 GB, free: 11.75 MB / 0.4983 GB Notification: Performance of NFFlatten.resolveConnections: time 4.75e-05/0.1338, allocations: 4 kB / 0.651 GB, free: 11.75 MB / 0.4983 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000191/0.134, allocations: 151.9 kB / 0.6511 GB, free: 11.6 MB / 0.4983 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002648/0.1343, allocations: 143.7 kB / 0.6513 GB, free: 11.46 MB / 0.4983 GB Notification: Performance of NFPackage.collectConstants: time 7.279e-05/0.1344, allocations: 24 kB / 0.6513 GB, free: 11.44 MB / 0.4983 GB Notification: Performance of NFFlatten.collectFunctions: time 4.911e-05/0.1344, allocations: 24 kB / 0.6513 GB, free: 11.41 MB / 0.4983 GB Notification: Performance of NFScalarize.scalarize: time 0.0001336/0.1346, allocations: 134 kB / 0.6515 GB, free: 11.29 MB / 0.4983 GB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.1348, allocations: 135.5 kB / 0.6516 GB, free: 11.15 MB / 0.4983 GB Notification: Performance of NFConvertDAE.convert: time 0.0002303/0.135, allocations: 235.3 kB / 0.6518 GB, free: 10.92 MB / 0.4983 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.135, allocations: 0 / 0.6518 GB, free: 10.92 MB / 0.4983 GB Notification: Performance of FrontEnd: time 1.282e-06/0.135, allocations: 0 / 0.6518 GB, free: 10.92 MB / 0.4983 GB Notification: Performance of Transformations before backend: time 1.118e-05/0.135, allocations: 0 / 0.6518 GB, free: 10.92 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.00161/0.1367, allocations: 0.7652 MB / 0.6526 GB, free: 10.1 MB / 0.4983 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.1367, allocations: 12.03 kB / 0.6526 GB, free: 10.09 MB / 0.4983 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.9e-05/0.1368, allocations: 62.72 kB / 0.6526 GB, free: 10.02 MB / 0.4983 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.776e-05/0.1369, allocations: 24.84 kB / 0.6527 GB, free: 9.996 MB / 0.4983 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002921/0.1372, allocations: 244 kB / 0.6529 GB, free: 9.719 MB / 0.4983 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.1372, allocations: 28.92 kB / 0.6529 GB, free: 9.691 MB / 0.4983 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.51e-05/0.1373, allocations: 60.31 kB / 0.653 GB, free: 9.633 MB / 0.4983 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.1378, allocations: 329.2 kB / 0.6533 GB, free: 9.305 MB / 0.4983 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.043e-05/0.1378, allocations: 19.88 kB / 0.6533 GB, free: 9.285 MB / 0.4983 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.1379, allocations: 16 kB / 0.6533 GB, free: 9.27 MB / 0.4983 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.1379, allocations: 4 kB / 0.6533 GB, free: 9.266 MB / 0.4983 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003433/0.1382, allocations: 218 kB / 0.6535 GB, free: 9.051 MB / 0.4983 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005557/0.1388, allocations: 475.9 kB / 0.654 GB, free: 8.539 MB / 0.4983 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007908/0.1396, allocations: 490 kB / 0.6545 GB, free: 8.051 MB / 0.4983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000327/0.1399, allocations: 246.3 kB / 0.6547 GB, free: 7.805 MB / 0.4983 GB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.14, allocations: 4.562 kB / 0.6547 GB, free: 7.801 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.14, allocations: 47.11 kB / 0.6547 GB, free: 7.746 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=60): time 1.803e-06/0.14, allocations: 0 / 0.6547 GB, free: 7.746 MB / 0.4983 GB Notification: Performance of matching and sorting (n=60): time 0.003682/0.1437, allocations: 1.252 MB / 0.656 GB, free: 6.469 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.1438, allocations: 55.97 kB / 0.656 GB, free: 6.398 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.437e-05/0.1439, allocations: 109.8 kB / 0.6561 GB, free: 6.281 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 4.224e-05/0.1439, allocations: 41.7 kB / 0.6562 GB, free: 6.234 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 5.366e-05/0.144, allocations: 97.42 kB / 0.6563 GB, free: 6.133 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001777/0.1441, allocations: 257.8 kB / 0.6565 GB, free: 5.879 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/0.1443, allocations: 150.7 kB / 0.6566 GB, free: 5.727 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1445, allocations: 346.8 kB / 0.657 GB, free: 5.379 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000377/0.1448, allocations: 261.7 kB / 0.6572 GB, free: 5.121 MB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004829/0.1453, allocations: 428.3 kB / 0.6576 GB, free: 4.641 MB / 0.4983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009296/0.1463, allocations: 0.7113 MB / 0.6583 GB, free: 3.863 MB / 0.4983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.1463, allocations: 4 kB / 0.6583 GB, free: 3.859 MB / 0.4983 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001881/0.1482, allocations: 1.015 MB / 0.6593 GB, free: 2.836 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.1482, allocations: 10.5 kB / 0.6593 GB, free: 2.828 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.1482, allocations: 4 kB / 0.6593 GB, free: 2.824 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/0.1494, allocations: 307.2 kB / 0.6596 GB, free: 2.523 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004993/0.1499, allocations: 163.8 kB / 0.6598 GB, free: 2.363 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004204/0.1541, allocations: 3.098 MB / 0.6628 GB, free: 15.13 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002808/0.1544, allocations: 67.44 kB / 0.6629 GB, free: 15.07 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.207e-05/0.1545, allocations: 35.94 kB / 0.6629 GB, free: 15.03 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.0001903/0.1547, allocations: 178.5 kB / 0.6631 GB, free: 14.85 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.969e-05/0.1548, allocations: 27.86 kB / 0.6631 GB, free: 14.82 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001785/0.1549, allocations: 58.06 kB / 0.6632 GB, free: 14.75 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.155, allocations: 8 kB / 0.6632 GB, free: 14.75 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/0.155, allocations: 11.98 kB / 0.6632 GB, free: 14.73 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.155, allocations: 3.984 kB / 0.6632 GB, free: 14.73 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000498/0.1555, allocations: 457.6 kB / 0.6636 GB, free: 14.23 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1555, allocations: 0 / 0.6636 GB, free: 14.23 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007116/0.1562, allocations: 135.9 kB / 0.6637 GB, free: 14.1 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.1574, allocations: 296.5 kB / 0.664 GB, free: 13.81 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-05/0.1574, allocations: 23.97 kB / 0.6641 GB, free: 13.79 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004075/0.1615, allocations: 3.102 MB / 0.6671 GB, free: 10.55 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1615, allocations: 0 / 0.6671 GB, free: 10.55 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.1635, allocations: 1.132 MB / 0.6682 GB, free: 9.402 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 5.207e-05/0.1636, allocations: 108.8 kB / 0.6683 GB, free: 9.277 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.117e-05/0.1636, allocations: 27.97 kB / 0.6683 GB, free: 9.25 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.1638, allocations: 12 kB / 0.6683 GB, free: 9.238 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.684e-05/0.1639, allocations: 52.44 kB / 0.6684 GB, free: 9.184 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.504e-05/0.164, allocations: 19.98 kB / 0.6684 GB, free: 9.164 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 4.187e-05/0.164, allocations: 75.28 kB / 0.6685 GB, free: 9.09 MB / 0.5139 GB Notification: Performance of sort global known variables: time 1.31e-07/0.164, allocations: 4 kB / 0.6685 GB, free: 9.086 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.0004576/0.1645, allocations: 140 kB / 0.6686 GB, free: 8.949 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.002293/0.1668, allocations: 1.703 MB / 0.6703 GB, free: 7.211 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.001743/0.1685, allocations: 0.8949 MB / 0.6711 GB, free: 6.305 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1686, allocations: 0 / 0.6711 GB, free: 6.305 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.1697, allocations: 0.5601 MB / 0.6717 GB, free: 5.734 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002313/0.1699, allocations: 20 kB / 0.6717 GB, free: 5.715 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008806/0.1787, allocations: 7.03 MB / 0.6786 GB, free: 14.47 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.1792, allocations: 0.8116 MB / 0.6794 GB, free: 13.64 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.0002787/0.1795, 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.0001248/0.1796, allocations: 87.41 kB / 0.6796 GB, free: 13.41 MB / 0.5295 GB Notification: Performance of SimCode: time 7.41e-07/0.1796, allocations: 3.938 kB / 0.6796 GB, free: 13.41 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03169/0.2113, allocations: 9.55 MB / 0.6889 GB, free: 4.09 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.899/10.11, allocations: 12.47 kB / 0.6889 GB, free: 4.074 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