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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001188/0.001188, allocations: 197.8 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 227.2 MB / 245 MB, free: 7.633 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009374/0.0009374, allocations: 101.1 kB / 297.3 MB, free: 6.172 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3172/0.3172, allocations: 45.24 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002559/0.0002559, allocations: 4 kB / 468.4 MB, free: 7.738 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3436, allocations: 63.24 MB / 0.5192 GB, free: 43.98 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1165/0.4601, allocations: 110.1 MB / 0.6267 GB, free: 11.53 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.4604, allocations: 79.95 kB / 0.6267 GB, free: 11.45 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5046/0.9651, allocations: 108.8 MB / 0.733 GB, free: 96.64 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.424e-06/0.9651, allocations: 1.156 kB / 0.733 GB, free: 96.64 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004147/0.9655, allocations: 101.3 kB / 0.7331 GB, free: 96.64 MB / 0.4948 GB 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.0193/0.9849, allocations: 5.742 MB / 0.7387 GB, free: 94.33 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.9849, allocations: 9.406 kB / 0.7387 GB, free: 94.33 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0256/1.011, allocations: 6.872 MB / 0.7454 GB, free: 93.97 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01627/1.027, allocations: 6.453 MB / 0.7517 GB, free: 93.21 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003085/1.027, allocations: 377.4 kB / 0.7521 GB, free: 93.2 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001884/1.029, allocations: 0.4942 MB / 0.7525 GB, free: 93.19 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02602/1.055, allocations: 12.34 MB / 0.7646 GB, free: 87.19 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003538/1.055, allocations: 76.08 kB / 0.7647 GB, free: 87.15 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0019/1.057, allocations: 244.3 kB / 0.7649 GB, free: 87.02 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001784/1.059, allocations: 1.14 MB / 0.766 GB, free: 86.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01878/1.078, allocations: 10.28 MB / 0.7761 GB, free: 83.57 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05228/1.13, allocations: 55.66 MB / 0.8304 GB, free: 39.01 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01254/1.143, allocations: 5.703 MB / 0.836 GB, free: 33.16 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01265/1.156, allocations: 8.77 MB / 0.8445 GB, free: 24.29 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/1.156, allocations: 59.88 kB / 0.8446 GB, free: 24.22 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=206): time 4.268e-06/1.156, allocations: 0 / 0.8446 GB, free: 24.22 MB / 0.4948 GB Notification: Performance of matching and sorting (n=265): time 0.1113/1.267, allocations: 35.88 MB / 0.8796 GB, free: 4.246 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/1.267, allocations: 210 kB / 0.8798 GB, free: 3.996 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008994/1.276, allocations: 4.196 MB / 0.8839 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006727/1.277, allocations: 65.7 kB / 0.884 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003432/1.28, allocations: 3.59 MB / 0.8875 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001619/1.282, allocations: 0.9817 MB / 0.8885 GB, free: 11.17 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000975/1.283, allocations: 136 kB / 0.8886 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0006897/1.284, allocations: 0.5872 MB / 0.8892 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005802/1.289, allocations: 3.004 MB / 0.8921 GB, free: 7.438 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2593/1.549, allocations: 6.817 MB / 0.8988 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007345/1.556, allocations: 4.426 MB / 0.9031 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001687/1.556, allocations: 40.91 kB / 0.9031 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.0258/1.582, allocations: 13.08 MB / 0.9159 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000156/1.582, allocations: 60.75 kB / 0.9159 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002343/1.583, allocations: 136.8 kB / 0.9161 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01067/1.593, allocations: 4.087 MB / 0.9201 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004768/1.598, allocations: 1.417 MB / 0.9215 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03858/1.637, allocations: 26.88 MB / 0.9477 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00591/1.643, allocations: 395.9 kB / 0.9481 GB, free: 102 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001409/1.644, allocations: 399 kB / 0.9485 GB, free: 101.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * 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 (763): * Single equations (assignments): 757 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.005209/1.649, allocations: 2.482 MB / 0.9509 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009838/1.65, allocations: 445.5 kB / 0.9513 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01524/1.666, allocations: 8.107 MB / 0.9592 GB, free: 98.03 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.145e-05/1.666, allocations: 28.47 kB / 0.9593 GB, free: 98.03 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.449e-05/1.666, allocations: 17.86 kB / 0.9593 GB, free: 98.03 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.614e-05/1.666, allocations: 14.11 kB / 0.9593 GB, free: 98.03 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03338/1.699, allocations: 16.69 MB / 0.9756 GB, free: 91.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.931e-05/1.699, allocations: 6.703 kB / 0.9756 GB, free: 91.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/1.701, allocations: 300.7 kB / 0.9759 GB, free: 91.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009961/1.711, allocations: 3.768 MB / 0.9796 GB, free: 90.93 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005012/1.711, allocations: 55.41 kB / 0.9796 GB, free: 90.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02956/1.741, allocations: 25.63 MB / 1.005 GB, free: 76.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.858e-06/1.741, allocations: 11.94 kB / 1.005 GB, free: 76.04 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01916/1.76, allocations: 12.64 MB / 1.017 GB, free: 65.17 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001577/1.762, allocations: 491.2 kB / 1.017 GB, free: 64.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001409/1.763, allocations: 47.89 kB / 1.018 GB, free: 64.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003239/1.766, allocations: 172.2 kB / 1.018 GB, free: 64.54 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009575/1.767, allocations: 188.3 kB / 1.018 GB, free: 64.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003481/1.768, allocations: 74.97 kB / 1.018 GB, free: 64.35 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006386/1.774, allocations: 2.98 MB / 1.021 GB, free: 61.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.4e-07/1.774, allocations: 0 / 1.021 GB, free: 61.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007343/1.781, allocations: 1.426 MB / 1.022 GB, free: 60.49 MB / 0.5261 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 (161): * Single equations (assignments): 155 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007636/1.782, allocations: 201.6 kB / 1.022 GB, free: 60.31 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01258/1.795, allocations: 8.137 MB / 1.03 GB, free: 53.16 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/1.795, allocations: 0 / 1.03 GB, free: 53.16 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005097/1.8, allocations: 3.477 MB / 1.034 GB, free: 50.07 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003453/1.803, allocations: 0.5544 MB / 1.034 GB, free: 49.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02271/1.826, allocations: 14.33 MB / 1.048 GB, free: 35.61 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005835/1.832, allocations: 4.046 MB / 1.052 GB, free: 31.55 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005203/1.837, allocations: 2.024 MB / 1.054 GB, free: 29.54 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001047/1.838, allocations: 279.4 kB / 1.054 GB, free: 29.27 MB / 0.5261 GB Notification: Performance of SimCode: time 1.343e-06/1.838, allocations: 0 / 1.054 GB, free: 29.27 MB / 0.5261 GB Notification: Performance of Templates: time 0.3461/2.184, allocations: 66.08 MB / 1.119 GB, free: 131.8 MB / 0.5573 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches