Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002062/0.002062, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00281/0.00281, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.035/3.035, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4411/0.4411, allocations: 46.09 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002773/0.002773, allocations: 76.16 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8292/0.832, allocations: 62.43 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.04205/0.8742, allocations: 15.97 MB / 0.5472 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02645/0.9007, allocations: 5.456 MB / 0.5526 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00798/0.9087, allocations: 115.6 kB / 0.5527 GB, free: 12.12 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01819/0.9271, allocations: 5.113 MB / 0.5577 GB, free: 6.992 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01585/0.9431, allocations: 2.586 MB / 0.5602 GB, free: 4.398 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01086/0.954, allocations: 1.384 MB / 0.5615 GB, free: 3.012 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.03038/0.9844, allocations: 8.24 MB / 0.5696 GB, free: 10.76 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02104/1.006, allocations: 7.026 MB / 0.5765 GB, free: 3.645 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01526/1.021, allocations: 2.773 MB / 0.5792 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01249/1.034, allocations: 3.747 MB / 0.5828 GB, free: 13.11 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009661/1.043, allocations: 0.6367 MB / 0.5834 GB, free: 12.47 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01051/1.054, allocations: 1.771 MB / 0.5852 GB, free: 10.7 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01527/1.069, allocations: 3.359 MB / 0.5885 GB, free: 7.328 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02057/1.09, allocations: 3.691 MB / 0.5921 GB, free: 3.617 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03898/1.129, allocations: 11.92 MB / 0.6037 GB, free: 7.652 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.53e-05/1.129, allocations: 3.938 kB / 0.6037 GB, free: 7.648 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.587e-06/1.129, allocations: 0 / 0.6037 GB, free: 7.648 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005831/1.13, allocations: 0 / 0.6037 GB, free: 7.648 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: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.04838/1.178, allocations: 7.881 MB / 0.6114 GB, free: 15.68 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001089/1.178, allocations: 12.03 kB / 0.6114 GB, free: 15.67 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02915/1.208, allocations: 3.049 MB / 0.6144 GB, free: 12.61 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02486/1.232, allocations: 5.053 MB / 0.6193 GB, free: 7.477 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000826/1.233, allocations: 378.2 kB / 0.6197 GB, free: 7.105 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005303/1.239, allocations: 0.5151 MB / 0.6202 GB, free: 6.59 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06929/1.308, allocations: 15.53 MB / 0.6354 GB, free: 6.164 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007391/1.309, allocations: 63.42 kB / 0.6354 GB, free: 6.102 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003847/1.313, allocations: 231.8 kB / 0.6356 GB, free: 5.875 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008956/1.322, allocations: 2.548 MB / 0.6381 GB, free: 3.32 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0569/1.379, allocations: 13.11 MB / 0.6509 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1949/1.574, allocations: 57.3 MB / 0.7069 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03628/1.61, allocations: 6.399 MB / 0.7131 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01051/1.621, allocations: 3.451 MB / 0.7165 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8075/2.428, allocations: 11.63 MB / 0.7279 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001286/2.429, allocations: 66.31 kB / 0.7279 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=248): time 1.205e-05/2.429, allocations: 0 / 0.7279 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=343): time 0.2668/2.695, allocations: 39.13 MB / 0.7661 GB, free: 130.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/2.696, allocations: 246.5 kB / 0.7664 GB, free: 129.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01884/2.715, allocations: 5.698 MB / 0.7719 GB, free: 124.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001568/2.716, allocations: 81.7 kB / 0.772 GB, free: 124.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.006173/2.722, allocations: 4.339 MB / 0.7762 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.003811/2.726, allocations: 1.261 MB / 0.7775 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008504/2.735, allocations: 1.753 MB / 0.7792 GB, free: 116.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.392e-05/2.735, allocations: 309 kB / 0.7795 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01163/2.747, allocations: 4.089 MB / 0.7835 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01727/2.764, allocations: 8.675 MB / 0.792 GB, free: 101.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02647/2.791, allocations: 13.57 MB / 0.8052 GB, free: 85.64 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003841/2.791, allocations: 48 kB / 0.8052 GB, free: 85.59 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.05873/2.85, allocations: 16.39 MB / 0.8212 GB, free: 69.16 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002282/2.85, allocations: 75.98 kB / 0.8213 GB, free: 69.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004068/2.851, allocations: 156 kB / 0.8215 GB, free: 68.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02313/2.874, allocations: 4.276 MB / 0.8256 GB, free: 64.65 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01226/2.886, allocations: 1.903 MB / 0.8275 GB, free: 62.74 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0576/2.944, allocations: 21.54 MB / 0.8485 GB, free: 41.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0156/2.96, allocations: 0.5032 MB / 0.849 GB, free: 40.57 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003449/2.963, allocations: 484 kB / 0.8495 GB, free: 40.1 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 720 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (1031): * Single equations (assignments): 1027 * Array equations: 3 * 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 {(1,77,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01243/2.976, allocations: 3.126 MB / 0.8525 GB, free: 36.96 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002504/2.978, allocations: 0.5168 MB / 0.853 GB, free: 36.44 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03752/3.016, allocations: 10.11 MB / 0.8629 GB, free: 26.26 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001329/3.016, allocations: 36 kB / 0.863 GB, free: 26.23 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001174/3.016, allocations: 16 kB / 0.863 GB, free: 26.21 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001488/3.016, allocations: 15.94 kB / 0.863 GB, free: 26.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08155/3.098, allocations: 20.04 MB / 0.8826 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-05/3.098, allocations: 11.38 kB / 0.8826 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00414/3.102, allocations: 0.4993 MB / 0.8831 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02356/3.126, allocations: 3.839 MB / 0.8868 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001368/3.127, allocations: 60 kB / 0.8869 GB, free: 1.586 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05443/3.182, allocations: 19.09 MB / 0.9055 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.602e-05/3.182, allocations: 8 kB / 0.9055 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05631/3.238, allocations: 14.92 MB / 0.9201 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003989/3.242, allocations: 0.5724 MB / 0.9207 GB, free: 14.61 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003662/3.246, allocations: 60 kB / 0.9207 GB, free: 14.55 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009052/3.255, allocations: 243.4 kB / 0.9209 GB, free: 14.32 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002532/3.258, allocations: 226.2 kB / 0.9212 GB, free: 14.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008958/3.259, allocations: 88 kB / 0.9212 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.01501/3.274, allocations: 3.596 MB / 0.9248 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.363e-06/3.274, allocations: 0 / 0.9248 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01915/3.293, allocations: 1.766 MB / 0.9265 GB, free: 8.684 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 2 (revolute.phi,revolute.w) * 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 (261): * Single equations (assignments): 257 * Array equations: 3 * 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 {(1,64,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002108/3.295, allocations: 251.4 kB / 0.9267 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.03034/3.325, allocations: 9.857 MB / 0.9363 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-05/3.326, allocations: 0.8125 kB / 0.9363 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.01193/3.337, allocations: 3.793 MB / 0.94 GB, free: 10.78 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02085/3.358, allocations: 0.7393 MB / 0.9408 GB, free: 10.06 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7347/4.093, allocations: 16.48 MB / 0.9569 GB, free: 204.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02342/4.117, allocations: 4.794 MB / 0.9615 GB, free: 203.5 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00415/4.121, allocations: 405.3 kB / 0.9619 GB, free: 203.5 MB / 0.6231 GB Notification: Performance of SimCode: time 2.775e-06/4.121, allocations: 3.562 kB / 0.9619 GB, free: 203.5 MB / 0.6231 GB Notification: Performance of Templates: time 0.3368/4.458, allocations: 124.3 MB / 1.083 GB, free: 95.6 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches