Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_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.001665/0.001665, allocations: 117 kB / 17.08 MB, free: 6.012 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.001705/0.001705, allocations: 195 kB / 18.01 MB, free: 5.094 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.391/1.391, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.2035/0.2035, allocations: 43.53 MB / 314.8 MB, free: 464 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.001433/0.001433, allocations: 67.91 kB / 442.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1129, allocations: 57.79 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01479/0.1278, allocations: 13.48 MB / 0.5017 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.1387, allocations: 4.809 MB / 0.5064 GB, free: 9.445 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003326/0.1421, allocations: 91.75 kB / 0.5065 GB, free: 9.355 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007375/0.1495, allocations: 3.738 MB / 0.5101 GB, free: 5.605 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00662/0.1562, allocations: 2.257 MB / 0.5123 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002908/0.1591, allocations: 1.08 MB / 0.5134 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008923/0.1681, allocations: 6.202 MB / 0.5194 GB, free: 12.04 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006773/0.1749, allocations: 4.526 MB / 0.5239 GB, free: 7.445 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004576/0.1795, allocations: 2.044 MB / 0.5259 GB, free: 5.395 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004778/0.1843, allocations: 2.765 MB / 0.5286 GB, free: 2.621 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001661/0.186, allocations: 435.9 kB / 0.529 GB, free: 2.195 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003574/0.1896, allocations: 1.451 MB / 0.5304 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2781/0.4677, allocations: 2.493 MB / 0.5328 GB, free: 12.78 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00644/0.4742, allocations: 2.79 MB / 0.5356 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01514/0.4894, allocations: 8.825 MB / 0.5442 GB, free: 10.8 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.4894, allocations: 0 / 0.5442 GB, free: 10.8 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4894, allocations: 0 / 0.5442 GB, free: 10.8 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003946/0.4898, allocations: 0 / 0.5442 GB, free: 10.8 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.02505/0.5149, allocations: 6.258 MB / 0.5503 GB, free: 8.445 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.515, allocations: 14.58 kB / 0.5503 GB, free: 8.441 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01377/0.5287, allocations: 2.525 MB / 0.5528 GB, free: 8.094 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01156/0.5403, allocations: 4.121 MB / 0.5568 GB, free: 7.273 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004942/0.5409, allocations: 284.1 kB / 0.5571 GB, free: 7.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002812/0.5437, allocations: 382.1 kB / 0.5574 GB, free: 7.086 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02915/0.5729, allocations: 12.01 MB / 0.5692 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000415/0.5734, allocations: 51.56 kB / 0.5692 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002233/0.5756, allocations: 181.6 kB / 0.5694 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003868/0.5795, allocations: 2.148 MB / 0.5715 GB, free: 15.87 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02505/0.6046, allocations: 10.37 MB / 0.5816 GB, free: 9.008 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0715/0.6762, allocations: 47.3 MB / 0.6278 GB, free: 9.027 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01645/0.6927, allocations: 5.831 MB / 0.6335 GB, free: 3.062 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004449/0.6972, allocations: 2.973 MB / 0.6364 GB, free: 88 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01707/0.7143, allocations: 8.866 MB / 0.645 GB, free: 7.121 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.345e-05/0.7144, allocations: 54.78 kB / 0.6451 GB, free: 7.062 MB / 494.1 MB Notification: Performance of pre-optimization done (n=206): time 5.71e-06/0.7144, allocations: 0 / 0.6451 GB, free: 7.062 MB / 494.1 MB Notification: Performance of matching and sorting (n=262): time 0.1365/0.8509, allocations: 34.99 MB / 0.6793 GB, free: 4.137 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.8511, allocations: 211 kB / 0.6795 GB, free: 3.887 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01102/0.8621, allocations: 4.805 MB / 0.6842 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008385/0.863, allocations: 69.7 kB / 0.6842 GB, free: 15 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003453/0.8665, allocations: 3.544 MB / 0.6877 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001678/0.8682, allocations: 0.9739 MB / 0.6886 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005017/0.8732, allocations: 1.427 MB / 0.69 GB, free: 9.062 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.8733, allocations: 301.1 kB / 0.6903 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00594/0.8793, allocations: 3.168 MB / 0.6934 GB, free: 5.594 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00961/0.8889, allocations: 7.048 MB / 0.7003 GB, free: 12.73 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01599/0.905, allocations: 10.94 MB / 0.711 GB, free: 456 kB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001762/0.9052, allocations: 36 kB / 0.711 GB, free: 420 kB / 0.545 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.03394/0.9392, allocations: 13.75 MB / 0.7244 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002082/0.9394, allocations: 64 kB / 0.7245 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002894/0.9397, allocations: 140.8 kB / 0.7246 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01375/0.9535, allocations: 4.388 MB / 0.7289 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00563/0.9592, allocations: 1.482 MB / 0.7304 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3064/1.266, allocations: 29.03 MB / 0.7587 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007029/1.273, allocations: 406 kB / 0.7591 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001763/1.275, allocations: 410.9 kB / 0.7595 GB, free: 202.4 MB / 0.5919 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.006707/1.281, allocations: 2.477 MB / 0.7619 GB, free: 202.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001518/1.283, allocations: 437.7 kB / 0.7623 GB, free: 202.3 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01957/1.302, allocations: 8.491 MB / 0.7706 GB, free: 202.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-05/1.302, allocations: 28.16 kB / 0.7707 GB, free: 202.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.44e-05/1.303, allocations: 15.84 kB / 0.7707 GB, free: 202.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.514e-05/1.303, allocations: 16.39 kB / 0.7707 GB, free: 202.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0329/1.335, allocations: 16.91 MB / 0.7872 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.442e-05/1.336, allocations: 3.906 kB / 0.7872 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001561/1.337, allocations: 307 kB / 0.7875 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0106/1.348, allocations: 3.964 MB / 0.7914 GB, free: 195.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006104/1.348, allocations: 50.89 kB / 0.7914 GB, free: 195.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03178/1.38, allocations: 27.78 MB / 0.8186 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/1.38, allocations: 12.81 kB / 0.8186 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02037/1.401, allocations: 12.44 MB / 0.8307 GB, free: 160.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002699/1.403, allocations: 0.9596 MB / 0.8317 GB, free: 159.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001583/1.405, allocations: 47.98 kB / 0.8317 GB, free: 159.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003345/1.408, allocations: 171.8 kB / 0.8319 GB, free: 159 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009141/1.409, allocations: 193.2 kB / 0.832 GB, free: 158.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003287/1.41, allocations: 70.19 kB / 0.8321 GB, free: 158.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005453/1.415, allocations: 3.037 MB / 0.8351 GB, free: 155.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 5.11e-07/1.415, allocations: 0 / 0.8351 GB, free: 155.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008367/1.423, allocations: 1.466 MB / 0.8365 GB, free: 154.3 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 (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.0007884/1.424, allocations: 188.3 kB / 0.8367 GB, free: 154.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01254/1.437, allocations: 8.463 MB / 0.845 GB, free: 145.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/1.437, allocations: 4 kB / 0.845 GB, free: 145.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005375/1.442, allocations: 3.541 MB / 0.8484 GB, free: 142.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004155/1.446, allocations: 0.5718 MB / 0.849 GB, free: 141.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02234/1.469, allocations: 12.95 MB / 0.8616 GB, free: 128.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004358/1.473, allocations: 3.901 MB / 0.8654 GB, free: 124.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001292/1.475, allocations: 327.3 kB / 0.8657 GB, free: 124.3 MB / 0.5919 GB Notification: Performance of SimCode: time 1.433e-06/1.475, allocations: 0 / 0.8657 GB, free: 124.3 MB / 0.5919 GB Notification: Performance of Templates: time 0.4271/1.902, allocations: 142.8 MB / 1.005 GB, free: 190.2 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches