Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 97.61 kB / 15.98 MB, free: 6.352 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.001188/0.001188, allocations: 198.8 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.822/1.822, allocations: 205.1 MB / 222.8 MB, free: 4.691 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4451/0.4451, allocations: 43.5 MB / 313.6 MB, free: 8.477 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 67.91 kB / 382.2 MB, free: 8.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1559, allocations: 57.78 MB / 440 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3409/0.4969, allocations: 47.06 MB / 487.1 MB, free: 21.94 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02544/0.5224, allocations: 10.02 MB / 497.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01306/0.5355, allocations: 203.2 kB / 497.3 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005591/0.5412, allocations: 2.63 MB / 499.9 MB, free: 14.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00723/0.5485, allocations: 1.883 MB / 0.49 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002489/0.551, allocations: 0.8629 MB / 0.4909 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.5618, allocations: 5.476 MB / 0.4962 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006978/0.5689, allocations: 3.562 MB / 0.4997 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004924/0.5739, allocations: 1.781 MB / 0.5014 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006339/0.5802, allocations: 2.804 MB / 0.5042 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00293/0.5832, allocations: 384.9 kB / 0.5045 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006055/0.5893, allocations: 1.42 MB / 0.5059 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004774/0.5941, allocations: 2.228 MB / 0.5081 GB, free: 6.688 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007562/0.6017, allocations: 2.48 MB / 0.5105 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01519/0.6169, allocations: 7.713 MB / 0.5181 GB, free: 380 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.437e-05/0.617, allocations: 0 / 0.5181 GB, free: 380 kB / 382.1 MB Notification: Performance of FrontEnd: time 4.479e-06/0.617, allocations: 0 / 0.5181 GB, free: 380 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004843/0.6175, allocations: 2.375 kB / 0.5181 GB, free: 380 kB / 382.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.02109/0.6386, allocations: 5.532 MB / 0.5235 GB, free: 11.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.024e-05/0.6387, allocations: 11.89 kB / 0.5235 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01284/0.6515, allocations: 2.479 MB / 0.5259 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009748/0.6613, allocations: 3.454 MB / 0.5293 GB, free: 5.793 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003006/0.6617, allocations: 242.7 kB / 0.5295 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002149/0.6639, allocations: 339.6 kB / 0.5298 GB, free: 5.223 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02503/0.6889, allocations: 10.87 MB / 0.5404 GB, free: 9.609 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002047/0.6892, allocations: 51.58 kB / 0.5405 GB, free: 9.559 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005194/0.6897, allocations: 155.9 kB / 0.5406 GB, free: 9.406 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003297/0.693, allocations: 1.994 MB / 0.5426 GB, free: 7.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02235/0.7154, allocations: 9.448 MB / 0.5518 GB, free: 13.94 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06276/0.7782, allocations: 41.25 MB / 0.5921 GB, free: 3.492 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01189/0.7902, allocations: 4.267 MB / 0.5963 GB, free: 15.08 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003152/0.7934, allocations: 1.934 MB / 0.5982 GB, free: 13.14 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01508/0.8085, allocations: 7.606 MB / 0.6056 GB, free: 5.164 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.15e-05/0.8086, allocations: 59.48 kB / 0.6056 GB, free: 5.094 MB / 478.1 MB Notification: Performance of pre-optimization done (n=180): time 9.517e-06/0.8086, allocations: 0 / 0.6056 GB, free: 5.094 MB / 478.1 MB Notification: Performance of matching and sorting (n=236): time 0.4242/1.233, allocations: 40.96 MB / 0.6456 GB, free: 139.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/1.233, allocations: 205.3 kB / 0.6458 GB, free: 139.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006936/1.24, allocations: 4.337 MB / 0.6501 GB, free: 137.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007577/1.241, allocations: 60.55 kB / 0.6501 GB, free: 137.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002547/1.243, allocations: 3.165 MB / 0.6532 GB, free: 135 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001349/1.245, allocations: 0.8814 MB / 0.6541 GB, free: 134.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002378/1.247, allocations: 1.352 MB / 0.6554 GB, free: 133.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.141e-05/1.247, allocations: 306.7 kB / 0.6557 GB, free: 133.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006053/1.253, allocations: 3.629 MB / 0.6592 GB, free: 132.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007366/1.26, allocations: 7.294 MB / 0.6664 GB, free: 125.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01534/1.276, allocations: 11.63 MB / 0.6777 GB, free: 117.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001995/1.276, allocations: 35.75 kB / 0.6778 GB, free: 117.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03775/1.314, allocations: 16.2 MB / 0.6936 GB, free: 112.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.386e-05/1.314, allocations: 60.25 kB / 0.6936 GB, free: 112.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001204/1.314, allocations: 127.3 kB / 0.6938 GB, free: 112.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02061/1.335, allocations: 6.231 MB / 0.6998 GB, free: 106.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006393/1.341, allocations: 1.493 MB / 0.7013 GB, free: 105.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03488/1.376, allocations: 27.65 MB / 0.7283 GB, free: 77.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01057/1.387, allocations: 407.3 kB / 0.7287 GB, free: 77.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002231/1.389, allocations: 384 kB / 0.7291 GB, free: 76.72 MB / 494.1 MB 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.007939/1.397, allocations: 2.224 MB / 0.7312 GB, free: 74.49 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00198/1.399, allocations: 391.8 kB / 0.7316 GB, free: 74.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03063/1.43, allocations: 11.29 MB / 0.7426 GB, free: 62.78 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.138e-05/1.43, allocations: 27.94 kB / 0.7427 GB, free: 62.75 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.846e-05/1.43, allocations: 12 kB / 0.7427 GB, free: 62.74 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.324e-05/1.43, allocations: 11.95 kB / 0.7427 GB, free: 62.73 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04569/1.476, allocations: 20.71 MB / 0.7629 GB, free: 41.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.124e-05/1.476, allocations: 8 kB / 0.7629 GB, free: 41.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002098/1.478, allocations: 385.2 kB / 0.7633 GB, free: 41.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02218/1.5, allocations: 5.316 MB / 0.7685 GB, free: 35.91 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001029/1.501, allocations: 39.98 kB / 0.7685 GB, free: 35.87 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04132/1.542, allocations: 22.71 MB / 0.7907 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.104e-05/1.543, allocations: 7.938 kB / 0.7907 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04536/1.588, allocations: 14.61 MB / 0.805 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005152/1.593, allocations: 0.9762 MB / 0.8059 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002351/1.596, allocations: 39.98 kB / 0.806 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005072/1.601, allocations: 179.7 kB / 0.8061 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001116/1.602, allocations: 157 kB / 0.8063 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00027/1.602, allocations: 67.92 kB / 0.8063 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0054/1.607, allocations: 2.729 MB / 0.809 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.304e-06/1.608, allocations: 3.938 kB / 0.809 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.3155/1.923, allocations: 1.369 MB / 0.8103 GB, free: 147.3 MB / 0.4981 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.0008543/1.924, allocations: 182.1 kB / 0.8105 GB, free: 147.2 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01625/1.94, allocations: 9.727 MB / 0.82 GB, free: 146.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-05/1.94, allocations: 3.25 kB / 0.82 GB, free: 146.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004797/1.945, allocations: 3.211 MB / 0.8232 GB, free: 145.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004032/1.949, allocations: 0.5088 MB / 0.8237 GB, free: 145.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02592/1.975, allocations: 14.08 MB / 0.8374 GB, free: 138.1 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005204/1.98, allocations: 3.525 MB / 0.8409 GB, free: 136.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005801/1.986, allocations: 1.961 MB / 0.8428 GB, free: 136.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/1.987, allocations: 263 kB / 0.843 GB, free: 136.6 MB / 0.4981 GB Notification: Performance of SimCode: time 1.122e-06/1.987, allocations: 0 / 0.843 GB, free: 136.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.1215/2.109, allocations: 70.22 MB / 0.9116 GB, free: 87.99 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches