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.00167/0.00167, allocations: 105.4 kB / 18.4 MB, free: 4.57 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.001641/0.001641, allocations: 188 kB / 19.34 MB, free: 3.641 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.463/1.463, allocations: 222.9 MB / 243 MB, free: 15.08 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.2057/0.2057, allocations: 44.17 MB / 337.4 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 69.66 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1418, allocations: 60.82 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.0156/0.1575, allocations: 15.04 MB / 485.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01247/0.17, allocations: 4.822 MB / 490.6 MB, free: 9.715 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00547/0.1756, allocations: 91.75 kB / 490.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007118/0.1827, allocations: 3.165 MB / 493.8 MB, free: 6.449 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008343/0.1912, allocations: 2.555 MB / 496.4 MB, free: 3.887 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002627/0.1938, allocations: 0.9788 MB / 497.4 MB, free: 2.906 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0112/0.205, allocations: 6.974 MB / 0.4925 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006001/0.2111, allocations: 4.373 MB / 0.4968 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004417/0.2155, allocations: 2.231 MB / 0.499 GB, free: 5.242 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005577/0.2211, allocations: 3.244 MB / 0.5021 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001705/0.2229, allocations: 484 kB / 0.5026 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004159/0.227, allocations: 1.506 MB / 0.5041 GB, free: 8 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3346/0.5617, allocations: 2.857 MB / 0.5068 GB, free: 21.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007914/0.5696, allocations: 3.257 MB / 0.51 GB, free: 19.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01847/0.5881, allocations: 10.45 MB / 0.5202 GB, free: 18.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.5882, allocations: 1.094 kB / 0.5202 GB, free: 18.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.5882, allocations: 2.812 kB / 0.5202 GB, free: 18.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005241/0.5887, allocations: 0 / 0.5202 GB, free: 18.45 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.02574/0.6145, allocations: 7.305 MB / 0.5274 GB, free: 15.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.6146, allocations: 9.969 kB / 0.5274 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01688/0.6314, allocations: 3.924 MB / 0.5312 GB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01071/0.6422, allocations: 4.188 MB / 0.5353 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002145/0.6424, allocations: 317.8 kB / 0.5356 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00215/0.6446, allocations: 439.5 kB / 0.536 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0258/0.6704, allocations: 15.72 MB / 0.5514 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002005/0.6707, allocations: 67.03 kB / 0.5514 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008838/0.6716, allocations: 206.1 kB / 0.5516 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00552/0.6771, allocations: 3.216 MB / 0.5548 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02985/0.707, allocations: 14.17 MB / 0.5686 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08026/0.7873, allocations: 57.48 MB / 0.6248 GB, free: 4.398 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01381/0.8011, allocations: 6.596 MB / 0.6312 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005414/0.8066, allocations: 3.742 MB / 0.6349 GB, free: 9.816 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02324/0.8298, allocations: 14.79 MB / 0.6493 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.405e-05/0.8299, allocations: 60.56 kB / 0.6494 GB, free: 10.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=292): time 5.771e-06/0.8299, allocations: 0 / 0.6494 GB, free: 10.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=342): time 0.1399/0.9698, allocations: 42.49 MB / 0.6908 GB, free: 104 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001743/0.9701, allocations: 214 kB / 0.6911 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009304/0.9794, allocations: 5.47 MB / 0.6964 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001017/0.9804, allocations: 72.83 kB / 0.6965 GB, free: 10.32 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003623/0.9841, allocations: 4.346 MB / 0.7007 GB, free: 5.973 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002147/0.9862, allocations: 1.273 MB / 0.702 GB, free: 4.711 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003791/0.99, allocations: 1.851 MB / 0.7038 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.9902, allocations: 305.1 kB / 0.7041 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3015/1.292, allocations: 4.845 MB / 0.7088 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01377/1.305, allocations: 9.821 MB / 0.7184 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01941/1.325, allocations: 15.63 MB / 0.7336 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003736/1.325, allocations: 50.56 kB / 0.7337 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.05364/1.379, allocations: 19.61 MB / 0.7528 GB, free: 158.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004533/1.379, allocations: 76.62 kB / 0.7529 GB, free: 158.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005492/1.38, allocations: 176 kB / 0.7531 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0219/1.402, allocations: 5.942 MB / 0.7589 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008786/1.411, allocations: 2.121 MB / 0.7609 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03238/1.443, allocations: 26.14 MB / 0.7865 GB, free: 125.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01034/1.454, allocations: 0.5616 MB / 0.787 GB, free: 124.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003119/1.457, allocations: 0.5087 MB / 0.7875 GB, free: 124.2 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.01011/1.467, allocations: 3.101 MB / 0.7906 GB, free: 121.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002015/1.469, allocations: 0.4937 MB / 0.791 GB, free: 121 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03138/1.5, allocations: 13.01 MB / 0.8037 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001529/1.501, allocations: 53.56 kB / 0.8038 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.923e-05/1.501, allocations: 12 kB / 0.8038 GB, free: 107.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001559/1.501, allocations: 15.94 kB / 0.8038 GB, free: 107.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05787/1.559, allocations: 24.62 MB / 0.8279 GB, free: 82.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-05/1.559, allocations: 8.859 kB / 0.8279 GB, free: 82.81 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003478/1.562, allocations: 0.5895 MB / 0.8284 GB, free: 82.22 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01737/1.58, allocations: 4.97 MB / 0.8333 GB, free: 77.24 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00107/1.581, allocations: 52 kB / 0.8334 GB, free: 77.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02469/1.606, allocations: 21.34 MB / 0.8542 GB, free: 55.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/1.606, allocations: 11.81 kB / 0.8542 GB, free: 55.63 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03555/1.641, allocations: 17.59 MB / 0.8714 GB, free: 37.98 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002086/1.643, allocations: 0.5297 MB / 0.8719 GB, free: 37.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002407/1.646, allocations: 54.66 kB / 0.8719 GB, free: 37.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004799/1.651, allocations: 267.5 kB / 0.8722 GB, free: 37.11 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001496/1.652, allocations: 193.7 kB / 0.8724 GB, free: 36.93 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000816/1.653, allocations: 84 kB / 0.8725 GB, free: 36.84 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007298/1.66, allocations: 3.402 MB / 0.8758 GB, free: 33.46 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.11e-07/1.66, allocations: 0 / 0.8758 GB, free: 33.46 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01157/1.672, allocations: 1.77 MB / 0.8775 GB, free: 31.7 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.001201/1.673, allocations: 206.2 kB / 0.8777 GB, free: 31.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01782/1.691, allocations: 11.05 MB / 0.8885 GB, free: 20.45 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/1.691, allocations: 4 kB / 0.8885 GB, free: 20.45 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006204/1.697, allocations: 4.129 MB / 0.8925 GB, free: 16.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006833/1.704, allocations: 0.6165 MB / 0.8931 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2792/1.983, allocations: 16.06 MB / 0.9088 GB, free: 174.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01031/1.994, allocations: 4.628 MB / 0.9133 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008598/2.002, allocations: 2.973 MB / 0.9162 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002242/2.005, allocations: 349.3 kB / 0.9166 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.062e-06/2.005, allocations: 0 / 0.9166 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of Templates: time 0.1187/2.123, allocations: 74.13 MB / 0.989 GB, free: 111.1 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 -s cvode -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