Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001666/0.001666, allocations: 117.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001978/0.001978, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2466/0.2466, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 75.88 kB / 481.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4198/0.4212, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01634/0.4376, allocations: 12.02 MB / 0.5427 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009848/0.4474, allocations: 4.308 MB / 0.5469 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00217/0.4496, allocations: 77.66 kB / 0.547 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00542/0.4551, allocations: 2.724 MB / 0.5497 GB, free: 14.56 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005634/0.4608, allocations: 2.035 MB / 0.5516 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002367/0.4632, allocations: 0.9163 MB / 0.5525 GB, free: 11.6 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007868/0.4711, allocations: 5.672 MB / 0.5581 GB, free: 5.918 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005376/0.4765, allocations: 3.362 MB / 0.5614 GB, free: 2.508 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004054/0.4805, allocations: 1.705 MB / 0.563 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004401/0.485, allocations: 2.516 MB / 0.5655 GB, free: 14.27 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001792/0.4868, allocations: 388 kB / 0.5659 GB, free: 13.89 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003955/0.4907, allocations: 1.397 MB / 0.5672 GB, free: 12.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003258/0.494, allocations: 2.202 MB / 0.5694 GB, free: 10.29 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004375/0.4984, allocations: 2.424 MB / 0.5717 GB, free: 7.852 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01168/0.5101, allocations: 7.847 MB / 0.5794 GB, free: 15.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.5102, allocations: 0 / 0.5794 GB, free: 15.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5102, allocations: 0 / 0.5794 GB, free: 15.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003215/0.5105, allocations: 0 / 0.5794 GB, free: 15.98 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01738/0.5279, allocations: 5.494 MB / 0.5848 GB, free: 10.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.875e-05/0.528, allocations: 8.031 kB / 0.5848 GB, free: 10.4 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01134/0.5393, allocations: 2.463 MB / 0.5872 GB, free: 7.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008628/0.548, allocations: 3.375 MB / 0.5905 GB, free: 4.496 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00024/0.5483, allocations: 242.4 kB / 0.5907 GB, free: 4.258 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001529/0.5498, allocations: 335.6 kB / 0.591 GB, free: 3.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02136/0.5712, allocations: 10.88 MB / 0.6016 GB, free: 8.305 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002009/0.5714, allocations: 59.48 kB / 0.6017 GB, free: 8.246 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005442/0.572, allocations: 147.9 kB / 0.6018 GB, free: 8.102 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003436/0.5754, allocations: 2.002 MB / 0.6038 GB, free: 6.094 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02005/0.5955, allocations: 9.444 MB / 0.613 GB, free: 12.63 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05582/0.6514, allocations: 41.04 MB / 0.6531 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01144/0.6629, allocations: 4.274 MB / 0.6573 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003163/0.6661, allocations: 1.934 MB / 0.6592 GB, free: 12 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01458/0.6807, allocations: 7.594 MB / 0.6666 GB, free: 4.031 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.226e-05/0.6808, allocations: 51.56 kB / 0.6666 GB, free: 3.969 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 5.45e-06/0.6808, allocations: 0 / 0.6666 GB, free: 3.969 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1595/0.8403, allocations: 40.91 MB / 0.7066 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.8405, allocations: 213.8 kB / 0.7068 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006632/0.8471, allocations: 4.305 MB / 0.711 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006934/0.8479, allocations: 65.7 kB / 0.7111 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002463/0.8503, allocations: 3.16 MB / 0.7141 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001353/0.8517, allocations: 0.8791 MB / 0.715 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002097/0.8538, allocations: 1.36 MB / 0.7163 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.8539, allocations: 305.1 kB / 0.7166 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.382/1.236, allocations: 3.626 MB / 0.7202 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007699/1.244, allocations: 7.294 MB / 0.7273 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01202/1.256, allocations: 11.62 MB / 0.7386 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001631/1.256, allocations: 35.12 kB / 0.7387 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03552/1.291, allocations: 16.21 MB / 0.7545 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.195e-05/1.292, allocations: 56.97 kB / 0.7546 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/1.292, allocations: 132 kB / 0.7547 GB, free: 140.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02101/1.313, allocations: 6.225 MB / 0.7608 GB, free: 134.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004755/1.318, allocations: 1.493 MB / 0.7622 GB, free: 132.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02915/1.347, allocations: 27.62 MB / 0.7892 GB, free: 105 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006228/1.353, allocations: 418.8 kB / 0.7896 GB, free: 104.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001562/1.355, allocations: 387.9 kB / 0.79 GB, free: 104.2 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (779): * Single equations (assignments): 774 * Array equations: 3 * 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 {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004637/1.359, allocations: 2.214 MB / 0.7921 GB, free: 102.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000905/1.36, allocations: 388.8 kB / 0.7925 GB, free: 101.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02575/1.386, allocations: 11.3 MB / 0.8035 GB, free: 90.57 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-05/1.386, allocations: 24 kB / 0.8035 GB, free: 90.55 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-05/1.386, allocations: 12 kB / 0.8036 GB, free: 90.54 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.566e-05/1.386, allocations: 11.95 kB / 0.8036 GB, free: 90.52 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03764/1.424, allocations: 20.66 MB / 0.8237 GB, free: 69.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.889e-05/1.424, allocations: 8 kB / 0.8237 GB, free: 69.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001907/1.426, allocations: 387.4 kB / 0.8241 GB, free: 69.12 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01843/1.444, allocations: 5.31 MB / 0.8293 GB, free: 63.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004652/1.445, allocations: 40 kB / 0.8293 GB, free: 63.77 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02425/1.469, allocations: 22.69 MB / 0.8515 GB, free: 40.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/1.469, allocations: 11.94 kB / 0.8515 GB, free: 40.86 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0288/1.498, allocations: 14.61 MB / 0.8658 GB, free: 26.16 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001308/1.499, allocations: 451.9 kB / 0.8662 GB, free: 25.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008111/1.5, allocations: 36 kB / 0.8662 GB, free: 25.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002274/1.502, allocations: 183.7 kB / 0.8664 GB, free: 25.48 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007481/1.503, allocations: 157.4 kB / 0.8666 GB, free: 25.33 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002066/1.503, allocations: 61.31 kB / 0.8666 GB, free: 25.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003607/1.507, allocations: 2.701 MB / 0.8693 GB, free: 22.56 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/1.507, allocations: 0 / 0.8693 GB, free: 22.56 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006139/1.513, allocations: 1.354 MB / 0.8706 GB, free: 21.21 MB / 0.5606 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005579/1.514, allocations: 203.2 kB / 0.8708 GB, free: 21.02 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01158/1.525, allocations: 8.346 MB / 0.8789 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.436e-05/1.525, allocations: 4.375 kB / 0.8789 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004034/1.529, allocations: 3.212 MB / 0.8821 GB, free: 9.461 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003439/1.533, allocations: 0.5058 MB / 0.8826 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01862/1.551, allocations: 11.82 MB / 0.8941 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003994/1.555, allocations: 3.499 MB / 0.8975 GB, free: 9.535 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004734/1.56, allocations: 1.956 MB / 0.8994 GB, free: 7.574 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001189/1.561, allocations: 275.4 kB / 0.8997 GB, free: 7.305 MB / 0.5762 GB Notification: Performance of SimCode: time 1.092e-06/1.561, allocations: 0 / 0.8997 GB, free: 7.305 MB / 0.5762 GB Notification: Performance of Templates: time 0.4573/2.019, allocations: 66.65 MB / 0.9648 GB, free: 211.3 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches