Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002082/0.002082, allocations: 206.9 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.393/1.393, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.213/0.213, allocations: 46.95 MB / 360.9 MB, free: 4.039 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 67.89 kB / 0.4961 GB, free: 7.711 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3231, allocations: 66.04 MB / 0.5606 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01136/0.3344, allocations: 9.11 MB / 0.5695 GB, free: 10.97 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006728/0.3412, allocations: 3.695 MB / 0.5731 GB, free: 7.262 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00068/0.3419, allocations: 67.69 kB / 0.5732 GB, free: 7.195 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003632/0.3455, allocations: 2.036 MB / 0.5752 GB, free: 5.152 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003191/0.3487, allocations: 1.72 MB / 0.5768 GB, free: 3.426 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.35, allocations: 0.694 MB / 0.5775 GB, free: 2.73 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005143/0.3551, allocations: 4.005 MB / 0.5814 GB, free: 14.72 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002742/0.3578, allocations: 2.163 MB / 0.5835 GB, free: 12.5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001919/0.3598, allocations: 1.324 MB / 0.5848 GB, free: 11.17 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002751/0.3625, allocations: 2.009 MB / 0.5868 GB, free: 9.156 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004763/0.363, allocations: 264 kB / 0.587 GB, free: 8.898 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001863/0.3649, allocations: 1.096 MB / 0.5881 GB, free: 7.801 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001647/0.3665, allocations: 1.706 MB / 0.5898 GB, free: 6.09 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001697/0.3682, allocations: 1.452 MB / 0.5912 GB, free: 4.629 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006763/0.375, allocations: 6.366 MB / 0.5974 GB, free: 14.24 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.375, allocations: 4 kB / 0.5974 GB, free: 14.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.375, allocations: 0 / 0.5974 GB, free: 14.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001079/0.3751, allocations: 4 kB / 0.5974 GB, free: 14.23 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.008987/0.3841, allocations: 4.37 MB / 0.6017 GB, free: 9.805 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.3841, allocations: 12.03 kB / 0.6017 GB, free: 9.793 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007969/0.3849, allocations: 0.621 MB / 0.6023 GB, free: 9.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08029/0.4652, allocations: 7.052 MB / 0.6092 GB, free: 2.098 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006707/0.4719, allocations: 2.584 MB / 0.6117 GB, free: 15.45 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001639/0.4721, allocations: 193.3 kB / 0.6119 GB, free: 15.26 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006627/0.4727, allocations: 275.7 kB / 0.6122 GB, free: 14.99 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01446/0.4872, allocations: 8.596 MB / 0.6206 GB, free: 5.742 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/0.4873, allocations: 47.64 kB / 0.6206 GB, free: 5.695 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003473/0.4876, allocations: 119.9 kB / 0.6207 GB, free: 5.578 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002872/0.4905, allocations: 1.735 MB / 0.6224 GB, free: 3.844 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01375/0.5043, allocations: 7.159 MB / 0.6294 GB, free: 12.68 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04201/0.5463, allocations: 32.12 MB / 0.6608 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008278/0.5546, allocations: 2.824 MB / 0.6635 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002078/0.5566, allocations: 1.518 MB / 0.665 GB, free: 7.188 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01155/0.5682, allocations: 5.938 MB / 0.6708 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.391e-05/0.5682, allocations: 59.48 kB / 0.6709 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 4.599e-06/0.5682, allocations: 0 / 0.6709 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06479/0.633, allocations: 18.97 MB / 0.6894 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/0.6332, allocations: 197.2 kB / 0.6896 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005937/0.6391, allocations: 3.965 MB / 0.6935 GB, free: 9.914 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003903/0.6395, allocations: 49.7 kB / 0.6935 GB, free: 9.859 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00246/0.642, allocations: 2.937 MB / 0.6964 GB, free: 6.895 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001085/0.643, allocations: 0.7442 MB / 0.6971 GB, free: 6.145 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001831/0.6449, allocations: 1.183 MB / 0.6983 GB, free: 4.949 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.645, allocations: 301.1 kB / 0.6985 GB, free: 4.652 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003423/0.6484, allocations: 2.096 MB / 0.7006 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00765/0.6561, allocations: 5.71 MB / 0.7062 GB, free: 11.05 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01606/0.6722, allocations: 8.418 MB / 0.7144 GB, free: 0.8789 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001793/0.6723, allocations: 36 kB / 0.7144 GB, free: 0.8438 MB / 0.545 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02631/0.6986, allocations: 8.687 MB / 0.7229 GB, free: 8.141 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001184/0.6988, allocations: 64.12 kB / 0.723 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001655/0.6989, allocations: 124 kB / 0.7231 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00655/0.7055, allocations: 1.391 MB / 0.7244 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006151/0.7116, allocations: 1.298 MB / 0.7257 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2702/0.9818, allocations: 8.994 MB / 0.7345 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003862/0.9857, allocations: 300.9 kB / 0.7348 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004902/0.9861, allocations: 358.1 kB / 0.7351 GB, free: 149.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (695): * Single equations (assignments): 691 * Array equations: 3 * 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,44,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002167/0.9883, allocations: 1.897 MB / 0.737 GB, free: 148.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004361/0.9888, allocations: 348.3 kB / 0.7373 GB, free: 148.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007111/0.9959, allocations: 3.75 MB / 0.741 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.211e-05/0.9959, allocations: 22.34 kB / 0.741 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.9959, allocations: 12.56 kB / 0.741 GB, free: 147.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/0.9959, allocations: 11 kB / 0.741 GB, free: 147.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/1.009, allocations: 7.783 MB / 0.7486 GB, free: 144.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/1.009, allocations: 5.828 kB / 0.7486 GB, free: 144.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/1.01, allocations: 251.1 kB / 0.7489 GB, free: 144.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004161/1.014, allocations: 1.176 MB / 0.75 GB, free: 144.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/1.014, allocations: 35.34 kB / 0.75 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009179/1.024, allocations: 8.278 MB / 0.7581 GB, free: 137.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/1.024, allocations: 0 / 0.7581 GB, free: 137.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008887/1.033, allocations: 6.293 MB / 0.7643 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007593/1.033, allocations: 311.8 kB / 0.7646 GB, free: 131 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003647/1.034, allocations: 32 kB / 0.7646 GB, free: 130.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/1.035, allocations: 87.48 kB / 0.7647 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002662/1.035, allocations: 120.1 kB / 0.7648 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/1.035, allocations: 51.98 kB / 0.7648 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002472/1.038, allocations: 2.324 MB / 0.7671 GB, free: 128.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/1.038, allocations: 1.75 kB / 0.7671 GB, free: 128.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00388/1.042, allocations: 0.9498 MB / 0.768 GB, free: 127.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * 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 (130): * Single equations (assignments): 126 * Array equations: 3 * 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,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00937/1.051, allocations: 6.985 MB / 0.7749 GB, free: 120.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006496/1.057, allocations: 5.021 MB / 0.7798 GB, free: 115.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/1.058, allocations: 0 / 0.7798 GB, free: 115.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00186/1.059, allocations: 1.628 MB / 0.7814 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002317/1.062, allocations: 405.9 kB / 0.7817 GB, free: 113.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05239/1.114, allocations: 44.32 MB / 0.825 GB, free: 63.64 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002149/1.116, allocations: 2.417 MB / 0.8274 GB, free: 61.19 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003129/1.119, allocations: 1.811 MB / 0.8292 GB, free: 59.37 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001532/1.121, allocations: 1.647 MB / 0.8308 GB, free: 57.72 MB / 0.5606 GB Notification: Performance of SimCode: time 1.523e-06/1.121, allocations: 0 / 0.8308 GB, free: 57.72 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.115/1.236, allocations: 70.24 MB / 0.8994 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.71/16.95, allocations: 16.06 kB / 0.8994 GB, free: 4.262 MB / 0.5762 GB " [Timeout remaining time 643] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.203516860026866]