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.002027/0.002027, allocations: 113.2 kB / 17.78 MB, free: 5.258 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.002317/0.002317, allocations: 184.2 kB / 18.72 MB, free: 4.332 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.551/1.551, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2394/0.2394, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 67.88 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4047, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointSSR): time 0.01779/0.4225, allocations: 16.28 MB / 0.5343 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01311/0.4357, allocations: 5.343 MB / 0.5395 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004744/0.4404, allocations: 97.09 kB / 0.5396 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009523/0.45, allocations: 4.165 MB / 0.5437 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009652/0.4597, allocations: 2.759 MB / 0.5464 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003841/0.4636, allocations: 1.262 MB / 0.5476 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01357/0.4772, allocations: 7.6 MB / 0.555 GB, free: 6.5 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008993/0.4862, allocations: 5.853 MB / 0.5608 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005967/0.4922, allocations: 2.675 MB / 0.5634 GB, free: 13.89 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006756/0.499, allocations: 3.778 MB / 0.5671 GB, free: 10.1 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002772/0.5018, allocations: 0.5898 MB / 0.5676 GB, free: 9.508 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005228/0.5071, allocations: 1.76 MB / 0.5694 GB, free: 7.746 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006005/0.5131, allocations: 3.32 MB / 0.5726 GB, free: 4.418 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007442/0.5206, allocations: 3.838 MB / 0.5763 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02087/0.5415, allocations: 12.5 MB / 0.5886 GB, free: 4.012 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.5415, allocations: 0 / 0.5886 GB, free: 4.012 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.716e-06/0.5416, allocations: 0 / 0.5886 GB, free: 4.012 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004232/0.542, allocations: 4 kB / 0.5886 GB, free: 4.008 MB / 446.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.02013/0.5621, allocations: 8.213 MB / 0.5966 GB, free: 11.7 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.5622, allocations: 8.031 kB / 0.5966 GB, free: 11.69 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002354/0.5646, allocations: 1.303 MB / 0.5979 GB, free: 10.37 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03045/0.595, allocations: 5.749 MB / 0.6035 GB, free: 4.609 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01179/0.6068, allocations: 5.222 MB / 0.6086 GB, free: 15.32 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003813/0.6073, allocations: 409.9 kB / 0.609 GB, free: 14.93 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0022/0.6095, allocations: 0.5426 MB / 0.6095 GB, free: 14.38 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04331/0.6528, allocations: 18.82 MB / 0.6279 GB, free: 10.51 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002668/0.6531, allocations: 63.52 kB / 0.6279 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001592/0.6547, allocations: 247.8 kB / 0.6282 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005728/0.6604, allocations: 3.432 MB / 0.6315 GB, free: 6.773 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03689/0.6973, allocations: 16.5 MB / 0.6476 GB, free: 6.246 MB / 0.4981 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.1094/0.8068, allocations: 66.63 MB / 0.7127 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3179/1.125, allocations: 6.264 MB / 0.7188 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00493/1.13, allocations: 2.836 MB / 0.7216 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02405/1.154, allocations: 13.85 MB / 0.7351 GB, free: 156.2 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/1.154, allocations: 65.12 kB / 0.7352 GB, free: 156.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=284): time 6.442e-06/1.154, allocations: 4.844 kB / 0.7352 GB, free: 156.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=345): time 0.07602/1.23, allocations: 25.44 MB / 0.76 GB, free: 142 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.056e-05/1.23, allocations: 184.3 kB / 0.7602 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007777/1.238, allocations: 5.918 MB / 0.766 GB, free: 136 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006327/1.239, allocations: 73.7 kB / 0.7661 GB, free: 135.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002564/1.241, allocations: 5.194 MB / 0.7711 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001442/1.243, allocations: 1.333 MB / 0.7724 GB, free: 129.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002036/1.245, allocations: 1.885 MB / 0.7743 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.947e-05/1.245, allocations: 301.1 kB / 0.7746 GB, free: 127.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003966/1.249, allocations: 3.29 MB / 0.7778 GB, free: 124.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005954/1.255, allocations: 8.767 MB / 0.7863 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01171/1.266, allocations: 13.05 MB / 0.7991 GB, free: 97.06 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001928/1.267, allocations: 59.94 kB / 0.7991 GB, free: 97 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.02467/1.291, allocations: 12.83 MB / 0.8117 GB, free: 84.12 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002016/1.292, allocations: 92.03 kB / 0.8118 GB, free: 84.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000276/1.292, allocations: 192 kB / 0.8119 GB, free: 83.85 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004026/1.296, allocations: 1.314 MB / 0.8132 GB, free: 82.53 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007347/1.303, allocations: 2.168 MB / 0.8153 GB, free: 80.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/1.314, allocations: 7.832 MB / 0.823 GB, free: 72.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007117/1.321, allocations: 0.503 MB / 0.8235 GB, free: 71.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00127/1.323, allocations: 0.5468 MB / 0.824 GB, free: 71.35 MB / 0.5606 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.006174/1.329, allocations: 3.44 MB / 0.8274 GB, free: 67.89 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001216/1.33, allocations: 0.5588 MB / 0.8279 GB, free: 67.33 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01002/1.34, allocations: 5.412 MB / 0.8332 GB, free: 61.86 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.313e-05/1.34, allocations: 36 kB / 0.8332 GB, free: 61.83 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/1.34, allocations: 8 kB / 0.8332 GB, free: 61.82 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.718e-05/1.34, allocations: 19.88 kB / 0.8333 GB, free: 61.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02356/1.364, allocations: 13.93 MB / 0.8469 GB, free: 47.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.248e-05/1.364, allocations: 20.02 kB / 0.8469 GB, free: 47.62 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001904/1.366, allocations: 0.4972 MB / 0.8474 GB, free: 47.13 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003048/1.369, allocations: 0.8088 MB / 0.8482 GB, free: 46.32 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002491/1.369, allocations: 71.98 kB / 0.8482 GB, free: 46.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007664/1.377, allocations: 5.811 MB / 0.8539 GB, free: 40.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/1.377, allocations: 19.94 kB / 0.8539 GB, free: 40.28 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01809/1.395, allocations: 8.319 MB / 0.8621 GB, free: 31.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00206/1.397, allocations: 0.5948 MB / 0.8626 GB, free: 31.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008224/1.398, allocations: 60 kB / 0.8627 GB, free: 31 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001921/1.4, allocations: 139.4 kB / 0.8628 GB, free: 30.87 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004151/1.4, allocations: 221.4 kB / 0.863 GB, free: 30.65 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001855/1.401, allocations: 104 kB / 0.8631 GB, free: 30.55 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004788/1.405, allocations: 3.676 MB / 0.8667 GB, free: 26.91 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.01e-07/1.405, allocations: 0 / 0.8667 GB, free: 26.91 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.009148/1.415, allocations: 1.632 MB / 0.8683 GB, free: 25.28 MB / 0.5606 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.01299/1.428, allocations: 9.072 MB / 0.8772 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01083/1.438, allocations: 7.845 MB / 0.8848 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.426e-05/1.438, allocations: 4 kB / 0.8848 GB, free: 8.074 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003139/1.442, allocations: 2.376 MB / 0.8872 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003761/1.445, allocations: 0.715 MB / 0.8879 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.445/1.89, allocations: 73.7 MB / 0.9598 GB, free: 198.2 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007039/1.898, allocations: 5.167 MB / 0.9649 GB, free: 196.5 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.007262/1.905, allocations: 2.966 MB / 0.9678 GB, free: 196.4 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004463/1.909, allocations: 3.329 MB / 0.971 GB, free: 193.7 MB / 0.6231 GB Notification: Performance of SimCode: time 2.645e-06/1.909, allocations: 0 / 0.971 GB, free: 193.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1723/2.082, allocations: 110.6 MB / 1.079 GB, free: 90.93 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.92/27, allocations: 21.66 kB / 1.079 GB, free: 90.91 MB / 0.6231 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