Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001409/0.001408, allocations: 108.4 kB / 17.98 MB, free: 5.355 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.001574/0.001575, allocations: 193.3 kB / 18.9 MB, free: 4.438 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.34/1.34, allocations: 222.9 MB / 242.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2134/0.2134, allocations: 44.17 MB / 336.9 MB, free: 2.914 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 60.59 kB / 408.5 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.111, allocations: 60.83 MB / 469.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.2878/0.3989, allocations: 63.05 MB / 0.5199 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03402/0.433, allocations: 13.15 MB / 0.5328 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01591/0.4489, allocations: 274 kB / 0.533 GB, free: 6.055 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009712/0.4587, allocations: 4.407 MB / 0.5373 GB, free: 4.781 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008758/0.4675, allocations: 2.819 MB / 0.5401 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003537/0.4711, allocations: 1.412 MB / 0.5415 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01147/0.4826, allocations: 8.946 MB / 0.5502 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009666/0.4923, allocations: 6.774 MB / 0.5568 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00575/0.498, allocations: 3.07 MB / 0.5598 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006562/0.5046, allocations: 4.684 MB / 0.5644 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002214/0.5069, allocations: 0.6641 MB / 0.565 GB, free: 40 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004962/0.5119, allocations: 1.863 MB / 0.5669 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005407/0.5173, allocations: 3.777 MB / 0.5706 GB, free: 10.46 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007614/0.5249, allocations: 4.24 MB / 0.5747 GB, free: 6.219 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01255/0.5375, allocations: 10.83 MB / 0.5853 GB, free: 11.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.5375, allocations: 0 / 0.5853 GB, free: 11.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5375, allocations: 0 / 0.5853 GB, free: 11.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000445/0.538, allocations: 0 / 0.5853 GB, free: 11.68 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02229/0.5603, allocations: 9.024 MB / 0.5941 GB, free: 2.754 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.5604, allocations: 8.031 kB / 0.5941 GB, free: 2.746 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01672/0.5771, allocations: 4.095 MB / 0.5981 GB, free: 14.64 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01235/0.5895, allocations: 5.1 MB / 0.6031 GB, free: 9.512 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004759/0.59, allocations: 430.8 kB / 0.6035 GB, free: 9.156 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00282/0.5928, allocations: 0.6007 MB / 0.6041 GB, free: 8.625 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0432/0.6361, allocations: 20.63 MB / 0.6242 GB, free: 3.059 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003658/0.6365, allocations: 75.31 kB / 0.6243 GB, free: 2.984 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002445/0.6389, allocations: 273.1 kB / 0.6245 GB, free: 2.785 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00585/0.6448, allocations: 3.712 MB / 0.6282 GB, free: 15.09 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03911/0.6839, allocations: 18.2 MB / 0.6459 GB, free: 12.88 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.539/1.223, allocations: 74.61 MB / 0.7188 GB, free: 139.4 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01754/1.241, allocations: 7.45 MB / 0.7261 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005372/1.246, allocations: 4.112 MB / 0.7301 GB, free: 137.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02501/1.271, allocations: 18.22 MB / 0.7479 GB, free: 128.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.476e-05/1.271, allocations: 77.86 kB / 0.748 GB, free: 128.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=335): time 5.581e-06/1.271, allocations: 0 / 0.748 GB, free: 128.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.1062/1.377, allocations: 35.01 MB / 0.7821 GB, free: 103.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.177e-05/1.377, allocations: 196.9 kB / 0.7823 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007589/1.385, allocations: 6.47 MB / 0.7886 GB, free: 97.02 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008439/1.386, allocations: 85.7 kB / 0.7887 GB, free: 96.93 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002543/1.388, allocations: 5.365 MB / 0.794 GB, free: 91.56 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001454/1.39, allocations: 1.542 MB / 0.7955 GB, free: 90.04 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00253/1.392, allocations: 2.142 MB / 0.7976 GB, free: 87.89 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.258e-05/1.393, allocations: 305.1 kB / 0.7979 GB, free: 87.59 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005229/1.398, allocations: 4.336 MB / 0.8021 GB, free: 83.25 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007461/1.405, allocations: 10.28 MB / 0.8121 GB, free: 70.16 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0146/1.42, allocations: 15.67 MB / 0.8274 GB, free: 51.78 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001541/1.42, allocations: 60 kB / 0.8275 GB, free: 51.72 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1417) (initialization): time 0.02939/1.449, allocations: 16.35 MB / 0.8435 GB, free: 35.34 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/1.45, allocations: 96 kB / 0.8435 GB, free: 35.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002078/1.45, allocations: 204.9 kB / 0.8437 GB, free: 35.04 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007372/1.457, allocations: 2.378 MB / 0.8461 GB, free: 32.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007909/1.465, allocations: 2.464 MB / 0.8485 GB, free: 30.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01702/1.482, allocations: 12.76 MB / 0.8609 GB, free: 17.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008489/1.491, allocations: 0.5935 MB / 0.8615 GB, free: 16.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001728/1.493, allocations: 0.6015 MB / 0.8621 GB, free: 16.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 943 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1316): * Single equations (assignments): 1309 * Array equations: 6 * 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 {(2,52,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0062/1.499, allocations: 3.769 MB / 0.8658 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/1.5, allocations: 0.59 MB / 0.8664 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0153/1.515, allocations: 8.337 MB / 0.8745 GB, free: 3.34 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.808e-05/1.515, allocations: 56 kB / 0.8745 GB, free: 3.285 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.907e-05/1.515, allocations: 15.22 kB / 0.8746 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.267e-05/1.515, allocations: 23.92 kB / 0.8746 GB, free: 3.25 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03777/1.553, allocations: 18.94 MB / 0.8931 GB, free: 15.93 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.552e-05/1.553, allocations: 15.98 kB / 0.8931 GB, free: 15.92 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003082/1.556, allocations: 0.6249 MB / 0.8937 GB, free: 15.29 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006762/1.563, allocations: 1.814 MB / 0.8955 GB, free: 13.47 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007061/1.564, allocations: 87.92 kB / 0.8956 GB, free: 13.39 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01706/1.581, allocations: 10.82 MB / 0.9061 GB, free: 2.434 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.294e-05/1.581, allocations: 19.94 kB / 0.9062 GB, free: 2.414 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02192/1.603, allocations: 12.47 MB / 0.9183 GB, free: 5.664 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001847/1.605, allocations: 0.6261 MB / 0.9189 GB, free: 5.012 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001324/1.606, allocations: 83.92 kB / 0.919 GB, free: 4.93 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002981/1.609, allocations: 203.7 kB / 0.9192 GB, free: 4.73 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007233/1.61, allocations: 265.5 kB / 0.9195 GB, free: 4.473 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002826/1.61, allocations: 116 kB / 0.9196 GB, free: 4.359 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006697/1.617, allocations: 4.02 MB / 0.9235 GB, free: 356 kB / 0.5763 GB Notification: Performance of sort global known variables: time 4.61e-07/1.617, allocations: 0 / 0.9235 GB, free: 356 kB / 0.5763 GB Notification: Performance of remove unused functions: time 0.2618/1.879, allocations: 1.945 MB / 0.9254 GB, free: 210.7 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 55 * Number of states: 2 (j2.s,j2.v) * 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 (331): * Single equations (assignments): 324 * Array equations: 6 * 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 {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001329/1.88, allocations: 289.3 kB / 0.9257 GB, free: 210.6 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.02849/1.909, allocations: 15.9 MB / 0.9412 GB, free: 208.8 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 2.078e-05/1.909, allocations: 3.938 kB / 0.9412 GB, free: 208.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004947/1.914, allocations: 3.384 MB / 0.9445 GB, free: 207.4 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005568/1.919, allocations: 0.7954 MB / 0.9453 GB, free: 207.1 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0325/1.952, allocations: 22.46 MB / 0.9672 GB, free: 194.7 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006945/1.959, allocations: 5.567 MB / 0.9727 GB, free: 190.4 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002173/1.961, allocations: 494.4 kB / 0.9731 GB, free: 190 MB / 0.5763 GB Notification: Performance of SimCode: time 1.633e-06/1.961, allocations: 4 kB / 0.9731 GB, free: 190 MB / 0.5763 GB Notification: Performance of Templates: time 0.1694/2.13, allocations: 141.3 MB / 1.111 GB, free: 53.22 MB / 0.5763 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSR/JointUSR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches