Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001338/0.001338, allocations: 118.8 kB / 17.78 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0016/0.0016, allocations: 201.2 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2517/0.2517, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 75.88 kB / 481.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4001/0.4017, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01571/0.4174, allocations: 15 MB / 0.5456 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01137/0.4288, allocations: 4.812 MB / 0.5503 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00309/0.432, allocations: 103.7 kB / 0.5504 GB, free: 13.77 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006255/0.4383, allocations: 3.146 MB / 0.5535 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008023/0.4463, allocations: 2.525 MB / 0.556 GB, free: 8.078 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002486/0.4488, allocations: 0.9788 MB / 0.5569 GB, free: 7.098 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01136/0.4602, allocations: 7.051 MB / 0.5638 GB, free: 40 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006448/0.4667, allocations: 4.375 MB / 0.5681 GB, free: 11.6 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004791/0.4715, allocations: 2.223 MB / 0.5702 GB, free: 9.367 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005198/0.4768, allocations: 3.24 MB / 0.5734 GB, free: 6.117 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001752/0.4785, allocations: 484 kB / 0.5739 GB, free: 5.645 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004423/0.483, allocations: 1.486 MB / 0.5753 GB, free: 4.156 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004378/0.4874, allocations: 2.868 MB / 0.5781 GB, free: 1.281 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006744/0.4941, allocations: 3.223 MB / 0.5813 GB, free: 14.04 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0145/0.5087, allocations: 10.37 MB / 0.5914 GB, free: 3.629 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.5087, allocations: 0 / 0.5914 GB, free: 3.629 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.5087, allocations: 0 / 0.5914 GB, free: 3.629 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004284/0.5091, allocations: 0 / 0.5914 GB, free: 3.629 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01862/0.5278, allocations: 7.272 MB / 0.5985 GB, free: 12.27 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.5278, allocations: 8.031 kB / 0.5985 GB, free: 12.26 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01716/0.545, allocations: 3.923 MB / 0.6023 GB, free: 8.324 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0108/0.5558, allocations: 4.134 MB / 0.6064 GB, free: 4.129 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003266/0.5562, allocations: 320.4 kB / 0.6067 GB, free: 3.812 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002277/0.5585, allocations: 439.5 kB / 0.6071 GB, free: 3.383 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02853/0.587, allocations: 15.73 MB / 0.6225 GB, free: 2.727 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001711/0.5872, allocations: 59.52 kB / 0.6225 GB, free: 2.668 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007092/0.5879, allocations: 203.8 kB / 0.6227 GB, free: 2.469 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005126/0.5931, allocations: 3.212 MB / 0.6259 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02785/0.6209, allocations: 14.16 MB / 0.6397 GB, free: 1.059 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0752/0.6962, allocations: 57.51 MB / 0.6958 GB, free: 5.98 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01364/0.7099, allocations: 6.589 MB / 0.7023 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00474/0.7147, allocations: 3.755 MB / 0.7059 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3573/1.072, allocations: 14.75 MB / 0.7204 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.26e-05/1.072, allocations: 69.83 kB / 0.7204 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=292): time 5.641e-06/1.072, allocations: 1.062 kB / 0.7204 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=342): time 0.143/1.215, allocations: 42.49 MB / 0.7619 GB, free: 134.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.13e-05/1.215, allocations: 210 kB / 0.7621 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006635/1.222, allocations: 5.465 MB / 0.7675 GB, free: 129.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008743/1.223, allocations: 69.7 kB / 0.7675 GB, free: 129.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00195/1.225, allocations: 4.348 MB / 0.7718 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001824/1.227, allocations: 1.264 MB / 0.773 GB, free: 123.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002544/1.229, allocations: 1.848 MB / 0.7748 GB, free: 121.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.715e-05/1.229, allocations: 309.1 kB / 0.7751 GB, free: 121.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005697/1.235, allocations: 4.835 MB / 0.7798 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007665/1.243, allocations: 9.833 MB / 0.7894 GB, free: 104.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01521/1.258, allocations: 15.62 MB / 0.8047 GB, free: 86.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001389/1.258, allocations: 48 kB / 0.8047 GB, free: 86.05 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04347/1.301, allocations: 19.61 MB / 0.8239 GB, free: 66.39 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/1.302, allocations: 78.06 kB / 0.824 GB, free: 66.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001576/1.302, allocations: 180 kB / 0.8241 GB, free: 66.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02233/1.324, allocations: 5.942 MB / 0.8299 GB, free: 60.19 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008033/1.332, allocations: 2.129 MB / 0.832 GB, free: 58.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02793/1.36, allocations: 26.16 MB / 0.8576 GB, free: 31.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007462/1.368, allocations: 0.5616 MB / 0.8581 GB, free: 31.04 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001086/1.369, allocations: 0.5039 MB / 0.8586 GB, free: 30.54 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1099): * Single equations (assignments): 1091 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004195/1.373, allocations: 3.101 MB / 0.8616 GB, free: 27.43 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008459/1.374, allocations: 497.5 kB / 0.8621 GB, free: 26.93 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02886/1.403, allocations: 13.01 MB / 0.8748 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001139/1.403, allocations: 59.34 kB / 0.8749 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.332e-05/1.403, allocations: 11.98 kB / 0.8749 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.384e-05/1.403, allocations: 15.95 kB / 0.8749 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05051/1.454, allocations: 24.61 MB / 0.8989 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-05/1.454, allocations: 6.531 kB / 0.8989 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003283/1.457, allocations: 0.585 MB / 0.8995 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02097/1.478, allocations: 4.97 MB / 0.9044 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001036/1.479, allocations: 61.48 kB / 0.9044 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02981/1.509, allocations: 21.33 MB / 0.9252 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.335e-05/1.509, allocations: 15.88 kB / 0.9253 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03928/1.548, allocations: 17.59 MB / 0.9424 GB, free: 7.66 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002283/1.551, allocations: 0.5297 MB / 0.943 GB, free: 7.105 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00191/1.552, allocations: 54.58 kB / 0.943 GB, free: 7.055 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004296/1.557, allocations: 267.6 kB / 0.9433 GB, free: 6.793 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001129/1.558, allocations: 197.6 kB / 0.9434 GB, free: 6.602 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002993/1.558, allocations: 90.97 kB / 0.9435 GB, free: 6.516 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.006149/1.564, allocations: 3.39 MB / 0.9468 GB, free: 3.145 MB / 0.6231 GB Notification: Performance of sort global known variables: time 7.51e-07/1.564, allocations: 0 / 0.9468 GB, free: 3.145 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.3923/1.957, allocations: 1.736 MB / 0.9485 GB, free: 206.5 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001338/1.958, allocations: 202.9 kB / 0.9487 GB, free: 206.4 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01802/1.976, allocations: 11.04 MB / 0.9595 GB, free: 204.2 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.555e-05/1.976, allocations: 5.406 kB / 0.9595 GB, free: 204.1 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005562/1.982, allocations: 4.137 MB / 0.9636 GB, free: 202.4 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003674/1.985, allocations: 0.6146 MB / 0.9642 GB, free: 202.1 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02652/2.012, allocations: 16.08 MB / 0.9799 GB, free: 195.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005374/2.017, allocations: 4.618 MB / 0.9844 GB, free: 193.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.006352/2.024, allocations: 2.98 MB / 0.9873 GB, free: 192.3 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001561/2.025, allocations: 353.8 kB / 0.9876 GB, free: 192 MB / 0.6231 GB Notification: Performance of SimCode: time 1.182e-06/2.025, allocations: 0 / 0.9876 GB, free: 192 MB / 0.6231 GB Notification: Performance of Templates: time 0.113/2.138, allocations: 77.39 MB / 1.063 GB, free: 116.4 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches