Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.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: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 104 kB / 17.32 MB, free: 5.988 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.001482/0.001482, allocations: 193.3 kB / 18.25 MB, free: 5.07 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.365/1.365, allocations: 222.9 MB / 241.9 MB, free: 13.77 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.2239/0.2239, allocations: 44.17 MB / 336.2 MB, free: 2.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 62.83 kB / 408 MB, free: 27.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1329, allocations: 60.83 MB / 468.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointSSR): time 0.3715/0.5045, allocations: 58.16 MB / 0.5146 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0352/0.5397, allocations: 12.23 MB / 0.5266 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02041/0.5602, allocations: 254.9 kB / 0.5268 GB, free: 7.379 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01126/0.5715, allocations: 4.004 MB / 0.5307 GB, free: 6.223 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0117/0.5833, allocations: 2.572 MB / 0.5332 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003954/0.5873, allocations: 1.194 MB / 0.5344 GB, free: 4.746 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01352/0.6008, allocations: 7.79 MB / 0.542 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01433/0.6152, allocations: 6.176 MB / 0.548 GB, free: 13.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007432/0.6227, allocations: 2.713 MB / 0.5507 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007227/0.63, allocations: 4.16 MB / 0.5548 GB, free: 7.016 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002605/0.6326, allocations: 0.5898 MB / 0.5553 GB, free: 6.426 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005523/0.6382, allocations: 1.783 MB / 0.5571 GB, free: 4.695 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005753/0.644, allocations: 3.35 MB / 0.5603 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01071/0.6547, allocations: 3.873 MB / 0.5641 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02048/0.6752, allocations: 12.12 MB / 0.576 GB, free: 1.625 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.974e-06/0.6753, allocations: 0 / 0.576 GB, free: 1.625 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.6753, allocations: 0 / 0.576 GB, free: 1.625 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000533/0.6758, allocations: 0 / 0.576 GB, free: 1.625 MB / 414.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.02818/0.704, allocations: 7.991 MB / 0.5838 GB, free: 9.719 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.662e-05/0.7041, allocations: 8.031 kB / 0.5838 GB, free: 9.711 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004791/0.7089, allocations: 1.307 MB / 0.585 GB, free: 8.453 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03149/0.7404, allocations: 5.702 MB / 0.5906 GB, free: 2.738 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01288/0.7533, allocations: 5.138 MB / 0.5956 GB, free: 13.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004723/0.7539, allocations: 399.1 kB / 0.596 GB, free: 13.28 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002718/0.7566, allocations: 0.555 MB / 0.5966 GB, free: 12.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04485/0.8015, allocations: 18.82 MB / 0.6149 GB, free: 9.117 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004509/0.802, allocations: 75.3 kB / 0.615 GB, free: 9.043 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002597/0.8046, allocations: 246.9 kB / 0.6152 GB, free: 8.863 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006001/0.8106, allocations: 3.432 MB / 0.6186 GB, free: 5.445 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03809/0.8487, allocations: 16.51 MB / 0.6347 GB, free: 4.93 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.1023/0.9511, allocations: 66.82 MB / 0.7 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4378/1.389, allocations: 6.256 MB / 0.7061 GB, free: 184.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004933/1.394, allocations: 2.832 MB / 0.7088 GB, free: 183.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02757/1.421, allocations: 13.84 MB / 0.7224 GB, free: 176 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.72e-05/1.422, allocations: 62.16 kB / 0.7224 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=284): time 6.783e-06/1.422, allocations: 3.938 kB / 0.7224 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=345): time 0.0874/1.509, allocations: 25.05 MB / 0.7469 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.989e-05/1.509, allocations: 184.3 kB / 0.7471 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009411/1.519, allocations: 5.907 MB / 0.7528 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006674/1.519, allocations: 69.7 kB / 0.7529 GB, free: 157.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002806/1.522, allocations: 4.989 MB / 0.7578 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001454/1.524, allocations: 1.281 MB / 0.759 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003953/1.527, allocations: 1.865 MB / 0.7608 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.343e-05/1.528, allocations: 305.1 kB / 0.7611 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004955/1.533, allocations: 3.294 MB / 0.7643 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008422/1.541, allocations: 8.763 MB / 0.7729 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/1.554, allocations: 13.05 MB / 0.7856 GB, free: 118.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000174/1.554, allocations: 52.88 kB / 0.7857 GB, free: 118.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.02488/1.579, allocations: 12.82 MB / 0.7982 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001961/1.579, allocations: 88 kB / 0.7983 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003369/1.58, allocations: 192 kB / 0.7985 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004216/1.584, allocations: 1.324 MB / 0.7998 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007784/1.592, allocations: 2.16 MB / 0.8019 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/1.604, allocations: 7.84 MB / 0.8095 GB, free: 93.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00791/1.612, allocations: 0.4994 MB / 0.81 GB, free: 93.21 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001537/1.614, allocations: 0.5465 MB / 0.8106 GB, free: 92.67 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.005607/1.619, allocations: 3.448 MB / 0.8139 GB, free: 89.21 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/1.62, allocations: 0.5283 MB / 0.8144 GB, free: 88.67 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01099/1.631, allocations: 5.423 MB / 0.8197 GB, free: 83.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.253e-05/1.632, allocations: 36 kB / 0.8198 GB, free: 83.16 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.589e-05/1.632, allocations: 4 kB / 0.8198 GB, free: 83.16 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.174e-05/1.632, allocations: 19.89 kB / 0.8198 GB, free: 83.14 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02825/1.66, allocations: 14.02 MB / 0.8335 GB, free: 68.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.127e-05/1.66, allocations: 16.03 kB / 0.8335 GB, free: 68.88 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002105/1.662, allocations: 0.4914 MB / 0.834 GB, free: 68.39 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003333/1.665, allocations: 0.8163 MB / 0.8348 GB, free: 67.57 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004246/1.666, allocations: 68 kB / 0.8348 GB, free: 67.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009155/1.675, allocations: 5.823 MB / 0.8405 GB, free: 61.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.467e-05/1.675, allocations: 15.94 kB / 0.8405 GB, free: 61.53 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01435/1.689, allocations: 8.288 MB / 0.8486 GB, free: 52.96 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001515/1.691, allocations: 0.5604 MB / 0.8492 GB, free: 52.37 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001553/1.693, allocations: 71.92 kB / 0.8493 GB, free: 52.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002765/1.695, allocations: 127.9 kB / 0.8494 GB, free: 52.18 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006279/1.696, allocations: 225.5 kB / 0.8496 GB, free: 51.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003188/1.696, allocations: 111.8 kB / 0.8497 GB, free: 51.85 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007271/1.704, allocations: 3.664 MB / 0.8533 GB, free: 48.22 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.1e-07/1.704, allocations: 4 kB / 0.8533 GB, free: 48.21 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009534/1.713, allocations: 1.621 MB / 0.8549 GB, free: 46.6 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.01537/1.729, allocations: 9.056 MB / 0.8637 GB, free: 37.26 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01911/1.748, allocations: 11.21 MB / 0.8746 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.871e-05/1.748, allocations: 4 kB / 0.8747 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003974/1.752, allocations: 2.378 MB / 0.877 GB, free: 23.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006139/1.758, allocations: 0.7228 MB / 0.8777 GB, free: 22.99 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.42/2.178, allocations: 90.51 MB / 0.9661 GB, free: 114.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007643/2.186, allocations: 5.163 MB / 0.9711 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007348/2.193, allocations: 2.958 MB / 0.974 GB, free: 106.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005697/2.199, allocations: 3.331 MB / 0.9773 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.983e-06/2.199, allocations: 0 / 0.9773 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1723/2.371, allocations: 116.2 MB / 1.091 GB, free: 3.441 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002139/2.371, allocations: 222.3 kB / 1.091 GB, free: 3.188 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.189/7.56, allocations: 4 kB / 1.091 GB, free: 3.184 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches