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.001305/0.001305, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 202.3 kB / 16.79 MB, free: 6.84 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.791/1.791, allocations: 205.1 MB / 222.6 MB, free: 4.766 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.3955/0.3955, allocations: 43.5 MB / 313.5 MB, free: 8.211 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.001421/0.001421, allocations: 67.91 kB / 382 MB, free: 8.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1615, allocations: 57.79 MB / 439.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.335/0.4965, allocations: 53.49 MB / 493.3 MB, free: 17.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03421/0.5308, allocations: 11.22 MB / 0.4927 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01702/0.5479, allocations: 235.3 kB / 0.4929 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006607/0.5545, allocations: 3.132 MB / 0.496 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007447/0.562, allocations: 2.405 MB / 0.4983 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00261/0.5647, allocations: 0.9129 MB / 0.4992 GB, free: 7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01481/0.5795, allocations: 9.426 MB / 0.5084 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01054/0.5901, allocations: 4.301 MB / 0.5126 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008402/0.5985, allocations: 1.977 MB / 0.5146 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007397/0.606, allocations: 3.45 MB / 0.5179 GB, free: 64 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002204/0.6082, allocations: 331.6 kB / 0.5182 GB, free: 64 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005246/0.6135, allocations: 1.427 MB / 0.5196 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005283/0.6188, allocations: 2.764 MB / 0.5223 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006882/0.6257, allocations: 3.121 MB / 0.5254 GB, free: 9.664 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01407/0.6398, allocations: 9.957 MB / 0.5351 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.6399, allocations: 0 / 0.5351 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.6399, allocations: 4 kB / 0.5351 GB, free: 15.67 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000356/0.6402, allocations: 0 / 0.5351 GB, free: 15.67 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.02393/0.6642, allocations: 7.335 MB / 0.5423 GB, free: 8.254 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.6643, allocations: 8.031 kB / 0.5423 GB, free: 8.246 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01656/0.6808, allocations: 3.927 MB / 0.5461 GB, free: 4.305 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01084/0.6917, allocations: 4.224 MB / 0.5502 GB, free: 20 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003222/0.6921, allocations: 316.6 kB / 0.5505 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001667/0.6937, allocations: 443.4 kB / 0.551 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02898/0.7227, allocations: 15.73 MB / 0.5663 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002638/0.7231, allocations: 59.47 kB / 0.5664 GB, free: 14.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001462/0.7245, allocations: 203.8 kB / 0.5666 GB, free: 14.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005195/0.7297, allocations: 3.22 MB / 0.5697 GB, free: 11.14 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03123/0.761, allocations: 14.16 MB / 0.5836 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3929/1.154, allocations: 57.77 MB / 0.64 GB, free: 103.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01298/1.167, allocations: 6.612 MB / 0.6464 GB, free: 102.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00477/1.172, allocations: 3.755 MB / 0.6501 GB, free: 102 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02376/1.196, allocations: 14.78 MB / 0.6645 GB, free: 94.68 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.649e-05/1.196, allocations: 67.88 kB / 0.6646 GB, free: 94.61 MB / 494.1 MB Notification: Performance of pre-optimization done (n=292): time 6.592e-06/1.196, allocations: 0 / 0.6646 GB, free: 94.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=342): time 0.1548/1.351, allocations: 42.54 MB / 0.7061 GB, free: 80.62 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/1.351, allocations: 218 kB / 0.7063 GB, free: 80.36 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01088/1.362, allocations: 5.494 MB / 0.7117 GB, free: 74.88 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009502/1.363, allocations: 69.7 kB / 0.7118 GB, free: 74.81 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003335/1.366, allocations: 4.348 MB / 0.716 GB, free: 70.46 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001919/1.368, allocations: 1.271 MB / 0.7173 GB, free: 69.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00441/1.372, allocations: 1.851 MB / 0.7191 GB, free: 67.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.51e-05/1.372, allocations: 301.7 kB / 0.7194 GB, free: 67.04 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006157/1.379, allocations: 4.843 MB / 0.7241 GB, free: 62.19 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008722/1.387, allocations: 9.818 MB / 0.7337 GB, free: 50 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01591/1.403, allocations: 15.62 MB / 0.7489 GB, free: 32.25 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001924/1.403, allocations: 52 kB / 0.749 GB, free: 32.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.044/1.447, allocations: 19.63 MB / 0.7682 GB, free: 12.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002017/1.448, allocations: 80 kB / 0.7682 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002595/1.448, allocations: 172 kB / 0.7684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02038/1.468, allocations: 5.945 MB / 0.7742 GB, free: 6.316 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007981/1.476, allocations: 2.129 MB / 0.7763 GB, free: 4.184 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03442/1.511, allocations: 24.77 MB / 0.8005 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0107/1.522, allocations: 0.5616 MB / 0.801 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002184/1.524, allocations: 0.5078 MB / 0.8015 GB, free: 10.08 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.008658/1.532, allocations: 3.114 MB / 0.8046 GB, free: 6.961 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001998/1.535, allocations: 0.4898 MB / 0.805 GB, free: 6.465 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03346/1.568, allocations: 13.01 MB / 0.8177 GB, free: 9.387 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001249/1.568, allocations: 59.89 kB / 0.8178 GB, free: 9.332 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-05/1.568, allocations: 8 kB / 0.8178 GB, free: 9.324 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.339e-05/1.568, allocations: 15.95 kB / 0.8178 GB, free: 9.309 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3351/1.903, allocations: 24.69 MB / 0.8419 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-05/1.903, allocations: 6.312 kB / 0.8419 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003177/1.907, allocations: 0.5797 MB / 0.8425 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01839/1.925, allocations: 4.969 MB / 0.8474 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000926/1.926, allocations: 63.67 kB / 0.8474 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02987/1.956, allocations: 19.97 MB / 0.8669 GB, free: 157.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.304e-05/1.956, allocations: 6.375 kB / 0.8669 GB, free: 157.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03997/1.996, allocations: 17.58 MB / 0.8841 GB, free: 151.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004321/2, allocations: 1.249 MB / 0.8853 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002186/2.003, allocations: 58.41 kB / 0.8854 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004278/2.007, allocations: 262.6 kB / 0.8856 GB, free: 150.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001399/2.008, allocations: 198.6 kB / 0.8858 GB, free: 150.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006558/2.009, allocations: 84.91 kB / 0.8859 GB, free: 150.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007293/2.016, allocations: 3.422 MB / 0.8892 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.31e-07/2.016, allocations: 0 / 0.8892 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01253/2.029, allocations: 1.771 MB / 0.891 GB, free: 149.4 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.001546/2.03, allocations: 204.1 kB / 0.8912 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01837/2.049, allocations: 11 MB / 0.9019 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/2.049, allocations: 0 / 0.9019 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006235/2.055, allocations: 4.131 MB / 0.9059 GB, free: 138 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006905/2.062, allocations: 0.5955 MB / 0.9065 GB, free: 137.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03221/2.094, allocations: 19.31 MB / 0.9254 GB, free: 118.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008934/2.103, allocations: 4.628 MB / 0.9299 GB, free: 113.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.009304/2.113, allocations: 2.982 MB / 0.9328 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002256/2.115, allocations: 355.4 kB / 0.9331 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.493e-06/2.115, allocations: 0 / 0.9331 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.1174/2.232, allocations: 78.43 MB / 1.01 GB, free: 31.82 MB / 0.5294 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches