Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 107.9 kB / 17.03 MB, free: 5.66 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.0009855/0.0009856, allocations: 190.9 kB / 17.96 MB, free: 5.066 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.405/1.405, allocations: 205.1 MB / 223.8 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1985/0.1985, allocations: 43.53 MB / 314.7 MB, free: 468 kB / 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.001572/0.001572, allocations: 73.36 kB / 384.2 MB, free: 56.31 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1067, allocations: 57.79 MB / 442 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01407/0.1208, allocations: 15.08 MB / 457 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.1309, allocations: 4.823 MB / 461.9 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002013/0.133, allocations: 95.75 kB / 462 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005673/0.1387, allocations: 3.165 MB / 465.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006688/0.1454, allocations: 2.56 MB / 467.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00236/0.1478, allocations: 0.9905 MB / 468.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009351/0.1572, allocations: 6.658 MB / 475.3 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007006/0.1642, allocations: 4.373 MB / 479.7 MB, free: 216 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004557/0.1688, allocations: 2.243 MB / 481.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005081/0.1739, allocations: 3.26 MB / 485.2 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001819/0.1757, allocations: 488 kB / 485.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003536/0.1793, allocations: 1.49 MB / 487.2 MB, free: 8.723 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004093/0.1834, allocations: 2.883 MB / 490.1 MB, free: 5.832 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006452/0.1899, allocations: 3.254 MB / 493.3 MB, free: 2.559 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01385/0.2037, allocations: 10.45 MB / 0.492 GB, free: 8.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.854e-06/0.2038, allocations: 0 / 0.492 GB, free: 8.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2038, allocations: 0 / 0.492 GB, free: 8.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004312/0.2042, allocations: 0 / 0.492 GB, free: 8.07 MB / 382.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.02143/0.2257, allocations: 7.318 MB / 0.4991 GB, free: 0.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.2257, allocations: 11.89 kB / 0.4991 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01647/0.2422, allocations: 3.931 MB / 0.503 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01136/0.2536, allocations: 4.29 MB / 0.5071 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003245/0.254, allocations: 316.4 kB / 0.5074 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001966/0.256, allocations: 435.5 kB / 0.5079 GB, free: 7.621 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03295/0.2889, allocations: 15.73 MB / 0.5232 GB, free: 6.957 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003005/0.2893, allocations: 59.52 kB / 0.5233 GB, free: 6.898 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001974/0.2913, allocations: 207.8 kB / 0.5235 GB, free: 6.695 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005421/0.2967, allocations: 3.212 MB / 0.5266 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2558/0.5525, allocations: 14.16 MB / 0.5404 GB, free: 76.79 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07123/0.6238, allocations: 57.51 MB / 0.5966 GB, free: 28.88 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01226/0.6361, allocations: 6.605 MB / 0.6031 GB, free: 22.04 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004188/0.6403, allocations: 3.758 MB / 0.6067 GB, free: 18.26 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0215/0.6619, allocations: 14.77 MB / 0.6211 GB, free: 3.074 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.6619, allocations: 64.44 kB / 0.6212 GB, free: 3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=292): time 5.249e-06/0.6619, allocations: 4 kB / 0.6212 GB, free: 2.996 MB / 414.1 MB Notification: Performance of matching and sorting (n=342): time 0.1405/0.8025, allocations: 42.54 MB / 0.6628 GB, free: 8.461 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.8026, allocations: 214 kB / 0.663 GB, free: 8.207 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01067/0.8133, allocations: 5.486 MB / 0.6683 GB, free: 2.734 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009457/0.8143, allocations: 69.7 kB / 0.6684 GB, free: 2.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003406/0.8177, allocations: 4.354 MB / 0.6726 GB, free: 14.24 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001686/0.8194, allocations: 1.268 MB / 0.6739 GB, free: 12.96 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00314/0.8225, allocations: 1.852 MB / 0.6757 GB, free: 11.09 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.8227, allocations: 305.1 kB / 0.676 GB, free: 10.79 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007282/0.83, allocations: 4.835 MB / 0.6807 GB, free: 5.945 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01173/0.8417, allocations: 9.831 MB / 0.6903 GB, free: 9.672 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02074/0.8625, allocations: 15.63 MB / 0.7056 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001486/0.8627, allocations: 48 kB / 0.7056 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04562/0.9083, allocations: 19.62 MB / 0.7248 GB, free: 3.852 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000158/0.9085, allocations: 80 kB / 0.7248 GB, free: 3.773 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002473/0.9087, allocations: 172 kB / 0.725 GB, free: 3.605 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2717/1.18, allocations: 5.935 MB / 0.7308 GB, free: 171.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00901/1.189, allocations: 2.126 MB / 0.7329 GB, free: 171.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03473/1.224, allocations: 26.16 MB / 0.7584 GB, free: 162 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007924/1.232, allocations: 0.5577 MB / 0.759 GB, free: 161.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001729/1.234, allocations: 0.5145 MB / 0.7595 GB, free: 161.7 MB / 0.5137 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.0055/1.239, allocations: 3.096 MB / 0.7625 GB, free: 160.4 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/1.241, allocations: 497.8 kB / 0.763 GB, free: 160.4 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02742/1.268, allocations: 13.02 MB / 0.7757 GB, free: 153.6 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001002/1.268, allocations: 55.98 kB / 0.7757 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.377e-05/1.268, allocations: 8 kB / 0.7758 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.756e-05/1.268, allocations: 15.95 kB / 0.7758 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04666/1.315, allocations: 24.63 MB / 0.7998 GB, free: 128.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-05/1.315, allocations: 4 kB / 0.7998 GB, free: 128.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003093/1.318, allocations: 0.585 MB / 0.8004 GB, free: 128 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01775/1.336, allocations: 4.969 MB / 0.8053 GB, free: 123 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007781/1.337, allocations: 58.88 kB / 0.8053 GB, free: 122.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02301/1.36, allocations: 21.34 MB / 0.8261 GB, free: 101.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/1.36, allocations: 8 kB / 0.8262 GB, free: 101.4 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03323/1.393, allocations: 17.59 MB / 0.8433 GB, free: 83.97 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004241/1.397, allocations: 1.249 MB / 0.8446 GB, free: 82.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001855/1.399, allocations: 52 kB / 0.8446 GB, free: 82.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004183/1.403, allocations: 267.3 kB / 0.8449 GB, free: 82.46 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001288/1.405, allocations: 191.6 kB / 0.845 GB, free: 82.28 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006348/1.405, allocations: 91.73 kB / 0.8451 GB, free: 82.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006732/1.412, allocations: 3.414 MB / 0.8485 GB, free: 78.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.5e-07/1.412, allocations: 2 kB / 0.8485 GB, free: 78.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01028/1.422, allocations: 1.76 MB / 0.8502 GB, free: 77.04 MB / 0.5137 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.001315/1.424, allocations: 212.4 kB / 0.8504 GB, free: 76.84 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01636/1.44, allocations: 11.05 MB / 0.8612 GB, free: 65.84 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/1.44, allocations: 0 / 0.8612 GB, free: 65.84 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005531/1.446, allocations: 4.136 MB / 0.8652 GB, free: 61.69 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005423/1.451, allocations: 0.6203 MB / 0.8658 GB, free: 61.09 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02963/1.481, allocations: 16.12 MB / 0.8816 GB, free: 44.89 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007101/1.488, allocations: 4.626 MB / 0.8861 GB, free: 40.25 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006622/1.495, allocations: 2.982 MB / 0.889 GB, free: 37.28 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00156/1.496, allocations: 351.4 kB / 0.8893 GB, free: 36.94 MB / 0.5137 GB Notification: Performance of SimCode: time 1.002e-06/1.496, allocations: 0 / 0.8893 GB, free: 36.94 MB / 0.5137 GB Notification: Performance of Templates: time 0.3212/1.817, allocations: 74.22 MB / 0.9618 GB, free: 148 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches