Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 117.7 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001265, allocations: 204.6 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2221/0.2221, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 76.06 kB / 481.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4353/0.4369, allocations: 62.43 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.02213/0.4591, allocations: 17.63 MB / 0.5482 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01475/0.4739, allocations: 5.701 MB / 0.5538 GB, free: 10.35 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004633/0.4786, allocations: 111.7 kB / 0.5539 GB, free: 10.24 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008779/0.4874, allocations: 4.567 MB / 0.5583 GB, free: 5.66 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009595/0.497, allocations: 2.965 MB / 0.5612 GB, free: 2.684 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00416/0.5012, allocations: 1.498 MB / 0.5627 GB, free: 1.184 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01488/0.5161, allocations: 8.941 MB / 0.5714 GB, free: 8.227 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01143/0.5276, allocations: 6.435 MB / 0.5777 GB, free: 1.719 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006417/0.534, allocations: 3.01 MB / 0.5807 GB, free: 14.7 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006906/0.541, allocations: 4.265 MB / 0.5848 GB, free: 10.42 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002373/0.5434, allocations: 0.6641 MB / 0.5855 GB, free: 9.758 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005311/0.5487, allocations: 1.83 MB / 0.5873 GB, free: 7.926 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005247/0.554, allocations: 3.713 MB / 0.5909 GB, free: 4.203 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008485/0.5625, allocations: 4.179 MB / 0.595 GB, free: 0 / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02315/0.5857, allocations: 13.5 MB / 0.6081 GB, free: 2.453 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.274e-05/0.5858, allocations: 0 / 0.6081 GB, free: 2.453 MB / 462.1 MB Notification: Performance of FrontEnd: time 4.208e-06/0.5858, allocations: 0 / 0.6081 GB, free: 2.453 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007134/0.5865, allocations: 0 / 0.6081 GB, free: 2.453 MB / 462.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.03072/0.6172, allocations: 8.971 MB / 0.6169 GB, free: 9.395 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.6173, allocations: 12.03 kB / 0.6169 GB, free: 9.383 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01827/0.6356, allocations: 4.096 MB / 0.6209 GB, free: 5.27 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01271/0.6483, allocations: 5.06 MB / 0.6259 GB, free: 128 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006106/0.649, allocations: 438.9 kB / 0.6263 GB, free: 15.7 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00342/0.6524, allocations: 0.6048 MB / 0.6269 GB, free: 15.09 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04787/0.7003, allocations: 20.62 MB / 0.647 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005519/0.7009, allocations: 79.3 kB / 0.6471 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002941/0.7039, allocations: 271.7 kB / 0.6473 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006273/0.7102, allocations: 3.718 MB / 0.651 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04281/0.753, allocations: 18.21 MB / 0.6688 GB, free: 3.023 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 preOpt removeSimpleEquations (simulation): time 0.7581/1.511, allocations: 74.26 MB / 0.7413 GB, free: 114.1 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01725/1.529, allocations: 7.466 MB / 0.7486 GB, free: 112.7 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004857/1.533, allocations: 4.121 MB / 0.7526 GB, free: 111 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02589/1.559, allocations: 18.28 MB / 0.7704 GB, free: 100.6 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/1.559, allocations: 67.27 kB / 0.7705 GB, free: 100.6 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=335): time 6.011e-06/1.559, allocations: 0 / 0.7705 GB, free: 100.6 MB / 0.5607 GB Notification: Performance of matching and sorting (n=419): time 0.1042/1.664, allocations: 34.7 MB / 0.8044 GB, free: 68.61 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.564e-05/1.664, allocations: 196.9 kB / 0.8046 GB, free: 68.38 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007758/1.672, allocations: 6.462 MB / 0.8109 GB, free: 61.91 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0008083/1.672, allocations: 91.19 kB / 0.811 GB, free: 61.82 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002507/1.675, allocations: 5.361 MB / 0.8162 GB, free: 56.46 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001548/1.676, allocations: 1.545 MB / 0.8177 GB, free: 54.93 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002463/1.679, allocations: 2.131 MB / 0.8198 GB, free: 52.79 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.375e-05/1.679, allocations: 305.1 kB / 0.8201 GB, free: 52.49 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005328/1.684, allocations: 4.343 MB / 0.8243 GB, free: 48.14 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007665/1.692, allocations: 10.28 MB / 0.8344 GB, free: 35.05 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01489/1.707, allocations: 15.68 MB / 0.8497 GB, free: 16.56 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001932/1.707, allocations: 64 kB / 0.8497 GB, free: 16.5 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1417) (initialization): time 0.03387/1.741, allocations: 16.35 MB / 0.8657 GB, free: 116 kB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002504/1.741, allocations: 92.19 kB / 0.8658 GB, free: 24 kB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004311/1.742, allocations: 212 kB / 0.866 GB, free: 15.81 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00834/1.75, allocations: 2.377 MB / 0.8683 GB, free: 13.44 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008758/1.759, allocations: 2.46 MB / 0.8707 GB, free: 10.97 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02183/1.781, allocations: 12.75 MB / 0.8832 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01145/1.792, allocations: 0.589 MB / 0.8838 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00284/1.795, allocations: 0.6016 MB / 0.8843 GB, free: 12.9 MB / 0.5919 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.009349/1.804, allocations: 3.769 MB / 0.888 GB, free: 9.113 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001959/1.806, allocations: 0.5862 MB / 0.8886 GB, free: 8.52 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01994/1.826, allocations: 8.329 MB / 0.8967 GB, free: 148 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/1.827, allocations: 67.92 kB / 0.8968 GB, free: 80 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.702e-05/1.827, allocations: 12 kB / 0.8968 GB, free: 68 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.517e-05/1.827, allocations: 19.94 kB / 0.8968 GB, free: 48 kB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04747/1.874, allocations: 18.84 MB / 0.9152 GB, free: 12.91 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.585e-05/1.874, allocations: 16 kB / 0.9152 GB, free: 12.89 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003327/1.878, allocations: 0.624 MB / 0.9159 GB, free: 12.27 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00702/1.885, allocations: 1.8 MB / 0.9176 GB, free: 10.46 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007677/1.885, allocations: 83.94 kB / 0.9177 GB, free: 10.38 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01893/1.904, allocations: 10.82 MB / 0.9283 GB, free: 15.43 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.011e-05/1.904, allocations: 19.88 kB / 0.9283 GB, free: 15.41 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02545/1.93, allocations: 12.47 MB / 0.9405 GB, free: 2.656 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002811/1.933, allocations: 0.63 MB / 0.9411 GB, free: 2 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002586/1.935, allocations: 87.83 kB / 0.9412 GB, free: 1.918 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004723/1.94, allocations: 203.8 kB / 0.9413 GB, free: 1.719 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001354/1.942, allocations: 265.7 kB / 0.9416 GB, free: 1.457 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007158/1.942, allocations: 112 kB / 0.9417 GB, free: 1.348 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.009228/1.952, allocations: 4.024 MB / 0.9456 GB, free: 13.33 MB / 0.6544 GB Notification: Performance of sort global known variables: time 3.31e-07/1.952, allocations: 0 / 0.9456 GB, free: 13.33 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01107/1.963, allocations: 1.914 MB / 0.9475 GB, free: 11.43 MB / 0.6544 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.001395/1.964, allocations: 297.4 kB / 0.9478 GB, free: 11.13 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.01933/1.983, allocations: 10.19 MB / 0.9577 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.867e-05/1.983, allocations: 0 / 0.9577 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.006659/1.99, allocations: 3.394 MB / 0.9611 GB, free: 13.56 MB / 0.6701 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007805/1.998, allocations: 0.8011 MB / 0.9618 GB, free: 12.77 MB / 0.6701 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3796/2.378, allocations: 17.63 MB / 0.9791 GB, free: 246.1 MB / 0.6701 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009518/2.387, allocations: 5.59 MB / 0.9845 GB, free: 245.2 MB / 0.6701 GB Notification: Performance of simCode: alias equations: time 0.008519/2.396, allocations: 3.313 MB / 0.9877 GB, free: 245.1 MB / 0.6701 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002009/2.398, allocations: 411 kB / 0.9881 GB, free: 245.1 MB / 0.6701 GB Notification: Performance of SimCode: time 9.62e-07/2.398, allocations: 0 / 0.9881 GB, free: 245.1 MB / 0.6701 GB Notification: Performance of Templates: time 0.1138/2.512, allocations: 69.38 MB / 1.056 GB, free: 191.1 MB / 0.6701 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSR/JointUSR.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches