Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001151/0.001151, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.4 MB / 246.3 MB, free: 10.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2415/0.2415, allocations: 46.1 MB / 343.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 79.17 kB / 416.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1449, allocations: 62.44 MB / 479.3 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.364/0.5089, allocations: 53.1 MB / 0.5199 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03767/0.5467, allocations: 11.09 MB / 0.5307 GB, free: 6.426 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01853/0.5652, allocations: 231.6 kB / 0.531 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007669/0.5731, allocations: 3.107 MB / 0.534 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008917/0.582, allocations: 2.378 MB / 0.5363 GB, free: 4.684 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002971/0.585, allocations: 0.9135 MB / 0.5372 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01453/0.5996, allocations: 9.976 MB / 0.5469 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008987/0.6086, allocations: 4.282 MB / 0.5511 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008239/0.6169, allocations: 1.958 MB / 0.553 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007536/0.6245, allocations: 3.433 MB / 0.5564 GB, free: 7.477 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002457/0.627, allocations: 332 kB / 0.5567 GB, free: 7.152 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006047/0.6331, allocations: 1.409 MB / 0.5581 GB, free: 5.797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005738/0.6389, allocations: 2.735 MB / 0.5608 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0108/0.6497, allocations: 3.083 MB / 0.5638 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01728/0.667, allocations: 9.872 MB / 0.5734 GB, free: 6.344 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.6671, allocations: 4 kB / 0.5734 GB, free: 6.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.6671, allocations: 0 / 0.5734 GB, free: 6.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004651/0.6676, allocations: 0 / 0.5734 GB, free: 6.34 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02477/0.6924, allocations: 7.28 MB / 0.5805 GB, free: 15.15 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.059e-05/0.6925, allocations: 12.03 kB / 0.5805 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01814/0.7107, allocations: 3.929 MB / 0.5844 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0129/0.7236, allocations: 4.067 MB / 0.5883 GB, free: 7.109 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005299/0.7242, allocations: 317.5 kB / 0.5886 GB, free: 6.852 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003196/0.7274, allocations: 431.9 kB / 0.5891 GB, free: 6.488 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0376/0.765, allocations: 15.74 MB / 0.6044 GB, free: 5.996 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003483/0.7654, allocations: 59.47 kB / 0.6045 GB, free: 5.938 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002158/0.7676, allocations: 197.3 kB / 0.6047 GB, free: 5.801 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005917/0.7735, allocations: 3.224 MB / 0.6078 GB, free: 2.594 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03469/0.8083, allocations: 14.16 MB / 0.6217 GB, free: 4.402 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09512/0.9034, allocations: 57.76 MB / 0.6781 GB, free: 9.129 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01507/0.9186, allocations: 6.601 MB / 0.6845 GB, free: 2.273 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005758/0.9244, allocations: 3.751 MB / 0.6882 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0267/0.9511, allocations: 14.8 MB / 0.7026 GB, free: 15.17 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.984e-05/0.9512, allocations: 60.56 kB / 0.7027 GB, free: 15.1 MB / 0.545 GB Notification: Performance of pre-optimization done (n=292): time 6.863e-06/0.9512, allocations: 4 kB / 0.7027 GB, free: 15.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=342): time 0.43/1.381, allocations: 42.47 MB / 0.7442 GB, free: 188.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001399/1.381, allocations: 216.4 kB / 0.7444 GB, free: 188.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009936/1.391, allocations: 5.461 MB / 0.7497 GB, free: 185.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001146/1.393, allocations: 77.16 kB / 0.7498 GB, free: 185.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00356/1.396, allocations: 4.341 MB / 0.754 GB, free: 182 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002671/1.399, allocations: 1.27 MB / 0.7552 GB, free: 180.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003434/1.402, allocations: 1.857 MB / 0.7571 GB, free: 179.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.491e-05/1.402, allocations: 305.1 kB / 0.7573 GB, free: 179.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006632/1.409, allocations: 4.84 MB / 0.7621 GB, free: 176.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01016/1.419, allocations: 9.822 MB / 0.7717 GB, free: 164.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01656/1.436, allocations: 15.61 MB / 0.7869 GB, free: 146.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001642/1.436, allocations: 52 kB / 0.787 GB, free: 146.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04112/1.477, allocations: 19.62 MB / 0.8061 GB, free: 126.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.512e-05/1.477, allocations: 80.03 kB / 0.8062 GB, free: 126.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001591/1.477, allocations: 176 kB / 0.8064 GB, free: 126.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02138/1.499, allocations: 5.943 MB / 0.8122 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007028/1.506, allocations: 2.121 MB / 0.8142 GB, free: 118.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02712/1.533, allocations: 24.77 MB / 0.8384 GB, free: 93.24 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00853/1.542, allocations: 0.5655 MB / 0.839 GB, free: 92.67 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001911/1.544, allocations: 0.5151 MB / 0.8395 GB, free: 92.16 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1099): * Single equations (assignments): 1091 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006577/1.55, allocations: 3.096 MB / 0.8425 GB, free: 89.05 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001618/1.552, allocations: 497.5 kB / 0.843 GB, free: 88.56 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02851/1.58, allocations: 13.01 MB / 0.8557 GB, free: 75.49 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.908e-05/1.58, allocations: 52 kB / 0.8557 GB, free: 75.44 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.059e-05/1.581, allocations: 12 kB / 0.8557 GB, free: 75.43 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.502e-05/1.581, allocations: 19.88 kB / 0.8558 GB, free: 75.41 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04739/1.628, allocations: 24.69 MB / 0.8799 GB, free: 50.26 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.696e-05/1.628, allocations: 4 kB / 0.8799 GB, free: 50.25 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003169/1.631, allocations: 0.5866 MB / 0.8805 GB, free: 49.67 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01838/1.65, allocations: 4.974 MB / 0.8853 GB, free: 44.68 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008292/1.651, allocations: 59.77 kB / 0.8854 GB, free: 44.63 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02136/1.672, allocations: 19.97 MB / 0.9049 GB, free: 24.39 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/1.672, allocations: 11.94 kB / 0.9049 GB, free: 24.38 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3184/1.99, allocations: 17.57 MB / 0.922 GB, free: 177.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002152/1.993, allocations: 0.5277 MB / 0.9226 GB, free: 177 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001462/1.994, allocations: 67.23 kB / 0.9226 GB, free: 176.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003123/1.997, allocations: 265.6 kB / 0.9229 GB, free: 176.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009518/1.998, allocations: 197.5 kB / 0.9231 GB, free: 176.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002972/1.998, allocations: 80.69 kB / 0.9231 GB, free: 176.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007094/2.006, allocations: 3.393 MB / 0.9264 GB, free: 175.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.51e-07/2.006, allocations: 0 / 0.9264 GB, free: 175.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01106/2.017, allocations: 1.744 MB / 0.9282 GB, free: 175.6 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 (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009107/2.018, allocations: 207.8 kB / 0.9284 GB, free: 175.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01748/2.035, allocations: 11 MB / 0.9391 GB, free: 171.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.689e-05/2.035, allocations: 6.75 kB / 0.9391 GB, free: 171.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006029/2.041, allocations: 4.122 MB / 0.9431 GB, free: 169.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00651/2.048, allocations: 0.5913 MB / 0.9437 GB, free: 169.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03903/2.087, allocations: 19.26 MB / 0.9625 GB, free: 159.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01004/2.097, allocations: 4.615 MB / 0.967 GB, free: 155.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01258/2.11, allocations: 2.982 MB / 0.9699 GB, free: 153.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003074/2.113, allocations: 353 kB / 0.9703 GB, free: 153.3 MB / 0.545 GB Notification: Performance of SimCode: time 2.023e-06/2.113, allocations: 0 / 0.9703 GB, free: 153.3 MB / 0.545 GB Notification: Performance of Templates: time 0.136/2.249, allocations: 78.19 MB / 1.047 GB, free: 75.45 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches