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.001156/0.001156, allocations: 115.9 kB / 17.08 MB, free: 5.992 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.001164/0.001164, allocations: 193.2 kB / 18.01 MB, free: 5.07 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.414/1.414, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.2069/0.2069, allocations: 43.52 MB / 314.8 MB, free: 456 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.001465/0.001465, allocations: 67.91 kB / 442.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1205, allocations: 57.78 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.02231/0.1429, allocations: 15.11 MB / 0.5033 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01499/0.1579, allocations: 4.827 MB / 0.508 GB, free: 7.793 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003874/0.1619, allocations: 91.75 kB / 0.5081 GB, free: 7.703 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009029/0.171, allocations: 3.165 MB / 0.5112 GB, free: 4.527 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009753/0.1808, allocations: 2.56 MB / 0.5137 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003076/0.1839, allocations: 0.9866 MB / 0.5146 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01079/0.1947, allocations: 6.643 MB / 0.5211 GB, free: 10.31 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006184/0.201, allocations: 4.381 MB / 0.5254 GB, free: 5.855 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00454/0.2055, allocations: 2.239 MB / 0.5276 GB, free: 3.609 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005379/0.2109, allocations: 3.267 MB / 0.5308 GB, free: 340 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.3121/0.523, allocations: 486.1 kB / 0.5312 GB, free: 11.51 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005747/0.5288, allocations: 1.49 MB / 0.5327 GB, free: 11.51 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005225/0.5341, allocations: 2.899 MB / 0.5355 GB, free: 11.51 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006279/0.5404, allocations: 3.26 MB / 0.5387 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01993/0.5604, allocations: 10.46 MB / 0.5489 GB, free: 8.887 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.045e-05/0.5604, allocations: 0 / 0.5489 GB, free: 8.887 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.068e-06/0.5605, allocations: 0 / 0.5489 GB, free: 8.887 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005732/0.561, allocations: 2.406 kB / 0.5489 GB, free: 8.887 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.03223/0.5933, allocations: 7.322 MB / 0.5561 GB, free: 6.188 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.773e-05/0.5934, allocations: 13.89 kB / 0.5561 GB, free: 6.184 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02013/0.6135, allocations: 3.927 MB / 0.5599 GB, free: 5.707 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01372/0.6273, allocations: 4.287 MB / 0.5641 GB, free: 3.414 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000436/0.6278, allocations: 325.9 kB / 0.5644 GB, free: 3.316 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003155/0.6309, allocations: 434.3 kB / 0.5648 GB, free: 3.215 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03578/0.6667, allocations: 15.73 MB / 0.5802 GB, free: 9.602 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002847/0.6671, allocations: 66.34 kB / 0.5803 GB, free: 9.562 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001803/0.6689, allocations: 201.7 kB / 0.5805 GB, free: 9.422 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00579/0.6747, allocations: 3.22 MB / 0.5836 GB, free: 6.242 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03578/0.7105, allocations: 14.16 MB / 0.5974 GB, free: 8.305 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09758/0.8081, allocations: 57.51 MB / 0.6536 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01546/0.8237, allocations: 6.595 MB / 0.66 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00597/0.8297, allocations: 3.759 MB / 0.6637 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02993/0.8596, allocations: 14.78 MB / 0.6781 GB, free: 4.227 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.375e-05/0.8598, allocations: 67.84 kB / 0.6782 GB, free: 4.156 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=292): time 6.222e-06/0.8598, allocations: 0 / 0.6782 GB, free: 4.156 MB / 0.5137 GB Notification: Performance of matching and sorting (n=342): time 0.1707/1.03, allocations: 42.56 MB / 0.7198 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/1.031, allocations: 210 kB / 0.72 GB, free: 9.414 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01378/1.044, allocations: 5.49 MB / 0.7253 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.00123/1.046, allocations: 77.7 kB / 0.7254 GB, free: 3.855 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00472/1.05, allocations: 4.343 MB / 0.7296 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002834/1.053, allocations: 1.269 MB / 0.7309 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008293/1.062, allocations: 1.85 MB / 0.7327 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001342/1.062, allocations: 313 kB / 0.733 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009743/1.072, allocations: 4.832 MB / 0.7377 GB, free: 7.25 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01482/1.086, allocations: 9.824 MB / 0.7473 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3929/1.479, allocations: 15.62 MB / 0.7626 GB, free: 197.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002541/1.48, allocations: 50 kB / 0.7626 GB, free: 197.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.05679/1.537, allocations: 19.61 MB / 0.7818 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001253/1.537, allocations: 80.78 kB / 0.7818 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002347/1.537, allocations: 173.7 kB / 0.782 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02287/1.56, allocations: 5.938 MB / 0.7878 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008683/1.569, allocations: 2.123 MB / 0.7899 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03085/1.599, allocations: 26.16 MB / 0.8154 GB, free: 171.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01093/1.61, allocations: 0.5595 MB / 0.816 GB, free: 170.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002416/1.613, allocations: 0.5116 MB / 0.8165 GB, free: 170.4 MB / 0.5919 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.008684/1.622, allocations: 3.098 MB / 0.8195 GB, free: 167.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00148/1.623, allocations: 0.4956 MB / 0.82 GB, free: 167.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03171/1.655, allocations: 13 MB / 0.8327 GB, free: 154 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/1.655, allocations: 57.94 kB / 0.8327 GB, free: 154 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.932e-05/1.655, allocations: 8 kB / 0.8327 GB, free: 154 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.878e-05/1.655, allocations: 15.94 kB / 0.8327 GB, free: 153.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05293/1.708, allocations: 24.63 MB / 0.8568 GB, free: 128.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.954e-05/1.708, allocations: 4 kB / 0.8568 GB, free: 128.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003576/1.712, allocations: 0.5856 MB / 0.8574 GB, free: 128.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01939/1.731, allocations: 4.965 MB / 0.8622 GB, free: 123.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009056/1.732, allocations: 56.94 kB / 0.8623 GB, free: 123.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02318/1.755, allocations: 21.36 MB / 0.8831 GB, free: 101.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/1.755, allocations: 8 kB / 0.8831 GB, free: 101.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.036/1.791, allocations: 17.59 MB / 0.9003 GB, free: 84.06 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003788/1.795, allocations: 1.255 MB / 0.9015 GB, free: 82.78 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001425/1.797, allocations: 55.98 kB / 0.9016 GB, free: 82.73 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003294/1.8, allocations: 265.3 kB / 0.9019 GB, free: 82.47 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008134/1.801, allocations: 198.5 kB / 0.902 GB, free: 82.27 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003179/1.801, allocations: 89.34 kB / 0.9021 GB, free: 82.19 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005731/1.807, allocations: 3.414 MB / 0.9055 GB, free: 78.79 MB / 0.5919 GB Notification: Performance of sort global known variables: time 5.41e-07/1.807, allocations: 0 / 0.9055 GB, free: 78.79 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009311/1.816, allocations: 1.77 MB / 0.9072 GB, free: 77.03 MB / 0.5919 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.0007907/1.817, allocations: 198.5 kB / 0.9074 GB, free: 76.83 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01514/1.832, allocations: 11.05 MB / 0.9182 GB, free: 65.79 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/1.832, allocations: 4 kB / 0.9182 GB, free: 65.79 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005213/1.837, allocations: 4.137 MB / 0.9222 GB, free: 61.62 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005267/1.843, allocations: 0.6058 MB / 0.9228 GB, free: 61.04 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03359/1.876, allocations: 16.71 MB / 0.9391 GB, free: 44.25 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005609/1.882, allocations: 4.608 MB / 0.9436 GB, free: 39.61 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002359/1.884, allocations: 415.4 kB / 0.944 GB, free: 39.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.122e-06/1.884, allocations: 0 / 0.944 GB, free: 39.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.5009/2.385, allocations: 151 MB / 1.091 GB, free: 104.4 MB / 0.5919 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 -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