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.001592/0.001592, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00204/0.00204, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.237/2.237, allocations: 227.4 MB / 246.9 MB, free: 9.027 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3334/0.3334, allocations: 46.1 MB / 344.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 75.69 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1909/0.1931, allocations: 62.44 MB / 479.9 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.5421/0.7352, allocations: 61.94 MB / 0.5292 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05736/0.7926, allocations: 12.77 MB / 0.5416 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02814/0.8209, allocations: 277.1 kB / 0.5419 GB, free: 1.488 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01063/0.8316, allocations: 3.726 MB / 0.5455 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01088/0.8426, allocations: 2.036 MB / 0.5475 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004969/0.8476, allocations: 0.9892 MB / 0.5485 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01877/0.8664, allocations: 9.268 MB / 0.5575 GB, free: 7.984 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009704/0.8762, allocations: 4.429 MB / 0.5619 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006072/0.8823, allocations: 1.795 MB / 0.5636 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007642/0.89, allocations: 2.932 MB / 0.5665 GB, free: 14.76 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002383/0.8924, allocations: 296 kB / 0.5668 GB, free: 14.47 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00592/0.8984, allocations: 1.381 MB / 0.5681 GB, free: 13.09 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005549/0.904, allocations: 2.349 MB / 0.5704 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007752/0.9118, allocations: 2.648 MB / 0.573 GB, free: 8.07 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01336/0.9252, allocations: 6.9 MB / 0.5797 GB, free: 1.156 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.947e-06/0.9253, allocations: 0 / 0.5797 GB, free: 1.156 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.9253, allocations: 0 / 0.5797 GB, free: 1.156 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004359/0.9257, allocations: 0 / 0.5797 GB, free: 1.156 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.0288/0.9546, allocations: 6.227 MB / 0.5858 GB, free: 10.86 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.69e-05/0.9547, allocations: 8.031 kB / 0.5858 GB, free: 10.85 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01775/0.9724, allocations: 2.532 MB / 0.5883 GB, free: 8.305 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01508/0.9875, allocations: 3.851 MB / 0.5921 GB, free: 4.398 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005111/0.9881, allocations: 283.8 kB / 0.5923 GB, free: 4.121 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00272/0.9909, allocations: 387.6 kB / 0.5927 GB, free: 3.742 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04413/1.035, allocations: 12 MB / 0.6044 GB, free: 6.953 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004986/1.036, allocations: 59.42 kB / 0.6045 GB, free: 6.895 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002383/1.038, allocations: 183.8 kB / 0.6046 GB, free: 6.715 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006567/1.045, allocations: 2.14 MB / 0.6067 GB, free: 4.574 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03725/1.082, allocations: 10.37 MB / 0.6169 GB, free: 10.18 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09807/1.18, allocations: 47.49 MB / 0.6632 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01612/1.196, allocations: 5.824 MB / 0.6689 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004563/1.201, allocations: 2.982 MB / 0.6718 GB, free: 408 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01729/1.218, allocations: 8.869 MB / 0.6805 GB, free: 7.367 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.739e-05/1.218, allocations: 59.88 kB / 0.6806 GB, free: 7.301 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=206): time 5.14e-06/1.218, allocations: 0 / 0.6806 GB, free: 7.301 MB / 0.5137 GB Notification: Performance of matching and sorting (n=262): time 0.1413/1.36, allocations: 34.91 MB / 0.7146 GB, free: 4.328 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001498/1.36, allocations: 213.8 kB / 0.7149 GB, free: 4.074 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3439/1.704, allocations: 4.756 MB / 0.7195 GB, free: 196.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007568/1.705, allocations: 64.64 kB / 0.7196 GB, free: 196.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00357/1.708, allocations: 3.548 MB / 0.723 GB, free: 195.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001662/1.71, allocations: 0.9702 MB / 0.724 GB, free: 194.4 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003467/1.713, allocations: 1.425 MB / 0.7254 GB, free: 193.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.621e-05/1.713, allocations: 301.7 kB / 0.7257 GB, free: 193.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006875/1.72, allocations: 3.174 MB / 0.7288 GB, free: 192.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0119/1.732, allocations: 7.042 MB / 0.7356 GB, free: 186.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01592/1.748, allocations: 10.95 MB / 0.7463 GB, free: 177.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002885/1.749, allocations: 38.41 kB / 0.7464 GB, free: 177.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.03134/1.78, allocations: 13.75 MB / 0.7598 GB, free: 173 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001454/1.78, allocations: 62.75 kB / 0.7598 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002087/1.78, allocations: 137 kB / 0.76 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01339/1.794, allocations: 4.383 MB / 0.7643 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008893/1.803, allocations: 1.481 MB / 0.7657 GB, free: 171.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05901/1.862, allocations: 26.85 MB / 0.7919 GB, free: 144.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01001/1.872, allocations: 411.3 kB / 0.7923 GB, free: 144.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002524/1.874, allocations: 410.7 kB / 0.7927 GB, free: 143.7 MB / 0.545 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.009154/1.884, allocations: 2.474 MB / 0.7951 GB, free: 141.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002363/1.886, allocations: 438.4 kB / 0.7955 GB, free: 140.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03015/1.916, allocations: 8.471 MB / 0.8038 GB, free: 132.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.493e-05/1.916, allocations: 31.75 kB / 0.8038 GB, free: 132.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.663e-05/1.916, allocations: 12 kB / 0.8039 GB, free: 132.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.67e-05/1.917, allocations: 11.95 kB / 0.8039 GB, free: 132.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05358/1.97, allocations: 17.09 MB / 0.8206 GB, free: 115.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.911e-05/1.97, allocations: 4 kB / 0.8206 GB, free: 115 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002421/1.973, allocations: 303.4 kB / 0.8208 GB, free: 114.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01813/1.991, allocations: 4.108 MB / 0.8249 GB, free: 110.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008842/1.992, allocations: 48 kB / 0.8249 GB, free: 110.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.042/2.034, allocations: 25.64 MB / 0.8499 GB, free: 84.55 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/2.034, allocations: 15.88 kB / 0.85 GB, free: 84.54 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02204/2.056, allocations: 12.42 MB / 0.8621 GB, free: 71.98 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00162/2.058, allocations: 495.3 kB / 0.8626 GB, free: 71.47 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001598/2.059, allocations: 59.92 kB / 0.8626 GB, free: 71.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003286/2.063, allocations: 167.7 kB / 0.8628 GB, free: 71.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001074/2.064, allocations: 198.1 kB / 0.863 GB, free: 71.06 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003645/2.064, allocations: 64 kB / 0.863 GB, free: 71 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005534/2.07, allocations: 3.009 MB / 0.866 GB, free: 67.99 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.91e-07/2.07, allocations: 0 / 0.866 GB, free: 67.99 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008766/2.078, allocations: 1.454 MB / 0.8674 GB, free: 66.54 MB / 0.545 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.0009048/2.079, allocations: 181 kB / 0.8676 GB, free: 66.36 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01413/2.093, allocations: 8.433 MB / 0.8758 GB, free: 57.91 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/2.093, allocations: 3.938 kB / 0.8758 GB, free: 57.91 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006113/2.1, allocations: 3.566 MB / 0.8793 GB, free: 54.31 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005937/2.106, allocations: 0.5477 MB / 0.8798 GB, free: 53.76 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0266/2.132, allocations: 15.43 MB / 0.8949 GB, free: 38.24 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006396/2.139, allocations: 3.899 MB / 0.8987 GB, free: 34.31 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001388/2.14, allocations: 323.4 kB / 0.899 GB, free: 33.99 MB / 0.545 GB Notification: Performance of SimCode: time 1.163e-06/2.14, allocations: 0 / 0.899 GB, free: 33.99 MB / 0.545 GB Notification: Performance of Templates: time 0.5988/2.739, allocations: 141.6 MB / 1.037 GB, free: 80.36 MB / 0.545 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