Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_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.001239/0.001239, allocations: 106.1 kB / 18.3 MB, free: 4.887 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.00119/0.00119, allocations: 195.3 kB / 19.23 MB, free: 3.961 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.385/1.385, allocations: 222.9 MB / 242.9 MB, free: 15.2 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.2081/0.2081, allocations: 44.18 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 66.28 kB / 409.1 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1199, allocations: 60.82 MB / 469.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01558/0.1355, allocations: 15.03 MB / 485 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01076/0.1463, allocations: 4.826 MB / 489.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00296/0.1493, allocations: 91.75 kB / 489.9 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006069/0.1554, allocations: 3.161 MB / 493 MB, free: 7.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007698/0.1632, allocations: 2.56 MB / 495.6 MB, free: 4.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002647/0.1659, allocations: 0.9827 MB / 496.6 MB, free: 3.605 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009181/0.1751, allocations: 6.973 MB / 0.4917 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005849/0.1809, allocations: 4.377 MB / 0.496 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00421/0.1852, allocations: 2.227 MB / 0.4982 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004823/0.19, allocations: 3.248 MB / 0.5014 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00189/0.192, allocations: 488 kB / 0.5018 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003908/0.1959, allocations: 1.494 MB / 0.5033 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2435/0.4394, allocations: 2.858 MB / 0.5061 GB, free: 19.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00734/0.4468, allocations: 3.251 MB / 0.5093 GB, free: 18.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01494/0.4618, allocations: 10.08 MB / 0.5191 GB, free: 17.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.4618, allocations: 0 / 0.5191 GB, free: 17.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4618, allocations: 1.531 kB / 0.5191 GB, free: 17.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004479/0.4623, allocations: 1.156 kB / 0.5191 GB, free: 17.55 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.02549/0.4878, allocations: 7.319 MB / 0.5262 GB, free: 14.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.4878, allocations: 10.25 kB / 0.5263 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01786/0.5057, allocations: 3.925 MB / 0.5301 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.5159, allocations: 4.116 MB / 0.5341 GB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002284/0.5162, allocations: 318.7 kB / 0.5344 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002185/0.5184, allocations: 446.3 kB / 0.5348 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02958/0.548, allocations: 15.73 MB / 0.5502 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002062/0.5482, allocations: 65.59 kB / 0.5503 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001067/0.5493, allocations: 202.4 kB / 0.5505 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005096/0.5544, allocations: 3.216 MB / 0.5536 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02928/0.5837, allocations: 14.16 MB / 0.5674 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08067/0.6644, allocations: 57.77 MB / 0.6238 GB, free: 4.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01447/0.6789, allocations: 6.594 MB / 0.6303 GB, free: 13.74 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005372/0.6843, allocations: 3.749 MB / 0.6339 GB, free: 9.984 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02449/0.7089, allocations: 14.79 MB / 0.6484 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.507e-05/0.709, allocations: 63.47 kB / 0.6484 GB, free: 10.68 MB / 494.1 MB Notification: Performance of pre-optimization done (n=292): time 7.123e-06/0.709, allocations: 0 / 0.6484 GB, free: 10.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=342): time 0.1617/0.8706, allocations: 42.5 MB / 0.69 GB, free: 264 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001503/0.8708, allocations: 221.8 kB / 0.6902 GB, free: 0 / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01127/0.8821, allocations: 5.458 MB / 0.6955 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001003/0.8832, allocations: 77.7 kB / 0.6956 GB, free: 10.47 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003543/0.8867, allocations: 4.345 MB / 0.6998 GB, free: 6.133 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002076/0.8888, allocations: 1.27 MB / 0.7011 GB, free: 4.875 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00339/0.8922, allocations: 1.854 MB / 0.7029 GB, free: 3.008 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.8923, allocations: 305.1 kB / 0.7032 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3034/1.196, allocations: 4.837 MB / 0.7079 GB, free: 187.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02007/1.216, allocations: 9.822 MB / 0.7175 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02943/1.245, allocations: 15.63 MB / 0.7327 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000296/1.246, allocations: 50.22 kB / 0.7328 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.06616/1.312, allocations: 19.61 MB / 0.7519 GB, free: 158.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001393/1.312, allocations: 80 kB / 0.752 GB, free: 158.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002186/1.312, allocations: 172 kB / 0.7522 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02209/1.334, allocations: 5.945 MB / 0.758 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007482/1.342, allocations: 2.125 MB / 0.76 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0283/1.37, allocations: 26.16 MB / 0.7856 GB, free: 125.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009213/1.38, allocations: 0.558 MB / 0.7861 GB, free: 124.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002471/1.382, allocations: 0.5094 MB / 0.7866 GB, free: 124.3 MB / 0.5294 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.006322/1.388, allocations: 3.104 MB / 0.7897 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001156/1.39, allocations: 0.4899 MB / 0.7901 GB, free: 121 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0285/1.418, allocations: 13.01 MB / 0.8029 GB, free: 108 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.389e-05/1.418, allocations: 54.11 kB / 0.8029 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.642e-05/1.418, allocations: 8 kB / 0.8029 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.204e-05/1.418, allocations: 23.27 kB / 0.8029 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04633/1.465, allocations: 24.69 MB / 0.827 GB, free: 82.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.333e-05/1.465, allocations: 4.594 kB / 0.827 GB, free: 82.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003107/1.468, allocations: 0.5851 MB / 0.8276 GB, free: 82.22 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01877/1.487, allocations: 4.973 MB / 0.8325 GB, free: 77.23 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007737/1.487, allocations: 56 kB / 0.8325 GB, free: 77.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02296/1.51, allocations: 21.35 MB / 0.8534 GB, free: 55.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/1.51, allocations: 4 kB / 0.8534 GB, free: 55.62 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03339/1.544, allocations: 17.59 MB / 0.8705 GB, free: 37.97 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001635/1.545, allocations: 0.5297 MB / 0.8711 GB, free: 37.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00198/1.547, allocations: 60 kB / 0.8711 GB, free: 37.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004026/1.552, allocations: 263.5 kB / 0.8714 GB, free: 37.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001332/1.553, allocations: 194.8 kB / 0.8716 GB, free: 36.91 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005001/1.553, allocations: 82.27 kB / 0.8716 GB, free: 36.83 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005916/1.559, allocations: 3.407 MB / 0.875 GB, free: 33.45 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.91e-07/1.559, allocations: 0 / 0.875 GB, free: 33.45 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01067/1.57, allocations: 1.766 MB / 0.8767 GB, free: 31.69 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 (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.0009965/1.571, allocations: 207.5 kB / 0.8769 GB, free: 31.48 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02388/1.595, allocations: 15.92 MB / 0.8924 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/1.595, allocations: 0 / 0.8924 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005333/1.6, allocations: 4.135 MB / 0.8965 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004159/1.605, allocations: 0.6069 MB / 0.8971 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2625/1.867, allocations: 16.85 MB / 0.9135 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006169/1.873, allocations: 4.605 MB / 0.918 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002156/1.875, allocations: 416 kB / 0.9184 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of SimCode: time 9.82e-07/1.876, allocations: 0 / 0.9184 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.1772/2.053, allocations: 149.9 MB / 1.065 GB, free: 34.62 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches