Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001213/0.001213, allocations: 112.9 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 208.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 46.09 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 75.88 kB / 482 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3557, allocations: 62.44 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01753/0.3733, allocations: 13.37 MB / 0.5447 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01092/0.3842, allocations: 4.803 MB / 0.5494 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002794/0.3871, allocations: 94.78 kB / 0.5495 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006978/0.3941, allocations: 3.729 MB / 0.5531 GB, free: 11.67 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00641/0.4006, allocations: 2.159 MB / 0.5552 GB, free: 9.5 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002773/0.4034, allocations: 1.072 MB / 0.5563 GB, free: 8.426 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009748/0.4131, allocations: 6.663 MB / 0.5628 GB, free: 1.754 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005764/0.4189, allocations: 4.51 MB / 0.5672 GB, free: 13.18 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003619/0.4226, allocations: 2.017 MB / 0.5692 GB, free: 11.15 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004704/0.4273, allocations: 2.742 MB / 0.5718 GB, free: 8.402 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001279/0.4286, allocations: 428 kB / 0.5723 GB, free: 7.984 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00299/0.4316, allocations: 1.447 MB / 0.5737 GB, free: 6.535 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002427/0.4341, allocations: 2.474 MB / 0.5761 GB, free: 4.055 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004575/0.4387, allocations: 2.769 MB / 0.5788 GB, free: 1.27 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01086/0.4495, allocations: 8.762 MB / 0.5873 GB, free: 8.48 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4496, allocations: 0 / 0.5873 GB, free: 8.48 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.4496, allocations: 0 / 0.5873 GB, free: 8.48 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002275/0.4498, allocations: 0 / 0.5873 GB, free: 8.48 MB / 446.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.01466/0.4645, allocations: 6.246 MB / 0.5934 GB, free: 2.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.4646, allocations: 8.031 kB / 0.5935 GB, free: 2.152 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01149/0.4761, allocations: 2.521 MB / 0.5959 GB, free: 15.62 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009108/0.4852, allocations: 3.941 MB / 0.5998 GB, free: 11.62 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002831/0.4855, allocations: 283.7 kB / 0.6 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001636/0.4872, allocations: 391.6 kB / 0.6004 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02214/0.5093, allocations: 12 MB / 0.6121 GB, free: 14.17 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001707/0.5095, allocations: 55.5 kB / 0.6122 GB, free: 14.12 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005318/0.5101, allocations: 179.8 kB / 0.6123 GB, free: 13.94 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003364/0.5135, allocations: 2.147 MB / 0.6144 GB, free: 11.79 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02055/0.534, allocations: 10.36 MB / 0.6246 GB, free: 1.418 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06062/0.5947, allocations: 47.27 MB / 0.6707 GB, free: 0.8008 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01523/0.61, allocations: 5.834 MB / 0.6764 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004101/0.6141, allocations: 2.974 MB / 0.6793 GB, free: 7.832 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01524/0.6294, allocations: 8.861 MB / 0.688 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.867e-05/0.6295, allocations: 59.81 kB / 0.688 GB, free: 14.73 MB / 0.545 GB Notification: Performance of pre-optimization done (n=206): time 4.869e-06/0.6295, allocations: 0 / 0.688 GB, free: 14.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=262): time 0.434/1.063, allocations: 34.93 MB / 0.7221 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/1.064, allocations: 205.5 kB / 0.7223 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007385/1.071, allocations: 4.759 MB / 0.727 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005964/1.072, allocations: 68.58 kB / 0.7271 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002025/1.074, allocations: 3.535 MB / 0.7305 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001058/1.075, allocations: 0.9722 MB / 0.7315 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001815/1.077, allocations: 1.424 MB / 0.7329 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.707e-05/1.077, allocations: 311.3 kB / 0.7331 GB, free: 158.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003826/1.08, allocations: 3.171 MB / 0.7362 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004941/1.085, allocations: 7.041 MB / 0.7431 GB, free: 151.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009793/1.095, allocations: 10.96 MB / 0.7538 GB, free: 142.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001129/1.095, allocations: 44.53 kB / 0.7539 GB, free: 142.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02282/1.118, allocations: 13.73 MB / 0.7673 GB, free: 128.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001248/1.118, allocations: 60 kB / 0.7673 GB, free: 128.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001777/1.119, allocations: 136 kB / 0.7675 GB, free: 128.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01172/1.13, allocations: 4.394 MB / 0.7718 GB, free: 124 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004772/1.135, allocations: 1.474 MB / 0.7732 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0328/1.168, allocations: 29.02 MB / 0.8015 GB, free: 93.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006404/1.174, allocations: 415.3 kB / 0.8019 GB, free: 92.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001293/1.176, allocations: 411.9 kB / 0.8023 GB, free: 92.31 MB / 0.5606 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.004904/1.181, allocations: 2.469 MB / 0.8047 GB, free: 89.83 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001189/1.182, allocations: 441.1 kB / 0.8052 GB, free: 89.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01473/1.197, allocations: 8.486 MB / 0.8134 GB, free: 80.89 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.105e-05/1.197, allocations: 28 kB / 0.8135 GB, free: 80.86 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.972e-05/1.197, allocations: 19.94 kB / 0.8135 GB, free: 80.84 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.34e-05/1.197, allocations: 11.95 kB / 0.8135 GB, free: 80.83 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02613/1.223, allocations: 16.92 MB / 0.83 GB, free: 63.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.441e-05/1.223, allocations: 8 kB / 0.83 GB, free: 63.81 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001473/1.224, allocations: 295.5 kB / 0.8303 GB, free: 63.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00957/1.234, allocations: 3.962 MB / 0.8342 GB, free: 59.54 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004772/1.235, allocations: 47.98 kB / 0.8342 GB, free: 59.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02982/1.264, allocations: 27.8 MB / 0.8614 GB, free: 31.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/1.264, allocations: 4 kB / 0.8614 GB, free: 31.28 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01903/1.283, allocations: 12.44 MB / 0.8735 GB, free: 18.69 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/1.285, allocations: 495.3 kB / 0.874 GB, free: 18.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007898/1.286, allocations: 56.05 kB / 0.874 GB, free: 18.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002178/1.288, allocations: 167.7 kB / 0.8742 GB, free: 17.96 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007407/1.289, allocations: 190 kB / 0.8744 GB, free: 17.78 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001896/1.289, allocations: 76 kB / 0.8745 GB, free: 17.71 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003741/1.292, allocations: 3.009 MB / 0.8774 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.6e-07/1.293, allocations: 0 / 0.8774 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006487/1.299, allocations: 1.45 MB / 0.8788 GB, free: 13.26 MB / 0.5606 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.0006877/1.3, allocations: 189.1 kB / 0.879 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01252/1.312, allocations: 8.471 MB / 0.8873 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/1.312, allocations: 0 / 0.8873 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005351/1.318, allocations: 3.531 MB / 0.8907 GB, free: 1.023 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003922/1.322, allocations: 0.5773 MB / 0.8913 GB, free: 456 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02343/1.345, allocations: 12.91 MB / 0.9039 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00485/1.35, allocations: 3.895 MB / 0.9077 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001385/1.351, allocations: 327.4 kB / 0.908 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of SimCode: time 8.92e-07/1.351, allocations: 0 / 0.908 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.4721/1.823, allocations: 142.4 MB / 1.047 GB, free: 123.6 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches