Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 104.1 kB / 17.63 MB, free: 5.48 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.001576/0.001577, allocations: 192 kB / 18.56 MB, free: 4.562 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.329/1.329, allocations: 222.9 MB / 242.2 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.2029/0.2029, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 61.34 kB / 408.4 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1224, allocations: 60.83 MB / 469.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01424/0.1366, allocations: 13.39 MB / 482.6 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.1469, allocations: 4.801 MB / 487.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002488/0.1494, allocations: 91.69 kB / 487.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006324/0.1558, allocations: 3.742 MB / 491.3 MB, free: 8.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005105/0.1609, allocations: 2.19 MB / 493.5 MB, free: 6.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002136/0.1631, allocations: 1.076 MB / 494.5 MB, free: 4.992 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007757/0.1708, allocations: 6.512 MB / 0.4893 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004595/0.1755, allocations: 4.526 MB / 0.4937 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002791/0.1783, allocations: 2.017 MB / 0.4957 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003343/0.1816, allocations: 2.746 MB / 0.4984 GB, free: 5.098 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009674/0.1826, allocations: 428 kB / 0.4988 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002802/0.1854, allocations: 1.455 MB / 0.5002 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002375/0.1878, allocations: 2.459 MB / 0.5026 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2478/0.4356, allocations: 2.773 MB / 0.5053 GB, free: 20.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.4471, allocations: 8.571 MB / 0.5137 GB, free: 19.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4472, allocations: 2.656 kB / 0.5137 GB, free: 19.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.4472, allocations: 3.938 kB / 0.5137 GB, free: 19.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003296/0.4475, allocations: 0 / 0.5137 GB, free: 19.31 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.02187/0.4694, allocations: 6.235 MB / 0.5198 GB, free: 16.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.802e-05/0.4695, allocations: 12.44 kB / 0.5198 GB, free: 16.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01894/0.4885, allocations: 2.523 MB / 0.5222 GB, free: 16.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0155/0.504, allocations: 3.931 MB / 0.5261 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005333/0.5046, allocations: 282.6 kB / 0.5264 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002946/0.5076, allocations: 386.4 kB / 0.5267 GB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03888/0.5465, allocations: 12 MB / 0.5384 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004661/0.547, allocations: 59.36 kB / 0.5385 GB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00246/0.5495, allocations: 183.1 kB / 0.5387 GB, free: 8.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003633/0.5531, allocations: 2.14 MB / 0.5408 GB, free: 7.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02607/0.5792, allocations: 10.37 MB / 0.5509 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08444/0.6637, allocations: 47.5 MB / 0.5973 GB, free: 14.75 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01562/0.6794, allocations: 5.825 MB / 0.603 GB, free: 8.785 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004559/0.684, allocations: 2.978 MB / 0.6059 GB, free: 5.797 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01839/0.7024, allocations: 8.87 MB / 0.6145 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.738e-05/0.7025, allocations: 54.97 kB / 0.6146 GB, free: 12.77 MB / 462.1 MB Notification: Performance of pre-optimization done (n=206): time 5.961e-06/0.7025, allocations: 3.938 kB / 0.6146 GB, free: 12.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=262): time 0.1356/0.8381, allocations: 34.92 MB / 0.6487 GB, free: 9.906 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/0.8383, allocations: 209.9 kB / 0.6489 GB, free: 9.66 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01241/0.8507, allocations: 4.757 MB / 0.6535 GB, free: 4.898 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008323/0.8516, allocations: 72.44 kB / 0.6536 GB, free: 4.824 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003853/0.8555, allocations: 3.544 MB / 0.6571 GB, free: 1.281 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001914/0.8574, allocations: 0.974 MB / 0.658 GB, free: 324 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005373/0.8628, allocations: 1.424 MB / 0.6594 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.8629, allocations: 309.1 kB / 0.6597 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006157/0.8691, allocations: 3.172 MB / 0.6628 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00934/0.8785, allocations: 7.044 MB / 0.6697 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01512/0.8936, allocations: 10.95 MB / 0.6804 GB, free: 6.25 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002018/0.8939, allocations: 40 kB / 0.6804 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.03344/0.9273, allocations: 13.75 MB / 0.6938 GB, free: 8.867 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001915/0.9276, allocations: 67.94 kB / 0.6939 GB, free: 8.801 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000259/0.9279, allocations: 132 kB / 0.694 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01311/0.941, allocations: 4.401 MB / 0.6983 GB, free: 4.258 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005142/0.9462, allocations: 1.474 MB / 0.6998 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2506/1.197, allocations: 29.04 MB / 0.7281 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007335/1.204, allocations: 415.5 kB / 0.7285 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001684/1.206, allocations: 410.4 kB / 0.7289 GB, free: 172.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (798): * Single equations (assignments): 792 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.005387/1.211, allocations: 2.474 MB / 0.7313 GB, free: 171.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/1.212, allocations: 436.6 kB / 0.7318 GB, free: 171.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01504/1.227, allocations: 8.473 MB / 0.74 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-05/1.227, allocations: 31.31 kB / 0.7401 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.416e-05/1.228, allocations: 11.75 kB / 0.7401 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.285e-05/1.228, allocations: 14.25 kB / 0.7401 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0304/1.258, allocations: 17.08 MB / 0.7568 GB, free: 152.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.51e-05/1.258, allocations: 4 kB / 0.7568 GB, free: 152.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001573/1.26, allocations: 307.3 kB / 0.7571 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01004/1.27, allocations: 3.977 MB / 0.7609 GB, free: 148 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000531/1.27, allocations: 52 kB / 0.761 GB, free: 147.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03067/1.301, allocations: 27.75 MB / 0.7881 GB, free: 120 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/1.301, allocations: 4.609 kB / 0.7881 GB, free: 120 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02014/1.321, allocations: 12.42 MB / 0.8002 GB, free: 107.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00145/1.323, allocations: 495.2 kB / 0.8007 GB, free: 107 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001464/1.324, allocations: 53.39 kB / 0.8007 GB, free: 107 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003557/1.328, allocations: 175.8 kB / 0.8009 GB, free: 106.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001037/1.329, allocations: 196.1 kB / 0.8011 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003411/1.329, allocations: 72.88 kB / 0.8012 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006351/1.335, allocations: 3.006 MB / 0.8041 GB, free: 103.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.41e-07/1.335, allocations: 0 / 0.8041 GB, free: 103.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01001/1.345, allocations: 1.468 MB / 0.8055 GB, free: 102.1 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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001107/1.347, allocations: 187.4 kB / 0.8057 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01943/1.366, allocations: 10.01 MB / 0.8155 GB, free: 91.89 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/1.366, allocations: 4 kB / 0.8155 GB, free: 91.89 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006048/1.372, allocations: 3.53 MB / 0.819 GB, free: 88.32 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006664/1.379, allocations: 0.5833 MB / 0.8195 GB, free: 87.75 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02648/1.405, allocations: 12.55 MB / 0.8318 GB, free: 75.11 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006984/1.412, allocations: 3.925 MB / 0.8356 GB, free: 71.15 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005981/1.418, allocations: 2.003 MB / 0.8376 GB, free: 69.14 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001172/1.42, allocations: 279.4 kB / 0.8378 GB, free: 68.87 MB / 0.5294 GB Notification: Performance of SimCode: time 7.91e-07/1.42, allocations: 0 / 0.8378 GB, free: 68.87 MB / 0.5294 GB Notification: Performance of Templates: time 0.3462/1.766, allocations: 72.54 MB / 0.9087 GB, free: 172.9 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches