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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001018, allocations: 98.56 kB / 17 MB, free: 6.418 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.001241/0.001241, allocations: 188.6 kB / 17.89 MB, free: 5.945 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.416/1.416, allocations: 223.3 MB / 241.9 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2031/0.2031, allocations: 44.25 MB / 337.3 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005145/0.0005149, allocations: 11.94 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1605, allocations: 61.92 MB / 471.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.02976/0.1903, allocations: 31.51 MB / 0.4913 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01551/0.2058, allocations: 7.463 MB / 0.4986 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005011/0.2109, allocations: 147.6 kB / 0.4987 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004552/0.2155, allocations: 1.586 MB / 0.5003 GB, free: 4.859 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2499/0.4654, allocations: 4.888 MB / 0.5051 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003165/0.4686, allocations: 0.5859 MB / 0.5056 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03916/0.5078, allocations: 32.03 MB / 0.5369 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003889/0.5117, allocations: 2.983 MB / 0.5398 GB, free: 3.918 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001938/0.5137, allocations: 1.125 MB / 0.5409 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002097/0.5158, allocations: 1.795 MB / 0.5427 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004425/0.5162, allocations: 124 kB / 0.5428 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001628/0.5179, allocations: 0.9607 MB / 0.5437 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001161/0.519, allocations: 1.499 MB / 0.5452 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007505/0.5198, allocations: 0.7207 MB / 0.5459 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004592/0.5244, allocations: 4.69 MB / 0.5505 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.5244, allocations: 0 / 0.5505 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5244, allocations: 0 / 0.5505 GB, free: 11.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001186/0.5246, allocations: 0 / 0.5505 GB, free: 11.57 MB / 398.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.006462/0.531, allocations: 3.529 MB / 0.5539 GB, free: 8.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.5311, allocations: 16.56 kB / 0.5539 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01368/0.5448, allocations: 2.487 MB / 0.5564 GB, free: 5.836 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005835/0.5507, allocations: 2.35 MB / 0.5587 GB, free: 4.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.5508, allocations: 197.5 kB / 0.5589 GB, free: 3.977 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006244/0.5515, allocations: 275 kB / 0.5591 GB, free: 3.801 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01382/0.5653, allocations: 8.582 MB / 0.5675 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001057/0.5654, allocations: 41.16 kB / 0.5675 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003518/0.5658, allocations: 129 kB / 0.5677 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00266/0.5685, allocations: 1.732 MB / 0.5694 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01378/0.5823, allocations: 7.271 MB / 0.5765 GB, free: 6.414 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0465/0.6288, allocations: 34.19 MB / 0.6098 GB, free: 3.809 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008648/0.6375, allocations: 3.524 MB / 0.6133 GB, free: 156 kB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002811/0.6404, allocations: 1.705 MB / 0.6149 GB, free: 14.44 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01268/0.6531, allocations: 7.417 MB / 0.6222 GB, free: 6.809 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.291e-05/0.6532, allocations: 47.56 kB / 0.6222 GB, free: 6.754 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 4.999e-06/0.6532, allocations: 4 kB / 0.6222 GB, free: 6.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.05963/0.7128, allocations: 19.95 MB / 0.6417 GB, free: 2.664 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.713, allocations: 197.2 kB / 0.6419 GB, free: 2.43 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005571/0.7186, allocations: 3.722 MB / 0.6455 GB, free: 14.72 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002939/0.7189, allocations: 57.36 kB / 0.6456 GB, free: 14.66 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001968/0.7209, allocations: 2.808 MB / 0.6483 GB, free: 11.87 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007373/0.7216, allocations: 0.7126 MB / 0.649 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00027/0.7219, allocations: 116 kB / 0.6491 GB, free: 11.05 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003438/0.7223, allocations: 0.562 MB / 0.6497 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003225/0.7255, allocations: 2.18 MB / 0.6518 GB, free: 8.297 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005636/0.7311, allocations: 5.747 MB / 0.6574 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005115/0.7363, allocations: 3.449 MB / 0.6608 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-05/0.7364, allocations: 36 kB / 0.6608 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.0203/0.7567, allocations: 9.164 MB / 0.6698 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.526e-05/0.7568, allocations: 63.98 kB / 0.6699 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001675/0.757, allocations: 124 kB / 0.67 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005692/0.7627, allocations: 1.7 MB / 0.6716 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004375/0.7671, allocations: 1.322 MB / 0.6729 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01504/0.7822, allocations: 9.312 MB / 0.682 GB, free: 7.465 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004366/0.7866, allocations: 311.6 kB / 0.6823 GB, free: 7.16 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009485/0.7875, allocations: 364 kB / 0.6827 GB, free: 6.805 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 (714): * Single equations (assignments): 710 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003766/0.7913, allocations: 1.903 MB / 0.6845 GB, free: 4.891 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000741/0.7921, allocations: 331.7 kB / 0.6848 GB, free: 4.562 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009325/0.8014, allocations: 4.157 MB / 0.6889 GB, free: 404 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.06e-05/0.8015, allocations: 23.52 kB / 0.6889 GB, free: 384 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.71e-05/0.8015, allocations: 8 kB / 0.6889 GB, free: 376 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.633e-05/0.8015, allocations: 7.969 kB / 0.6889 GB, free: 368 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01916/0.8207, allocations: 8.581 MB / 0.6973 GB, free: 7.758 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.382e-05/0.8208, allocations: 0 / 0.6973 GB, free: 7.758 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.8221, allocations: 247.6 kB / 0.6975 GB, free: 7.516 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0052/0.8273, allocations: 1.456 MB / 0.699 GB, free: 6.055 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003053/0.8276, allocations: 31.98 kB / 0.699 GB, free: 6.023 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2847/1.112, allocations: 8.596 MB / 0.7074 GB, free: 184.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.112, allocations: 1.062 kB / 0.7074 GB, free: 184.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01944/1.132, allocations: 6.738 MB / 0.714 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/1.133, allocations: 382.3 kB / 0.7143 GB, free: 183.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009623/1.134, allocations: 31.72 kB / 0.7144 GB, free: 183.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002458/1.137, allocations: 91.97 kB / 0.7145 GB, free: 183.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006094/1.137, allocations: 112.8 kB / 0.7146 GB, free: 183.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002489/1.138, allocations: 53.91 kB / 0.7146 GB, free: 183.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008191/1.146, allocations: 2.304 MB / 0.7169 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.21e-07/1.146, allocations: 3.188 kB / 0.7169 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008947/1.155, allocations: 0.9968 MB / 0.7178 GB, free: 182.6 MB / 0.5294 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007507/1.156, allocations: 172.8 kB / 0.718 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009505/1.165, allocations: 5.381 MB / 0.7233 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/1.165, allocations: 0 / 0.7233 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002653/1.168, allocations: 1.798 MB / 0.725 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003582/1.171, allocations: 381.8 kB / 0.7254 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01704/1.189, allocations: 10.01 MB / 0.7352 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004485/1.193, allocations: 2.959 MB / 0.7381 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004936/1.198, allocations: 1.819 MB / 0.7398 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008602/1.199, allocations: 226 kB / 0.74 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.392e-06/1.199, allocations: 0 / 0.74 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.06394/1.263, allocations: 36.43 MB / 0.7756 GB, free: 138.3 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches