Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 119 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001919/0.001919, allocations: 190.9 kB / 21.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2423/0.2423, allocations: 44.93 MB / 349.6 MB, free: 1.719 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 67.89 kB / 491.8 MB, free: 30.16 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.117, allocations: 64.25 MB / 0.543 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01295/0.13, allocations: 10.42 MB / 0.5532 GB, free: 9.645 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008527/0.1385, allocations: 3.892 MB / 0.557 GB, free: 5.742 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001783/0.1403, allocations: 59.81 kB / 0.557 GB, free: 5.684 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004734/0.145, allocations: 2.095 MB / 0.5591 GB, free: 3.582 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00491/0.1499, allocations: 1.743 MB / 0.5608 GB, free: 1.832 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001821/0.1518, allocations: 0.7017 MB / 0.5615 GB, free: 1.129 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006269/0.158, allocations: 3.989 MB / 0.5654 GB, free: 13.13 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00341/0.1615, allocations: 2.211 MB / 0.5675 GB, free: 10.87 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002894/0.1643, allocations: 1.316 MB / 0.5688 GB, free: 9.547 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003675/0.168, allocations: 2.005 MB / 0.5708 GB, free: 7.535 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009556/0.169, allocations: 272 kB / 0.571 GB, free: 7.27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002917/0.1719, allocations: 1.233 MB / 0.5722 GB, free: 6.035 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002594/0.1745, allocations: 1.722 MB / 0.5739 GB, free: 4.309 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003567/0.1781, allocations: 1.969 MB / 0.5758 GB, free: 2.328 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009471/0.1875, allocations: 6.396 MB / 0.5821 GB, free: 11.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.648e-06/0.1875, allocations: 4 kB / 0.5821 GB, free: 11.9 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1875, allocations: 0 / 0.5821 GB, free: 11.9 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001938/0.1877, allocations: 0 / 0.5821 GB, free: 11.9 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.01154/0.1993, allocations: 4.468 MB / 0.5865 GB, free: 7.359 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.1993, allocations: 8.031 kB / 0.5865 GB, free: 7.352 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001321/0.2006, allocations: 0.6249 MB / 0.5871 GB, free: 6.715 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08278/0.2834, allocations: 7.059 MB / 0.594 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007028/0.2904, allocations: 2.739 MB / 0.5966 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001792/0.2906, allocations: 193.3 kB / 0.5968 GB, free: 12.65 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008405/0.2915, allocations: 279.7 kB / 0.5971 GB, free: 12.38 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01496/0.3064, allocations: 8.509 MB / 0.6054 GB, free: 3.242 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001235/0.3065, allocations: 47.66 kB / 0.6054 GB, free: 3.195 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004078/0.307, allocations: 123.9 kB / 0.6056 GB, free: 3.074 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002923/0.3099, allocations: 1.743 MB / 0.6073 GB, free: 1.332 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2693/0.5792, allocations: 7.148 MB / 0.6142 GB, free: 53.6 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0373/0.6165, allocations: 33.86 MB / 0.6473 GB, free: 28.95 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00761/0.6241, allocations: 3.28 MB / 0.6505 GB, free: 27.05 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001826/0.6259, allocations: 1.524 MB / 0.652 GB, free: 26.24 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.011/0.6369, allocations: 7.235 MB / 0.6591 GB, free: 20.78 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.637, allocations: 55.44 kB / 0.6591 GB, free: 20.72 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 4.127e-06/0.637, allocations: 0 / 0.6591 GB, free: 20.72 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.05521/0.6922, allocations: 19.19 MB / 0.6779 GB, free: 1.605 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.656e-05/0.6922, allocations: 199.7 kB / 0.6781 GB, free: 1.371 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005325/0.6976, allocations: 3.754 MB / 0.6817 GB, free: 13.66 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004009/0.698, allocations: 53.7 kB / 0.6818 GB, free: 13.61 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002418/0.7004, allocations: 2.945 MB / 0.6846 GB, free: 10.68 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001024/0.7014, allocations: 0.7444 MB / 0.6854 GB, free: 9.941 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001786/0.7032, allocations: 1.175 MB / 0.6865 GB, free: 8.754 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.7033, allocations: 305.1 kB / 0.6868 GB, free: 8.453 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00334/0.7067, allocations: 2.088 MB / 0.6889 GB, free: 6.359 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006917/0.7136, allocations: 5.652 MB / 0.6944 GB, free: 14.93 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/0.7246, allocations: 8.408 MB / 0.7026 GB, free: 4.773 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-05/0.7247, allocations: 36 kB / 0.7026 GB, free: 4.738 MB / 494.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01826/0.743, allocations: 8.68 MB / 0.7111 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001508/0.7431, allocations: 62.03 kB / 0.7112 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002/0.7433, allocations: 128.2 kB / 0.7113 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005412/0.7488, allocations: 1.386 MB / 0.7126 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004347/0.7531, allocations: 1.294 MB / 0.7139 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0151/0.7682, allocations: 9.204 MB / 0.7229 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004304/0.7725, allocations: 295.6 kB / 0.7232 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001012/0.7735, allocations: 355.9 kB / 0.7235 GB, free: 15.21 MB / 0.5137 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.00385/0.7774, allocations: 1.904 MB / 0.7254 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000861/0.7782, allocations: 349.7 kB / 0.7257 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009421/0.7877, allocations: 3.739 MB / 0.7293 GB, free: 9.191 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.345e-05/0.7877, allocations: 23.94 kB / 0.7294 GB, free: 9.168 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.52e-05/0.7877, allocations: 8 kB / 0.7294 GB, free: 9.16 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.969e-05/0.7878, allocations: 12.44 kB / 0.7294 GB, free: 9.148 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02007/0.8078, allocations: 8.122 MB / 0.7373 GB, free: 1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.83e-05/0.8078, allocations: 0 / 0.7373 GB, free: 1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001361/0.8092, allocations: 247.6 kB / 0.7376 GB, free: 0.7578 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004843/0.814, allocations: 1.187 MB / 0.7387 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002458/0.8143, allocations: 39.75 kB / 0.7388 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01416/0.8285, allocations: 8.484 MB / 0.747 GB, free: 6.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.8285, allocations: 0 / 0.747 GB, free: 6.91 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01279/0.8413, allocations: 6.253 MB / 0.7531 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/0.8424, allocations: 394.6 kB / 0.7535 GB, free: 232 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007703/0.8432, allocations: 31.98 kB / 0.7536 GB, free: 200 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001767/0.8449, allocations: 75.91 kB / 0.7536 GB, free: 124 kB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004337/0.8454, allocations: 117.1 kB / 0.7537 GB, free: 8 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002176/0.8456, allocations: 51.5 kB / 0.7538 GB, free: 15.96 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00468/0.8503, allocations: 2.336 MB / 0.7561 GB, free: 13.64 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.1e-08/0.8503, allocations: 0 / 0.7561 GB, free: 13.64 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005481/0.8557, allocations: 0.9686 MB / 0.757 GB, free: 12.67 MB / 0.545 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.01374/0.8695, allocations: 6.972 MB / 0.7638 GB, free: 5.664 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009285/0.8788, allocations: 5 MB / 0.7687 GB, free: 0.6758 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/0.8788, allocations: 0 / 0.7687 GB, free: 0.6758 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00313/0.8819, allocations: 1.62 MB / 0.7703 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003802/0.8857, allocations: 403.1 kB / 0.7707 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08191/0.9676, allocations: 44.25 MB / 0.8139 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004663/0.9723, allocations: 2.957 MB / 0.8168 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.004749/0.977, allocations: 1.819 MB / 0.8185 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002829/0.9799, allocations: 1.655 MB / 0.8202 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of SimCode: time 2.926e-06/0.9799, allocations: 0 / 0.8202 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3699/1.35, allocations: 67.51 MB / 0.8861 GB, free: 194.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.68/28.02, allocations: 6.453 kB / 0.8861 GB, free: 194.9 MB / 0.6231 GB " [Timeout remaining time 632] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 31.541531983297318]