Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_3.2.3_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.00106/0.00106, allocations: 97.38 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 176.6 kB / 16.57 MB, free: 6.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3834/0.3834, allocations: 43.55 MB / 314.5 MB, free: 8.797 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005293/0.0005295, allocations: 19.98 kB / 383.9 MB, free: 8.047 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1418, allocations: 58.86 MB / 442.7 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.2849/0.4268, allocations: 54.05 MB / 496.8 MB, free: 16.55 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03548/0.4623, allocations: 13.08 MB / 0.4979 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01454/0.4769, allocations: 271.5 kB / 0.4982 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01051/0.4875, allocations: 2.685 MB / 0.5008 GB, free: 6.738 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02974/0.5173, allocations: 7.793 MB / 0.5084 GB, free: 3.039 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005538/0.5228, allocations: 1.262 MB / 0.5097 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02879/0.5516, allocations: 17.31 MB / 0.5266 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01149/0.5632, allocations: 7.81 MB / 0.5342 GB, free: 2.367 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003969/0.5672, allocations: 2.025 MB / 0.5362 GB, free: 344 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004107/0.5713, allocations: 2.878 MB / 0.539 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001105/0.5724, allocations: 292 kB / 0.5392 GB, free: 13.16 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003451/0.5759, allocations: 1.283 MB / 0.5405 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004125/0.58, allocations: 3.051 MB / 0.5435 GB, free: 8.82 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002728/0.5828, allocations: 1.524 MB / 0.545 GB, free: 7.285 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01271/0.5955, allocations: 10.57 MB / 0.5553 GB, free: 12.69 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.5955, allocations: 0 / 0.5553 GB, free: 12.69 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.5956, allocations: 0 / 0.5553 GB, free: 12.69 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004526/0.596, allocations: 7.938 kB / 0.5553 GB, free: 12.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.02009/0.6161, allocations: 7.822 MB / 0.5629 GB, free: 4.773 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.6162, allocations: 8.031 kB / 0.5629 GB, free: 4.766 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.034/0.6502, allocations: 7.417 MB / 0.5702 GB, free: 13.33 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01421/0.6644, allocations: 6.039 MB / 0.5761 GB, free: 7.207 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004245/0.6649, allocations: 438.9 kB / 0.5765 GB, free: 6.777 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002618/0.6675, allocations: 0.5932 MB / 0.5771 GB, free: 6.184 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04008/0.7076, allocations: 20.84 MB / 0.5974 GB, free: 204 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003041/0.708, allocations: 83.17 kB / 0.5975 GB, free: 120 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001593/0.7096, allocations: 275.7 kB / 0.5978 GB, free: 15.85 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005497/0.7151, allocations: 3.71 MB / 0.6014 GB, free: 12.13 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03802/0.7531, allocations: 18.37 MB / 0.6193 GB, free: 9.746 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.4839/1.237, allocations: 74.55 MB / 0.6921 GB, free: 83.79 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01891/1.256, allocations: 7.457 MB / 0.6994 GB, free: 80.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03/1.286, allocations: 18.16 MB / 0.7172 GB, free: 71.46 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.954e-05/1.286, allocations: 67.5 kB / 0.7172 GB, free: 71.39 MB / 494.1 MB Notification: Performance of pre-optimization done (n=332): time 6.032e-06/1.286, allocations: 0 / 0.7172 GB, free: 71.39 MB / 494.1 MB Notification: Performance of matching and sorting (n=413): time 0.1074/1.394, allocations: 35.74 MB / 0.7521 GB, free: 41.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.32e-05/1.394, allocations: 192.9 kB / 0.7523 GB, free: 41.18 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009017/1.403, allocations: 6.969 MB / 0.7591 GB, free: 34.21 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009787/1.404, allocations: 81.7 kB / 0.7592 GB, free: 34.12 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002993/1.407, allocations: 5.433 MB / 0.7645 GB, free: 28.69 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00188/1.409, allocations: 1.522 MB / 0.766 GB, free: 27.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004786/1.409, allocations: 207.5 kB / 0.7662 GB, free: 26.98 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0004074/1.41, allocations: 0.7524 MB / 0.7669 GB, free: 26.22 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005353/1.415, allocations: 4.139 MB / 0.771 GB, free: 22.08 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007513/1.422, allocations: 9.987 MB / 0.7807 GB, free: 9.215 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008041/1.43, allocations: 6.285 MB / 0.7869 GB, free: 2.914 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001233/1.431, allocations: 56 kB / 0.7869 GB, free: 2.859 MB / 494.1 MB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.03868/1.469, allocations: 15.86 MB / 0.8024 GB, free: 2.969 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003193/1.47, allocations: 92 kB / 0.8025 GB, free: 2.879 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004291/1.47, allocations: 207.8 kB / 0.8027 GB, free: 2.68 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007861/1.478, allocations: 2.34 MB / 0.805 GB, free: 348 kB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009213/1.487, allocations: 2.402 MB / 0.8073 GB, free: 13.93 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02033/1.508, allocations: 12.08 MB / 0.8191 GB, free: 1.715 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008939/1.517, allocations: 0.5775 MB / 0.8197 GB, free: 1.137 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002162/1.519, allocations: 0.5899 MB / 0.8202 GB, free: 0.5469 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 937 * 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 (1276): * Single equations (assignments): 1269 * Array equations: 6 * 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%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2738/1.793, allocations: 3.763 MB / 0.8239 GB, free: 149.1 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001375/1.794, allocations: 0.5981 MB / 0.8245 GB, free: 149.1 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01521/1.809, allocations: 8.15 MB / 0.8325 GB, free: 148.8 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.029e-05/1.809, allocations: 67.98 kB / 0.8325 GB, free: 148.8 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.429e-05/1.809, allocations: 9.438 kB / 0.8325 GB, free: 148.8 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-05/1.809, allocations: 23.22 kB / 0.8326 GB, free: 148.8 MB / 0.5138 GB 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 postOpt removeSimpleEquations (simulation): time 0.03561/1.845, allocations: 18.76 MB / 0.8509 GB, free: 141.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-05/1.845, allocations: 12.42 kB / 0.8509 GB, free: 141.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003073/1.848, allocations: 0.6119 MB / 0.8515 GB, free: 141.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006714/1.855, allocations: 1.753 MB / 0.8532 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000698/1.856, allocations: 77.72 kB / 0.8533 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01751/1.873, allocations: 10.16 MB / 0.8632 GB, free: 136.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.27e-05/1.873, allocations: 23.38 kB / 0.8632 GB, free: 136.3 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02701/1.9, allocations: 14.07 MB / 0.877 GB, free: 129.3 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005089/1.905, allocations: 1.174 MB / 0.8781 GB, free: 128.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002584/1.908, allocations: 75.02 kB / 0.8782 GB, free: 128.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004756/1.913, allocations: 203.3 kB / 0.8784 GB, free: 128.6 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001332/1.914, allocations: 266.5 kB / 0.8786 GB, free: 128.5 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007833/1.915, allocations: 105.6 kB / 0.8787 GB, free: 128.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.00989/1.925, allocations: 4.403 MB / 0.883 GB, free: 127.1 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.122e-06/1.925, allocations: 0 / 0.883 GB, free: 127.1 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01283/1.938, allocations: 1.934 MB / 0.8849 GB, free: 126.8 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * 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 (325): * Single equations (assignments): 318 * Array equations: 6 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001524/1.939, allocations: 287.3 kB / 0.8852 GB, free: 126.7 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01624/1.956, allocations: 9.766 MB / 0.8947 GB, free: 119.6 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.887e-05/1.956, allocations: 4 kB / 0.8947 GB, free: 119.6 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005814/1.962, allocations: 3.302 MB / 0.898 GB, free: 116.7 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005726/1.967, allocations: 0.726 MB / 0.8987 GB, free: 116.1 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03659/2.004, allocations: 20.69 MB / 0.9189 GB, free: 95.42 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009072/2.013, allocations: 5.749 MB / 0.9245 GB, free: 89.64 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.009018/2.022, allocations: 3.329 MB / 0.9277 GB, free: 86.3 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00214/2.024, allocations: 419.4 kB / 0.9281 GB, free: 85.89 MB / 0.5138 GB Notification: Performance of SimCode: time 1.362e-06/2.024, allocations: 0 / 0.9281 GB, free: 85.89 MB / 0.5138 GB Notification: Performance of Templates: time 0.1089/2.133, allocations: 69.74 MB / 0.9962 GB, free: 16.27 MB / 0.5138 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/JointUSR/JointUSR.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches