Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009958/0.0009958, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 226.6 MB / 243.1 MB, free: 14.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008117/0.0008117, allocations: 106.1 kB / 295.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1873/0.1873, allocations: 44.84 MB / 392 MB, free: 9.305 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002312/0.0002312, allocations: 4 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09819/0.09844, allocations: 62.95 MB / 0.5153 GB, free: 2.766 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.2429/0.3414, allocations: 62.08 MB / 0.5759 GB, free: 15.48 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03081/0.3722, allocations: 13.6 MB / 0.5892 GB, free: 1.852 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0131/0.3854, allocations: 299.2 kB / 0.5895 GB, free: 1.559 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01075/0.3962, allocations: 3.196 MB / 0.5926 GB, free: 14.35 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02615/0.4224, allocations: 9.564 MB / 0.602 GB, free: 4.75 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005521/0.4279, allocations: 1.169 MB / 0.6031 GB, free: 3.582 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.09967/0.5276, allocations: 91.98 MB / 0.6929 GB, free: 7.484 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01213/0.5398, allocations: 8.134 MB / 0.7009 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004169/0.544, allocations: 2.148 MB / 0.703 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004861/0.5489, allocations: 3.357 MB / 0.7063 GB, free: 9.75 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.001232/0.5501, allocations: 240 kB / 0.7065 GB, free: 9.516 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003166/0.5533, allocations: 1.229 MB / 0.7077 GB, free: 8.285 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.003721/0.5571, allocations: 2.844 MB / 0.7105 GB, free: 5.434 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.002252/0.5593, allocations: 1.306 MB / 0.7117 GB, free: 4.117 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.2207/0.7801, allocations: 9.335 MB / 0.7209 GB, free: 98.87 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.7801, allocations: 0.8438 kB / 0.7209 GB, free: 98.87 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.886e-06/0.7801, allocations: 0 / 0.7209 GB, free: 98.87 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000381/0.7805, allocations: 0 / 0.7209 GB, free: 98.87 MB / 0.5105 GB 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.01624/0.7968, allocations: 6.615 MB / 0.7273 GB, free: 96.12 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.7968, allocations: 12.56 kB / 0.7273 GB, free: 96.12 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01541/0.8122, allocations: 3.115 MB / 0.7304 GB, free: 95.69 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01138/0.8236, allocations: 4.839 MB / 0.7351 GB, free: 94.93 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003357/0.824, allocations: 382.5 kB / 0.7355 GB, free: 94.92 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002162/0.8262, allocations: 0.5104 MB / 0.736 GB, free: 94.91 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02786/0.854, allocations: 15.52 MB / 0.7511 GB, free: 91.99 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002336/0.8543, allocations: 65.55 kB / 0.7512 GB, free: 91.98 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001181/0.8555, allocations: 229.9 kB / 0.7514 GB, free: 91.98 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003373/0.8589, allocations: 2.549 MB / 0.7539 GB, free: 91.46 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02422/0.8831, allocations: 13.09 MB / 0.7667 GB, free: 85.88 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06083/0.944, allocations: 57.53 MB / 0.8228 GB, free: 38.38 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01481/0.9589, allocations: 6.402 MB / 0.8291 GB, free: 32.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003695/0.9626, allocations: 3.448 MB / 0.8325 GB, free: 29.25 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01555/0.9782, allocations: 11.57 MB / 0.8438 GB, free: 17.34 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.9783, allocations: 59.75 kB / 0.8438 GB, free: 17.28 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=248): time 5.19e-06/0.9783, allocations: 0 / 0.8438 GB, free: 17.28 MB / 0.5105 GB Notification: Performance of matching and sorting (n=343): time 0.1259/1.104, allocations: 39.59 MB / 0.8825 GB, free: 9.723 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/1.104, allocations: 242.8 kB / 0.8827 GB, free: 9.438 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00864/1.113, allocations: 5.669 MB / 0.8883 GB, free: 3.789 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0009899/1.114, allocations: 77.7 kB / 0.8883 GB, free: 3.707 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.003339/1.117, allocations: 4.352 MB / 0.8926 GB, free: 15.38 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001764/1.119, allocations: 1.255 MB / 0.8938 GB, free: 14.13 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006184/1.12, allocations: 176 kB / 0.894 GB, free: 13.96 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0004943/1.12, allocations: 0.6752 MB / 0.8946 GB, free: 13.28 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006525/1.127, allocations: 4.046 MB / 0.8986 GB, free: 9.223 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01017/1.137, allocations: 8.635 MB / 0.907 GB, free: 14.43 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009362/1.146, allocations: 5.78 MB / 0.9127 GB, free: 8.777 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000109/1.147, allocations: 47.78 kB / 0.9127 GB, free: 8.734 MB / 0.573 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.03345/1.18, allocations: 16.32 MB / 0.9286 GB, free: 9.363 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001134/1.18, allocations: 72 kB / 0.9287 GB, free: 9.293 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002073/1.18, allocations: 156 kB / 0.9289 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01405/1.195, allocations: 4.31 MB / 0.9331 GB, free: 4.828 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006503/1.201, allocations: 1.901 MB / 0.9349 GB, free: 3.086 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2327/1.434, allocations: 20.15 MB / 0.9546 GB, free: 221.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007126/1.441, allocations: 0.5052 MB / 0.9551 GB, free: 221.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001672/1.443, allocations: 487.8 kB / 0.9556 GB, free: 221.5 MB / 0.5886 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005383/1.448, allocations: 3.124 MB / 0.9586 GB, free: 220.3 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009657/1.449, allocations: 0.5208 MB / 0.9591 GB, free: 220.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01794/1.467, allocations: 10.08 MB / 0.969 GB, free: 216.9 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.742e-05/1.467, allocations: 35.16 kB / 0.969 GB, free: 216.9 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/1.467, allocations: 15.75 kB / 0.969 GB, free: 216.9 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.99e-05/1.467, allocations: 19.03 kB / 0.969 GB, free: 216.9 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03268/1.5, allocations: 20.12 MB / 0.9887 GB, free: 207.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.499e-05/1.5, allocations: 11.22 kB / 0.9887 GB, free: 207.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002174/1.502, allocations: 0.4948 MB / 0.9892 GB, free: 207.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01107/1.513, allocations: 3.84 MB / 0.9929 GB, free: 203.4 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000542/1.514, allocations: 66.91 kB / 0.993 GB, free: 203.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02028/1.534, allocations: 17.79 MB / 1.01 GB, free: 185.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.345e-06/1.534, allocations: 13.44 kB / 1.01 GB, free: 185.6 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0221/1.556, allocations: 14.87 MB / 1.025 GB, free: 170.8 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002163/1.558, allocations: 0.5801 MB / 1.025 GB, free: 170.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001842/1.56, allocations: 60.88 kB / 1.026 GB, free: 170.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003007/1.563, allocations: 239.4 kB / 1.026 GB, free: 169.9 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005378/1.564, allocations: 224.4 kB / 1.026 GB, free: 169.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000238/1.564, allocations: 103.8 kB / 1.026 GB, free: 169.6 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.004271/1.568, allocations: 3.565 MB / 1.03 GB, free: 166.1 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.6e-07/1.568, allocations: 0 / 1.03 GB, free: 166.1 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.006477/1.575, allocations: 1.787 MB / 1.031 GB, free: 164.3 MB / 0.5886 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005924/1.575, allocations: 237 kB / 1.032 GB, free: 164.1 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01157/1.587, allocations: 9.767 MB / 1.041 GB, free: 154.4 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/1.587, allocations: 6.516 kB / 1.041 GB, free: 154.4 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004218/1.591, allocations: 3.78 MB / 1.045 GB, free: 150.6 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003938/1.595, allocations: 0.6987 MB / 1.045 GB, free: 149.9 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02164/1.617, allocations: 19.08 MB / 1.064 GB, free: 130.8 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004306/1.621, allocations: 4.786 MB / 1.069 GB, free: 126 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001607/1.623, allocations: 407.4 kB / 1.069 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of SimCode: time 1.293e-06/1.623, allocations: 0 / 1.069 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of Templates: time 0.3145/1.937, allocations: 121.9 MB / 1.188 GB, free: 222.2 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches