Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.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: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001167/0.001167, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001372/0.001372, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.7 MB / 246.8 MB, free: 9.672 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1934/0.1934, allocations: 46.19 MB / 345.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002995, allocations: 11.98 kB / 419.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1279, allocations: 63.55 MB / 483.2 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointSSR): time 0.2909/0.4188, allocations: 56.29 MB / 0.5268 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03499/0.4539, allocations: 12.14 MB / 0.5387 GB, free: 5.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01074/0.4647, allocations: 248.4 kB / 0.5389 GB, free: 5.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001738/0.4664, allocations: 0.6694 MB / 0.5396 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006476/0.4729, allocations: 2.58 MB / 0.5421 GB, free: 4.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002993/0.4759, allocations: 1.156 MB / 0.5432 GB, free: 3.566 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01265/0.4886, allocations: 10.85 MB / 0.5538 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01093/0.4995, allocations: 7.811 MB / 0.5614 GB, free: 6.375 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003924/0.5035, allocations: 1.98 MB / 0.5634 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00503/0.5086, allocations: 3.523 MB / 0.5668 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00114/0.5097, allocations: 264 kB / 0.5671 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003397/0.5131, allocations: 1.494 MB / 0.5685 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002867/0.516, allocations: 2.921 MB / 0.5714 GB, free: 12.17 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003467/0.5195, allocations: 3.378 MB / 0.5747 GB, free: 8.762 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01326/0.5328, allocations: 11.47 MB / 0.5859 GB, free: 13.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.5328, allocations: 0 / 0.5859 GB, free: 13.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.038e-06/0.5328, allocations: 0 / 0.5859 GB, free: 13.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004679/0.5333, allocations: 4 kB / 0.5859 GB, free: 13.25 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: 2564 * Number of variables: 2564 Notification: Performance of Generate backend data structure: time 0.01524/0.5486, allocations: 6.491 MB / 0.5922 GB, free: 6.672 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.5486, allocations: 12.88 kB / 0.5922 GB, free: 6.66 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00355/0.5522, allocations: 1.303 MB / 0.5935 GB, free: 5.344 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03066/0.5829, allocations: 5.814 MB / 0.5992 GB, free: 15.51 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01032/0.5932, allocations: 4.818 MB / 0.6039 GB, free: 10.63 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004559/0.5937, allocations: 402 kB / 0.6043 GB, free: 10.24 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002396/0.5962, allocations: 0.5541 MB / 0.6048 GB, free: 9.684 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03801/0.6342, allocations: 18.88 MB / 0.6232 GB, free: 5.754 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001971/0.6344, allocations: 75.3 kB / 0.6233 GB, free: 5.68 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008198/0.6352, allocations: 251.7 kB / 0.6236 GB, free: 5.434 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004911/0.6402, allocations: 3.428 MB / 0.6269 GB, free: 2 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03448/0.6747, allocations: 16.56 MB / 0.6431 GB, free: 1.418 MB / 478.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.3444/1.019, allocations: 66.75 MB / 0.7083 GB, free: 161.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01648/1.036, allocations: 6.283 MB / 0.7144 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004631/1.04, allocations: 2.827 MB / 0.7172 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0216/1.062, allocations: 13.9 MB / 0.7307 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.263e-05/1.062, allocations: 60.34 kB / 0.7308 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=284): time 6.502e-06/1.062, allocations: 0 / 0.7308 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=345): time 0.08622/1.148, allocations: 25.06 MB / 0.7553 GB, free: 145.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/1.148, allocations: 186.6 kB / 0.7554 GB, free: 145 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007644/1.156, allocations: 5.9 MB / 0.7612 GB, free: 140.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000587/1.157, allocations: 76.67 kB / 0.7613 GB, free: 140.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002727/1.159, allocations: 4.977 MB / 0.7661 GB, free: 135.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001721/1.161, allocations: 1.284 MB / 0.7674 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009475/1.162, allocations: 0.7941 MB / 0.7682 GB, free: 133.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.221e-05/1.162, allocations: 305.1 kB / 0.7685 GB, free: 133.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00433/1.166, allocations: 3.298 MB / 0.7717 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006226/1.173, allocations: 8.77 MB / 0.7802 GB, free: 118.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01253/1.185, allocations: 13.06 MB / 0.793 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001487/1.185, allocations: 52 kB / 0.793 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.02483/1.21, allocations: 12.82 MB / 0.8056 GB, free: 89.88 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.847e-05/1.21, allocations: 88.25 kB / 0.8056 GB, free: 89.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001867/1.211, allocations: 192 kB / 0.8058 GB, free: 89.61 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003742/1.214, allocations: 1.311 MB / 0.8071 GB, free: 88.29 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006481/1.221, allocations: 2.172 MB / 0.8092 GB, free: 86.12 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009981/1.231, allocations: 7.3 MB / 0.8164 GB, free: 78.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007559/1.238, allocations: 0.5003 MB / 0.8168 GB, free: 78.19 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001367/1.24, allocations: 0.544 MB / 0.8174 GB, free: 77.65 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 874 * Number of states: 0 () * Number of discrete variables: 46 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[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 (1152): * Single equations (assignments): 1145 * 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,37,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005116/1.245, allocations: 3.454 MB / 0.8208 GB, free: 74.18 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009359/1.246, allocations: 0.5323 MB / 0.8213 GB, free: 73.64 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009777/1.256, allocations: 5.402 MB / 0.8265 GB, free: 68.18 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.341e-05/1.256, allocations: 37.25 kB / 0.8266 GB, free: 68.14 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/1.256, allocations: 7.984 kB / 0.8266 GB, free: 68.14 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.937e-05/1.256, allocations: 23.88 kB / 0.8266 GB, free: 68.11 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02374/1.28, allocations: 14.02 MB / 0.8403 GB, free: 53.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.213e-05/1.28, allocations: 8 kB / 0.8403 GB, free: 53.86 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001935/1.282, allocations: 0.4958 MB / 0.8408 GB, free: 53.37 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003055/1.285, allocations: 0.8067 MB / 0.8416 GB, free: 52.56 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002653/1.285, allocations: 73 kB / 0.8417 GB, free: 52.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007502/1.292, allocations: 5.333 MB / 0.8469 GB, free: 47.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.839e-06/1.292, allocations: 23.44 kB / 0.8469 GB, free: 47 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.013/1.305, allocations: 8.32 MB / 0.855 GB, free: 38.39 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/1.307, allocations: 0.576 MB / 0.8556 GB, free: 37.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007466/1.308, allocations: 65.31 kB / 0.8556 GB, free: 37.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001941/1.31, allocations: 131.9 kB / 0.8558 GB, free: 37.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004323/1.31, allocations: 223 kB / 0.856 GB, free: 37.39 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001789/1.311, allocations: 105.3 kB / 0.8561 GB, free: 37.29 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004679/1.315, allocations: 3.664 MB / 0.8597 GB, free: 33.65 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.62e-07/1.315, allocations: 0 / 0.8597 GB, free: 33.65 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007387/1.323, allocations: 1.611 MB / 0.8612 GB, free: 32.05 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 (269): * Single equations (assignments): 262 * 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,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01343/1.336, allocations: 9.048 MB / 0.8701 GB, free: 22.71 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01281/1.349, allocations: 7.789 MB / 0.8777 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.69e-05/1.349, allocations: 4 kB / 0.8777 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003815/1.353, allocations: 2.374 MB / 0.88 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01522/1.368, allocations: 0.6913 MB / 0.8807 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4098/1.778, allocations: 90.55 MB / 0.9691 GB, free: 139.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007125/1.785, allocations: 5.159 MB / 0.9741 GB, free: 136.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006866/1.792, allocations: 2.961 MB / 0.977 GB, free: 134.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004146/1.796, allocations: 3.327 MB / 0.9803 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.122e-06/1.796, allocations: 0 / 0.9803 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1443/1.94, allocations: 112.6 MB / 1.09 GB, free: 18.69 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/1.941, allocations: 224.8 kB / 1.09 GB, free: 18.44 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.255/7.196, allocations: 3.938 kB / 1.09 GB, free: 18.43 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointSSR.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointSSR/JointSSR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches