Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_2.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.Strings.ScaledExperiments.StringModelica_N_2,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Mechanical_Strings_ScaledExperiments_StringModelica_N_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_2,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Mechanical_Strings_ScaledExperiments_StringModelica_N_2",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.001343/0.001343, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001369/0.00137, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.432/1.432, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo): time 1.177/1.177, allocations: 119.3 MB / 411 MB, free: 9.523 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001711/0.001711, allocations: 67.91 kB / 0.4911 GB, free: 13.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7342/0.736, allocations: 80.68 MB / 0.5699 GB, free: 43.41 MB / 462.3 MB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_2): time 0.01076/0.7468, allocations: 9.21 MB / 0.5788 GB, free: 36.18 MB / 462.3 MB Notification: Performance of NFInst.instExpressions: time 0.008952/0.7558, allocations: 3.634 MB / 0.5824 GB, free: 33.36 MB / 462.3 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002534/0.7584, allocations: 52.38 kB / 0.5824 GB, free: 33.34 MB / 462.3 MB Notification: Performance of NFTyping.typeComponents: time 0.003395/0.7619, allocations: 1.559 MB / 0.584 GB, free: 32.28 MB / 462.3 MB Notification: Performance of NFTyping.typeBindings: time 0.004977/0.7669, allocations: 1.568 MB / 0.5855 GB, free: 31.19 MB / 462.3 MB Notification: Performance of NFTyping.typeClassSections: time 0.001754/0.7686, allocations: 0.6102 MB / 0.5861 GB, free: 30.79 MB / 462.3 MB Notification: Performance of NFFlatten.flatten: time 0.0102/0.7789, allocations: 7.28 MB / 0.5932 GB, free: 25.64 MB / 462.3 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005508/0.7844, allocations: 5.256 MB / 0.5983 GB, free: 20.32 MB / 462.3 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003854/0.7883, allocations: 2.146 MB / 0.6004 GB, free: 18.17 MB / 462.3 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004328/0.7927, allocations: 2.89 MB / 0.6033 GB, free: 15.27 MB / 462.3 MB Notification: Performance of NFPackage.collectConstants: time 0.001436/0.7942, allocations: 416 kB / 0.6037 GB, free: 14.86 MB / 462.3 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003074/0.7973, allocations: 1.303 MB / 0.6049 GB, free: 13.56 MB / 462.3 MB Notification: Performance of NFScalarize.scalarize: time 0.002212/0.7995, allocations: 2.494 MB / 0.6074 GB, free: 11.06 MB / 462.3 MB Notification: Performance of NFVerifyModel.verify: time 0.00437/0.8039, allocations: 2.976 MB / 0.6103 GB, free: 8.066 MB / 462.3 MB Notification: Performance of NFConvertDAE.convert: time 0.0112/0.8151, allocations: 9.465 MB / 0.6195 GB, free: 14.57 MB / 478.3 MB Notification: Performance of FrontEnd - DAE generated: time 1.229e-05/0.8152, allocations: 0 / 0.6195 GB, free: 14.57 MB / 478.3 MB Notification: Performance of FrontEnd: time 1.873e-06/0.8152, allocations: 0 / 0.6195 GB, free: 14.57 MB / 478.3 MB Notification: Performance of Transformations before backend: time 0.0004635/0.8157, allocations: 4 kB / 0.6195 GB, free: 14.57 MB / 478.3 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1606 * Number of variables: 1606 Notification: Performance of Generate backend data structure: time 0.0281/0.8438, allocations: 8.035 MB / 0.6274 GB, free: 6.445 MB / 478.3 MB Notification: Performance of prepare preOptimizeDAE: time 6.337e-05/0.8438, allocations: 8.031 kB / 0.6274 GB, free: 6.438 MB / 478.3 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003037/0.8469, allocations: 0.7884 MB / 0.6281 GB, free: 5.637 MB / 478.3 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2912/1.138, allocations: 51.33 MB / 0.6783 GB, free: 2.203 MB / 0.5139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01763/1.156, allocations: 6.532 MB / 0.6846 GB, free: 11.59 MB / 0.5295 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004164/1.156, allocations: 266.9 kB / 0.6849 GB, free: 11.33 MB / 0.5295 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002302/1.159, allocations: 367.7 kB / 0.6853 GB, free: 10.97 MB / 0.5295 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02917/1.188, allocations: 12.01 MB / 0.697 GB, free: 14.2 MB / 0.5452 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004593/1.188, allocations: 67.48 kB / 0.697 GB, free: 14.13 MB / 0.5452 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001687/1.19, allocations: 171.8 kB / 0.6972 GB, free: 13.96 MB / 0.5452 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003924/1.194, allocations: 2.131 MB / 0.6993 GB, free: 11.82 MB / 0.5452 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02286/1.217, allocations: 10.44 MB / 0.7095 GB, free: 1.363 MB / 0.5452 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06697/1.284, allocations: 45.39 MB / 0.7538 GB, free: 2.531 MB / 0.592 GB Notification: Performance of preOpt comSubExp (simulation): time 0.6363/1.92, allocations: 4.74 MB / 0.7584 GB, free: 164.9 MB / 0.5923 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005184/1.925, allocations: 2.75 MB / 0.7611 GB, free: 164 MB / 0.5923 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00049/1.926, allocations: 361.9 kB / 0.7615 GB, free: 163.7 MB / 0.5923 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008495/1.934, allocations: 3.168 MB / 0.7646 GB, free: 163.1 MB / 0.5923 GB Notification: Performance of pre-optimization done (n=209): time 6.151e-06/1.935, allocations: 0 / 0.7646 GB, free: 163.1 MB / 0.5923 GB Notification: Performance of matching and sorting (n=254): time 0.06744/2.002, allocations: 28.78 MB / 0.7927 GB, free: 147.2 MB / 0.5923 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001336/2.002, allocations: 312.7 kB / 0.793 GB, free: 146.9 MB / 0.5923 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007219/2.009, allocations: 5.312 MB / 0.7982 GB, free: 141.6 MB / 0.5923 GB Notification: Performance of collectPreVariables (initialization): time 0.0007884/2.01, allocations: 69.69 kB / 0.7982 GB, free: 141.5 MB / 0.5923 GB Notification: Performance of collectInitialEqns (initialization): time 0.002616/2.013, allocations: 3.517 MB / 0.8017 GB, free: 138 MB / 0.5923 GB Notification: Performance of collectInitialBindings (initialization): time 0.001128/2.014, allocations: 0.9587 MB / 0.8026 GB, free: 137 MB / 0.5923 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001572/2.016, allocations: 1.297 MB / 0.8039 GB, free: 135.7 MB / 0.5923 GB Notification: Performance of setup shared object (initialization): time 6.016e-05/2.016, allocations: 309.1 kB / 0.8042 GB, free: 135.4 MB / 0.5923 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003303/2.019, allocations: 2.998 MB / 0.8071 GB, free: 132.4 MB / 0.5923 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005097/2.024, allocations: 6.558 MB / 0.8135 GB, free: 124.2 MB / 0.5923 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01073/2.035, allocations: 10.31 MB / 0.8236 GB, free: 112.1 MB / 0.5923 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-05/2.035, allocations: 36 kB / 0.8236 GB, free: 112.1 MB / 0.5923 GB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01825/2.053, allocations: 11.29 MB / 0.8346 GB, free: 100.8 MB / 0.5923 GB Notification: Performance of prepare postOptimizeDAE: time 9.844e-05/2.053, allocations: 81.7 kB / 0.8347 GB, free: 100.7 MB / 0.5923 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/2.053, allocations: 124 kB / 0.8348 GB, free: 100.6 MB / 0.5923 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004236/2.058, allocations: 2.085 MB / 0.8369 GB, free: 98.5 MB / 0.5923 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004949/2.063, allocations: 1.575 MB / 0.8384 GB, free: 96.92 MB / 0.5923 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01323/2.076, allocations: 13.09 MB / 0.8512 GB, free: 83.68 MB / 0.5923 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005828/2.082, allocations: 495.1 kB / 0.8517 GB, free: 83.2 MB / 0.5923 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00109/2.083, allocations: 371.2 kB / 0.852 GB, free: 82.84 MB / 0.5923 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 44 (pulse1.count,$PRE.pulse1.count,pulse1.T_start,$PRE.pulse1.T_start,$whenCondition1,bodybox[3].color[3],bodybox[3].color[2],bodybox[3].color[1],bodybox[3].body.sphereColor[3],bodybox[3].body.sphereColor[2],bodybox[3].body.sphereColor[1],bodybox[2].color[3],bodybox[2].color[2],bodybox[2].color[1],bodybox[2].body.sphereColor[3],bodybox[2].body.sphereColor[2],bodybox[2].body.sphereColor[1],bodybox[1].color[3],bodybox[1].color[2],bodybox[1].color[1],bodybox[1].body.sphereColor[3],bodybox[1].body.sphereColor[2],bodybox[1].body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute[2].cylinderColor[3],revolute[2].cylinderColor[2],revolute[2].cylinderColor[1],revolute[1].cylinderColor[3],revolute[1].cylinderColor[2],revolute[1].cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 755 * Array equations: 3 * Algorithm blocks: 1 * 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 {(2,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004834/2.088, allocations: 2.92 MB / 0.8549 GB, free: 79.91 MB / 0.5923 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001127/2.089, allocations: 438.4 kB / 0.8553 GB, free: 79.47 MB / 0.5923 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009437/2.098, allocations: 6.377 MB / 0.8615 GB, free: 73.07 MB / 0.5923 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.312e-05/2.098, allocations: 30.16 kB / 0.8615 GB, free: 73.04 MB / 0.5923 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/2.098, allocations: 12 kB / 0.8615 GB, free: 73.03 MB / 0.5923 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.488e-05/2.098, allocations: 11.95 kB / 0.8616 GB, free: 73.02 MB / 0.5923 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02216/2.121, allocations: 14.78 MB / 0.876 GB, free: 58.05 MB / 0.5923 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.626e-05/2.121, allocations: 20 kB / 0.876 GB, free: 58.03 MB / 0.5923 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001808/2.123, allocations: 0.4922 MB / 0.8765 GB, free: 57.54 MB / 0.5923 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003867/2.126, allocations: 1.881 MB / 0.8783 GB, free: 55.65 MB / 0.5923 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002831/2.127, allocations: 59.98 kB / 0.8784 GB, free: 55.59 MB / 0.5923 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/2.138, allocations: 11.77 MB / 0.8899 GB, free: 43.68 MB / 0.5923 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/2.138, allocations: 19.88 kB / 0.8899 GB, free: 43.66 MB / 0.5923 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0136/2.152, allocations: 10.01 MB / 0.8997 GB, free: 33.47 MB / 0.5923 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00271/2.155, allocations: 0.9561 MB / 0.9006 GB, free: 32.49 MB / 0.5923 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008226/2.155, allocations: 67.91 kB / 0.9007 GB, free: 32.42 MB / 0.5923 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002049/2.158, allocations: 275.6 kB / 0.9009 GB, free: 32.15 MB / 0.5923 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005108/2.158, allocations: 188.7 kB / 0.9011 GB, free: 31.97 MB / 0.5923 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001684/2.158, allocations: 79.34 kB / 0.9012 GB, free: 31.89 MB / 0.5923 GB Notification: Performance of sorting global known variables: time 0.004894/2.163, allocations: 3.468 MB / 0.9046 GB, free: 28.43 MB / 0.5923 GB Notification: Performance of sort global known variables: time 1.2e-07/2.163, allocations: 0 / 0.9046 GB, free: 28.43 MB / 0.5923 GB Notification: Performance of remove unused functions: time 0.006782/2.17, allocations: 1.298 MB / 0.9058 GB, free: 27.14 MB / 0.5923 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 6 (revolute[1].phi,revolute[1].w,revolute[2].phi,revolute[2].w,prismatic1.s,prismatic1.v) * Number of discrete variables: 3 ($whenCondition1,pulse1.T_start,pulse1.count) * Number of discrete states: 1 (pulse1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 194 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(2,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0129/2.183, allocations: 10.69 MB / 0.9163 GB, free: 16.25 MB / 0.5923 GB Notification: Performance of simCode: created initialization part: time 0.014/2.197, allocations: 9.766 MB / 0.9258 GB, free: 6.504 MB / 0.5923 GB Notification: Performance of simCode: created event and clocks part: time 2.05e-05/2.197, allocations: 4 kB / 0.9258 GB, free: 6.5 MB / 0.5923 GB Notification: Performance of simCode: created simulation system equations: time 0.003779/2.201, allocations: 2.805 MB / 0.9286 GB, free: 3.684 MB / 0.5923 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004981/2.206, allocations: 0.7434 MB / 0.9293 GB, free: 2.953 MB / 0.5923 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1369/2.343, allocations: 71.95 MB / 0.9996 GB, free: 2.613 MB / 0.6704 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3643/2.707, allocations: 4.135 MB / 1.004 GB, free: 230.9 MB / 0.6704 GB Notification: Performance of simCode: alias equations: time 0.008068/2.715, allocations: 2.762 MB / 1.006 GB, free: 230.8 MB / 0.6704 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00444/2.72, allocations: 2.309 MB / 1.009 GB, free: 230.8 MB / 0.6704 GB Notification: Performance of SimCode: time 1.623e-06/2.72, allocations: 0.7812 kB / 1.009 GB, free: 230.8 MB / 0.6704 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1706/2.89, allocations: 109.7 MB / 1.116 GB, free: 139.5 MB / 0.6704 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.19/18.08, allocations: 448 / 1.116 GB, free: 139.5 MB / 0.6704 GB (rm -f ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_2.pipe ; mkfifo ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_2.pipe ; head -c 1048576 < ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_2.pipe >> ../files/ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_2.sim & python3 -m fmpy simulate --output-file ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_2_res.csv --start-time 0 --stop-time 2 --timeout 300 --relative-tolerance 3e-08 --interface-type ModelExchange --solver CVode --output-interval 0.001 ScalableTestSuite_ScalableTestSuite_Mechanical_Strings_ScaledExperiments_StringModelica_N_2.fmu > ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_2.pipe 2>&1) diffSimulationResults("ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ScalableTestSuite/ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches