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.00137/0.00137, allocations: 117 kB / 18.41 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001587/0.001587, allocations: 200.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.208/0.208, allocations: 46.11 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 75.89 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1387, allocations: 62.46 MB / 481.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.01806/0.1568, allocations: 17.62 MB / 499.1 MB, free: 2.809 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01339/0.1702, allocations: 5.704 MB / 0.493 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004151/0.1744, allocations: 107.8 kB / 0.4931 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008177/0.1827, allocations: 4.575 MB / 0.4975 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01083/0.1936, allocations: 2.972 MB / 0.5004 GB, free: 5.414 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003798/0.1974, allocations: 1.494 MB / 0.5019 GB, free: 3.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2826/0.48, allocations: 8.916 MB / 0.5106 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009012/0.489, allocations: 6.439 MB / 0.5169 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006724/0.4958, allocations: 2.999 MB / 0.5198 GB, free: 12.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007899/0.5037, allocations: 4.263 MB / 0.524 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002447/0.5062, allocations: 0.6659 MB / 0.5246 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00617/0.5124, allocations: 1.832 MB / 0.5264 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004613/0.517, allocations: 3.68 MB / 0.53 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005438/0.5225, allocations: 4.185 MB / 0.5341 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01147/0.534, allocations: 13.5 MB / 0.5473 GB, free: 14.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.534, allocations: 0 / 0.5473 GB, free: 14.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.534, allocations: 0 / 0.5473 GB, free: 14.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003699/0.5344, allocations: 0 / 0.5473 GB, free: 14.45 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02148/0.5559, allocations: 8.967 MB / 0.556 GB, free: 5.582 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.5559, allocations: 8.031 kB / 0.556 GB, free: 5.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01634/0.5723, allocations: 4.105 MB / 0.5601 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01356/0.5859, allocations: 5.063 MB / 0.565 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005381/0.5865, allocations: 442.1 kB / 0.5654 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003158/0.5896, allocations: 0.5943 MB / 0.566 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03791/0.6275, allocations: 20.64 MB / 0.5862 GB, free: 6.293 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001971/0.6278, allocations: 78.03 kB / 0.5862 GB, free: 6.25 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008628/0.6287, allocations: 268 kB / 0.5865 GB, free: 6.055 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005099/0.6338, allocations: 3.712 MB / 0.5901 GB, free: 2.395 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03727/0.6711, allocations: 18.2 MB / 0.6079 GB, free: 492 kB / 446.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.102/0.7731, allocations: 74.29 MB / 0.6804 GB, free: 4.863 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01742/0.7906, allocations: 7.461 MB / 0.6877 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005784/0.7964, allocations: 4.112 MB / 0.6917 GB, free: 9.023 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02773/0.8241, allocations: 18.28 MB / 0.7096 GB, free: 6.129 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.714e-05/0.8242, allocations: 72.53 kB / 0.7097 GB, free: 6.047 MB / 0.545 GB Notification: Performance of pre-optimization done (n=335): time 8.036e-06/0.8243, allocations: 0 / 0.7097 GB, free: 6.047 MB / 0.545 GB Notification: Performance of matching and sorting (n=419): time 0.5714/1.396, allocations: 34.67 MB / 0.7435 GB, free: 179.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/1.396, allocations: 198.1 kB / 0.7437 GB, free: 179.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00884/1.405, allocations: 6.464 MB / 0.75 GB, free: 176.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008056/1.406, allocations: 88.98 kB / 0.7501 GB, free: 176.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002513/1.408, allocations: 5.367 MB / 0.7553 GB, free: 172.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001752/1.41, allocations: 1.535 MB / 0.7568 GB, free: 171.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002797/1.413, allocations: 2.142 MB / 0.7589 GB, free: 170.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.261e-05/1.413, allocations: 301.1 kB / 0.7592 GB, free: 170.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005403/1.418, allocations: 4.339 MB / 0.7635 GB, free: 168.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007406/1.426, allocations: 10.28 MB / 0.7735 GB, free: 156.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01491/1.44, allocations: 15.68 MB / 0.7888 GB, free: 137.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001722/1.441, allocations: 56 kB / 0.7889 GB, free: 137.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1417) (initialization): time 0.02918/1.47, allocations: 16.36 MB / 0.8048 GB, free: 121.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/1.47, allocations: 100.5 kB / 0.8049 GB, free: 121.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002253/1.47, allocations: 208.9 kB / 0.8051 GB, free: 121.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006781/1.477, allocations: 2.373 MB / 0.8074 GB, free: 118.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007532/1.485, allocations: 2.468 MB / 0.8099 GB, free: 116.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01561/1.5, allocations: 12.75 MB / 0.8223 GB, free: 103.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007597/1.508, allocations: 0.5823 MB / 0.8229 GB, free: 102.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001316/1.509, allocations: 0.6062 MB / 0.8235 GB, free: 102.3 MB / 0.545 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.005536/1.515, allocations: 3.771 MB / 0.8271 GB, free: 98.49 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001159/1.516, allocations: 0.5862 MB / 0.8277 GB, free: 97.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01404/1.53, allocations: 8.326 MB / 0.8358 GB, free: 89.53 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.001e-05/1.53, allocations: 62.02 kB / 0.8359 GB, free: 89.47 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-05/1.53, allocations: 8 kB / 0.8359 GB, free: 89.46 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.237e-05/1.53, allocations: 23.88 kB / 0.8359 GB, free: 89.44 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03183/1.562, allocations: 18.84 MB / 0.8543 GB, free: 70.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.703e-05/1.562, allocations: 12 kB / 0.8544 GB, free: 70.29 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002432/1.565, allocations: 0.6279 MB / 0.855 GB, free: 69.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00561/1.57, allocations: 1.807 MB / 0.8567 GB, free: 67.86 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004188/1.571, allocations: 73.41 kB / 0.8568 GB, free: 67.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01344/1.584, allocations: 10.83 MB / 0.8674 GB, free: 56.82 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.786e-06/1.584, allocations: 19.88 kB / 0.8674 GB, free: 56.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01801/1.602, allocations: 12.49 MB / 0.8796 GB, free: 44.04 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001824/1.604, allocations: 0.6261 MB / 0.8802 GB, free: 43.39 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008877/1.605, allocations: 77.31 kB / 0.8803 GB, free: 43.31 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002556/1.607, allocations: 207.8 kB / 0.8805 GB, free: 43.11 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00056/1.608, allocations: 267 kB / 0.8807 GB, free: 42.85 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002443/1.608, allocations: 112.5 kB / 0.8808 GB, free: 42.74 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004958/1.613, allocations: 4.02 MB / 0.8848 GB, free: 38.73 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/1.613, allocations: 0 / 0.8848 GB, free: 38.73 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008271/1.621, allocations: 1.923 MB / 0.8866 GB, free: 36.82 MB / 0.545 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.000762/1.622, allocations: 289 kB / 0.8869 GB, free: 36.54 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01274/1.635, allocations: 10.19 MB / 0.8969 GB, free: 26.37 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/1.635, allocations: 0 / 0.8969 GB, free: 26.37 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004224/1.639, allocations: 3.386 MB / 0.9002 GB, free: 22.96 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004253/1.644, allocations: 0.8197 MB / 0.901 GB, free: 22.17 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2765/1.92, allocations: 17.64 MB / 0.9182 GB, free: 168 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01188/1.932, allocations: 5.58 MB / 0.9236 GB, free: 167.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01002/1.942, allocations: 3.31 MB / 0.9269 GB, free: 167 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002044/1.944, allocations: 415.8 kB / 0.9273 GB, free: 167 MB / 0.545 GB Notification: Performance of SimCode: time 1.262e-06/1.944, allocations: 2.812 kB / 0.9273 GB, free: 167 MB / 0.545 GB Notification: Performance of Templates: time 0.1162/2.06, allocations: 65.85 MB / 0.9916 GB, free: 124.6 MB / 0.545 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 -s cvode -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/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_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches