Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 109.4 kB / 17.21 MB, free: 6.27 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.001892/0.001892, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 222.9 MB / 241.8 MB, free: 13.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2104/0.2104, allocations: 44.16 MB / 336.1 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 64.67 kB / 407.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1331, allocations: 60.82 MB / 468.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.3793/0.5124, allocations: 62.35 MB / 0.5184 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04593/0.5584, allocations: 12.94 MB / 0.5311 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02057/0.579, allocations: 280.6 kB / 0.5313 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0078/0.5869, allocations: 3.738 MB / 0.535 GB, free: 5.047 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007086/0.594, allocations: 2.055 MB / 0.537 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002875/0.5969, allocations: 0.9889 MB / 0.5379 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0114/0.6084, allocations: 9.104 MB / 0.5468 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009264/0.6177, allocations: 4.445 MB / 0.5512 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005651/0.6234, allocations: 1.798 MB / 0.5529 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005687/0.6291, allocations: 2.947 MB / 0.5558 GB, free: 7.641 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001818/0.6309, allocations: 296 kB / 0.5561 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004528/0.6355, allocations: 1.403 MB / 0.5575 GB, free: 6 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004053/0.6396, allocations: 2.36 MB / 0.5598 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007356/0.6469, allocations: 2.662 MB / 0.5624 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01249/0.6595, allocations: 8.459 MB / 0.5706 GB, free: 8.73 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.353e-06/0.6595, allocations: 0 / 0.5706 GB, free: 8.73 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.6595, allocations: 0 / 0.5706 GB, free: 8.73 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003885/0.6599, allocations: 4 kB / 0.5706 GB, free: 8.727 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01878/0.6787, allocations: 6.25 MB / 0.5767 GB, free: 2.512 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.6788, allocations: 12.03 kB / 0.5767 GB, free: 2.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01211/0.6909, allocations: 2.52 MB / 0.5792 GB, free: 15.97 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0106/0.7015, allocations: 3.926 MB / 0.583 GB, free: 12.04 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003403/0.7019, allocations: 289.2 kB / 0.5833 GB, free: 11.79 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001823/0.7038, allocations: 394.9 kB / 0.5837 GB, free: 11.45 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02317/0.727, allocations: 12 MB / 0.5954 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001824/0.7272, allocations: 59.44 kB / 0.5955 GB, free: 14.71 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000526/0.7277, allocations: 178.5 kB / 0.5956 GB, free: 14.57 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003356/0.7311, allocations: 2.143 MB / 0.5977 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02255/0.7536, allocations: 10.36 MB / 0.6079 GB, free: 2.07 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06731/0.821, allocations: 47.49 MB / 0.6542 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01488/0.8359, allocations: 5.828 MB / 0.6599 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004146/0.8401, allocations: 2.976 MB / 0.6628 GB, free: 8.52 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01444/0.8546, allocations: 8.87 MB / 0.6715 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.84e-05/0.8547, allocations: 63.81 kB / 0.6716 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=206): time 4.549e-06/0.8547, allocations: 0 / 0.6716 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of matching and sorting (n=262): time 0.3794/1.234, allocations: 34.93 MB / 0.7057 GB, free: 190.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/1.234, allocations: 207.2 kB / 0.7059 GB, free: 189.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01119/1.245, allocations: 4.77 MB / 0.7105 GB, free: 188.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006606/1.246, allocations: 61.61 kB / 0.7106 GB, free: 188.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002844/1.249, allocations: 3.541 MB / 0.714 GB, free: 186.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001624/1.251, allocations: 0.9742 MB / 0.715 GB, free: 185.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00394/1.255, allocations: 1.422 MB / 0.7164 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.913e-05/1.255, allocations: 305.9 kB / 0.7167 GB, free: 184.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006985/1.262, allocations: 3.17 MB / 0.7198 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01038/1.272, allocations: 7.05 MB / 0.7267 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01507/1.287, allocations: 10.95 MB / 0.7373 GB, free: 169 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002352/1.288, allocations: 38.12 kB / 0.7374 GB, free: 169 MB / 0.5294 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.04326/1.331, allocations: 13.75 MB / 0.7508 GB, free: 161.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003546/1.331, allocations: 64.25 kB / 0.7509 GB, free: 161.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003351/1.332, allocations: 136 kB / 0.751 GB, free: 161.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01518/1.347, allocations: 4.392 MB / 0.7553 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005005/1.352, allocations: 1.474 MB / 0.7567 GB, free: 155.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03402/1.386, allocations: 26.85 MB / 0.7829 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006848/1.393, allocations: 403.3 kB / 0.7833 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001481/1.394, allocations: 412 kB / 0.7837 GB, free: 127.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (798): * Single equations (assignments): 792 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.005703/1.4, allocations: 2.475 MB / 0.7861 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/1.401, allocations: 435 kB / 0.7866 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01665/1.418, allocations: 8.486 MB / 0.7948 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.392e-05/1.418, allocations: 32 kB / 0.7949 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-05/1.418, allocations: 15.94 kB / 0.7949 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.849e-05/1.418, allocations: 15.95 kB / 0.7949 GB, free: 116.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04796/1.466, allocations: 17.07 MB / 0.8116 GB, free: 98.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-05/1.467, allocations: 8 kB / 0.8116 GB, free: 98.96 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00237/1.469, allocations: 303.5 kB / 0.8119 GB, free: 98.67 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0163/1.485, allocations: 4.093 MB / 0.8159 GB, free: 94.57 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009611/1.486, allocations: 51.98 kB / 0.8159 GB, free: 94.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03245/1.519, allocations: 25.65 MB / 0.841 GB, free: 68.46 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/1.519, allocations: 8 kB / 0.841 GB, free: 68.46 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02162/1.54, allocations: 12.43 MB / 0.8531 GB, free: 55.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001854/1.542, allocations: 499.2 kB / 0.8536 GB, free: 55.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001808/1.544, allocations: 47.2 kB / 0.8536 GB, free: 55.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003255/1.547, allocations: 171.8 kB / 0.8538 GB, free: 55.16 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00107/1.549, allocations: 202 kB / 0.854 GB, free: 54.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003784/1.549, allocations: 68 kB / 0.8541 GB, free: 54.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006067/1.555, allocations: 3.013 MB / 0.857 GB, free: 51.89 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.91e-07/1.555, allocations: 0 / 0.857 GB, free: 51.89 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008496/1.564, allocations: 1.462 MB / 0.8584 GB, free: 50.43 MB / 0.5294 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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008357/1.564, allocations: 189 kB / 0.8586 GB, free: 50.25 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01365/1.578, allocations: 8.424 MB / 0.8668 GB, free: 41.81 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/1.578, allocations: 192 / 0.8668 GB, free: 41.81 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00626/1.584, allocations: 3.568 MB / 0.8703 GB, free: 38.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006371/1.591, allocations: 0.5519 MB / 0.8709 GB, free: 37.64 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02572/1.617, allocations: 14.98 MB / 0.8855 GB, free: 22.59 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005708/1.622, allocations: 3.923 MB / 0.8893 GB, free: 18.63 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004954/1.627, allocations: 2.003 MB / 0.8913 GB, free: 16.62 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008536/1.628, allocations: 279.4 kB / 0.8915 GB, free: 16.35 MB / 0.5294 GB Notification: Performance of SimCode: time 9.42e-07/1.628, allocations: 4 kB / 0.8915 GB, free: 16.35 MB / 0.5294 GB Notification: Performance of Templates: time 0.3476/1.976, allocations: 69.85 MB / 0.9598 GB, free: 134.1 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches