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.001208/0.001208, allocations: 111.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 209.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2148/0.2148, allocations: 46.11 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 71.88 kB / 482 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.312, allocations: 62.45 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01354/0.3256, allocations: 13.38 MB / 0.5447 GB, free: 3.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01014/0.3358, allocations: 4.801 MB / 0.5494 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002771/0.3386, allocations: 93.72 kB / 0.5495 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006594/0.3453, allocations: 3.731 MB / 0.5531 GB, free: 11.68 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005736/0.351, allocations: 2.217 MB / 0.5553 GB, free: 9.457 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002309/0.3533, allocations: 1.084 MB / 0.5564 GB, free: 8.371 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008459/0.3618, allocations: 6.665 MB / 0.5629 GB, free: 1.699 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005112/0.367, allocations: 4.498 MB / 0.5673 GB, free: 13.13 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003229/0.3702, allocations: 2.021 MB / 0.5692 GB, free: 11.11 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003648/0.3739, allocations: 2.742 MB / 0.5719 GB, free: 8.355 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008599/0.3748, allocations: 428 kB / 0.5723 GB, free: 7.938 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002466/0.3772, allocations: 1.447 MB / 0.5737 GB, free: 6.488 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002244/0.3795, allocations: 2.474 MB / 0.5761 GB, free: 4.008 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003137/0.3826, allocations: 2.765 MB / 0.5788 GB, free: 1.227 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008918/0.3916, allocations: 8.762 MB / 0.5874 GB, free: 8.438 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3916, allocations: 0 / 0.5874 GB, free: 8.438 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3916, allocations: 0 / 0.5874 GB, free: 8.438 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001955/0.3918, allocations: 0 / 0.5874 GB, free: 8.438 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.01334/0.4052, allocations: 6.242 MB / 0.5935 GB, free: 2.121 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.4052, allocations: 12.03 kB / 0.5935 GB, free: 2.109 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009714/0.415, allocations: 2.521 MB / 0.596 GB, free: 15.58 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007968/0.423, allocations: 3.941 MB / 0.5998 GB, free: 11.58 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001992/0.4232, allocations: 283.7 kB / 0.6001 GB, free: 11.3 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001016/0.4242, allocations: 391.6 kB / 0.6005 GB, free: 10.92 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01852/0.4427, allocations: 11.99 MB / 0.6122 GB, free: 14.13 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001437/0.4429, allocations: 63.42 kB / 0.6122 GB, free: 14.07 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004316/0.4434, allocations: 179.9 kB / 0.6124 GB, free: 13.89 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002799/0.4462, allocations: 2.14 MB / 0.6145 GB, free: 11.75 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01843/0.4646, allocations: 10.37 MB / 0.6246 GB, free: 1.371 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05231/0.5169, allocations: 47.27 MB / 0.6708 GB, free: 0.75 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01363/0.5306, allocations: 5.831 MB / 0.6765 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003626/0.5343, allocations: 2.974 MB / 0.6794 GB, free: 7.785 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01312/0.5474, allocations: 8.864 MB / 0.688 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.645e-05/0.5475, allocations: 51.88 kB / 0.6881 GB, free: 14.69 MB / 0.545 GB Notification: Performance of pre-optimization done (n=206): time 4.989e-06/0.5475, allocations: 0 / 0.6881 GB, free: 14.69 MB / 0.545 GB Notification: Performance of matching and sorting (n=262): time 0.3708/0.9183, allocations: 34.93 MB / 0.7222 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.699e-05/0.9184, allocations: 209.2 kB / 0.7224 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006212/0.9247, allocations: 4.761 MB / 0.7271 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005225/0.9252, allocations: 66.52 kB / 0.7271 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001826/0.9271, allocations: 3.537 MB / 0.7306 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009331/0.928, allocations: 0.9824 MB / 0.7315 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001619/0.9296, allocations: 1.416 MB / 0.7329 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.401e-05/0.9297, allocations: 305.1 kB / 0.7332 GB, free: 158.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003598/0.9333, allocations: 3.176 MB / 0.7363 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00476/0.9381, allocations: 7.041 MB / 0.7432 GB, free: 151.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009218/0.9473, allocations: 10.95 MB / 0.7539 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-05/0.9474, allocations: 42.66 kB / 0.7539 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02282/0.9703, allocations: 13.75 MB / 0.7673 GB, free: 128.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.035e-05/0.9704, allocations: 64 kB / 0.7674 GB, free: 128.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001087/0.9705, allocations: 132 kB / 0.7675 GB, free: 128.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01083/0.9813, allocations: 4.39 MB / 0.7718 GB, free: 124 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004159/0.9855, allocations: 1.478 MB / 0.7733 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03034/1.016, allocations: 29.02 MB / 0.8016 GB, free: 93.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005303/1.021, allocations: 419.9 kB / 0.802 GB, free: 92.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009092/1.022, allocations: 408 kB / 0.8024 GB, free: 92.3 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.003216/1.025, allocations: 2.473 MB / 0.8048 GB, free: 89.82 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008249/1.026, allocations: 434.4 kB / 0.8052 GB, free: 89.39 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01376/1.04, allocations: 8.486 MB / 0.8135 GB, free: 80.88 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.242e-05/1.04, allocations: 24 kB / 0.8135 GB, free: 80.86 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.606e-05/1.04, allocations: 19.94 kB / 0.8135 GB, free: 80.84 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-05/1.04, allocations: 11.95 kB / 0.8136 GB, free: 80.83 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0251/1.065, allocations: 16.92 MB / 0.8301 GB, free: 63.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-05/1.065, allocations: 9.5 kB / 0.8301 GB, free: 63.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/1.067, allocations: 295.5 kB / 0.8304 GB, free: 63.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009089/1.076, allocations: 3.969 MB / 0.8342 GB, free: 59.53 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004253/1.076, allocations: 44 kB / 0.8343 GB, free: 59.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02765/1.104, allocations: 27.79 MB / 0.8614 GB, free: 31.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-06/1.104, allocations: 11.94 kB / 0.8614 GB, free: 31.27 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01812/1.122, allocations: 12.43 MB / 0.8736 GB, free: 18.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/1.124, allocations: 495.3 kB / 0.874 GB, free: 18.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001191/1.125, allocations: 48 kB / 0.8741 GB, free: 18.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002351/1.127, allocations: 179.2 kB / 0.8743 GB, free: 17.96 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007612/1.128, allocations: 190.1 kB / 0.8744 GB, free: 17.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001977/1.128, allocations: 71.98 kB / 0.8745 GB, free: 17.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004416/1.133, allocations: 3.005 MB / 0.8774 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.31e-07/1.133, allocations: 0 / 0.8774 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006685/1.139, allocations: 1.447 MB / 0.8789 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.0004484/1.14, allocations: 196.9 kB / 0.8791 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01066/1.151, allocations: 8.463 MB / 0.8873 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.156e-06/1.151, allocations: 0.9375 kB / 0.8873 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004474/1.155, allocations: 3.546 MB / 0.8908 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/1.158, allocations: 0.5862 MB / 0.8914 GB, free: 444 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02035/1.179, allocations: 12.9 MB / 0.9039 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004331/1.183, 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.001193/1.184, allocations: 331.4 kB / 0.9081 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of SimCode: time 9.42e-07/1.184, allocations: 0 / 0.9081 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.4373/1.622, allocations: 142.4 MB / 1.047 GB, free: 123.5 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