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.0009614/0.0009614, allocations: 98.67 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00112/0.00112, allocations: 192.2 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.239/0.239, allocations: 46.19 MB / 344.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004198/0.0004198, allocations: 11.98 kB / 418.8 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1572, allocations: 63.56 MB / 482.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3556/0.5128, allocations: 48.07 MB / 0.518 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04239/0.5553, allocations: 10.5 MB / 0.5283 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01689/0.5722, allocations: 229.5 kB / 0.5285 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01208/0.5843, allocations: 2.505 MB / 0.531 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03039/0.6148, allocations: 7.478 MB / 0.5383 GB, free: 5.145 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005176/0.62, allocations: 0.8508 MB / 0.5391 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.08543/0.7054, allocations: 62.92 MB / 0.6005 GB, free: 14.04 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01093/0.7164, allocations: 5.104 MB / 0.6055 GB, free: 8.879 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005425/0.7219, allocations: 1.872 MB / 0.6073 GB, free: 7 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005739/0.7276, allocations: 3.124 MB / 0.6104 GB, free: 3.867 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001687/0.7294, allocations: 236 kB / 0.6106 GB, free: 3.637 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003999/0.7334, allocations: 1.112 MB / 0.6117 GB, free: 2.523 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004866/0.7383, allocations: 2.54 MB / 0.6142 GB, free: 15.98 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002839/0.7411, allocations: 1.181 MB / 0.6153 GB, free: 14.78 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01262/0.7538, allocations: 7.895 MB / 0.6231 GB, free: 6.867 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.7538, allocations: 0 / 0.6231 GB, free: 6.867 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.7538, allocations: 4 kB / 0.6231 GB, free: 6.863 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004473/0.7543, allocations: 0 / 0.6231 GB, free: 6.863 MB / 462.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.016/0.7703, allocations: 6.126 MB / 0.629 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.7703, allocations: 12.03 kB / 0.6291 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01592/0.7863, allocations: 4.024 MB / 0.633 GB, free: 12.61 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01163/0.7979, allocations: 3.993 MB / 0.6369 GB, free: 8.551 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003433/0.7983, allocations: 316 kB / 0.6372 GB, free: 8.238 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001778/0.8001, allocations: 439.6 kB / 0.6376 GB, free: 7.809 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03431/0.8344, allocations: 15.72 MB / 0.653 GB, free: 7.156 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003217/0.8348, allocations: 63.52 kB / 0.653 GB, free: 7.094 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002349/0.8372, allocations: 199.8 kB / 0.6532 GB, free: 6.898 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005604/0.8428, allocations: 3.223 MB / 0.6564 GB, free: 3.672 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03041/0.8733, allocations: 14.13 MB / 0.6702 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4015/1.275, allocations: 57.74 MB / 0.7265 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01529/1.29, allocations: 6.583 MB / 0.733 GB, free: 145.3 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005444/1.296, allocations: 3.735 MB / 0.7366 GB, free: 144 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02223/1.318, allocations: 14.8 MB / 0.7511 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.806e-05/1.318, allocations: 59.34 kB / 0.7511 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 7.624e-06/1.318, allocations: 3.969 kB / 0.7511 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.133/1.451, allocations: 42.73 MB / 0.7929 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.197e-05/1.451, allocations: 213.5 kB / 0.7931 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009141/1.46, allocations: 5.43 MB / 0.7984 GB, free: 97.44 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008773/1.461, allocations: 73.7 kB / 0.7984 GB, free: 97.36 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002695/1.464, allocations: 4.351 MB / 0.8027 GB, free: 93.02 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001813/1.466, allocations: 1.265 MB / 0.8039 GB, free: 91.76 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001213/1.467, allocations: 176.6 kB / 0.8041 GB, free: 91.59 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000692/1.468, allocations: 0.6944 MB / 0.8048 GB, free: 90.89 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006857/1.475, allocations: 4.804 MB / 0.8094 GB, free: 86.07 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009565/1.484, allocations: 9.786 MB / 0.819 GB, free: 73.92 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009065/1.493, allocations: 6.696 MB / 0.8255 GB, free: 67.27 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001507/1.494, allocations: 51.94 kB / 0.8256 GB, free: 67.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04282/1.536, allocations: 19.56 MB / 0.8447 GB, free: 47.62 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003138/1.537, allocations: 80 kB / 0.8448 GB, free: 47.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004197/1.537, allocations: 172.9 kB / 0.8449 GB, free: 47.37 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01933/1.556, allocations: 6 MB / 0.8508 GB, free: 41.36 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007353/1.564, allocations: 2.121 MB / 0.8529 GB, free: 39.24 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02826/1.592, allocations: 24.78 MB / 0.8771 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008306/1.601, allocations: 0.5707 MB / 0.8776 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002107/1.603, allocations: 0.5123 MB / 0.8781 GB, free: 13.1 MB / 0.5294 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006901/1.61, allocations: 3.094 MB / 0.8811 GB, free: 9.996 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001884/1.611, allocations: 497.5 kB / 0.8816 GB, free: 9.504 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03083/1.642, allocations: 13.01 MB / 0.8943 GB, free: 12.42 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001154/1.643, allocations: 56.84 kB / 0.8944 GB, free: 12.37 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-05/1.643, allocations: 8 kB / 0.8944 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.575e-05/1.643, allocations: 11.95 kB / 0.8944 GB, free: 12.35 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05873/1.701, allocations: 24.74 MB / 0.9186 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-05/1.702, allocations: 12.09 kB / 0.9186 GB, free: 3.117 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003216/1.705, allocations: 0.5772 MB / 0.9191 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.345/2.05, allocations: 5.001 MB / 0.924 GB, free: 194.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008574/2.051, allocations: 57.16 kB / 0.9241 GB, free: 194.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02769/2.078, allocations: 19.98 MB / 0.9436 GB, free: 187 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.323e-06/2.078, allocations: 6.875 kB / 0.9436 GB, free: 187 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.037/2.115, allocations: 17.57 MB / 0.9607 GB, free: 180.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001782/2.117, allocations: 0.5423 MB / 0.9613 GB, free: 180.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001973/2.119, allocations: 59.42 kB / 0.9613 GB, free: 180.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003954/2.123, allocations: 262.1 kB / 0.9616 GB, free: 180.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001055/2.124, allocations: 202.2 kB / 0.9618 GB, free: 180.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005802/2.125, allocations: 88.22 kB / 0.9619 GB, free: 180.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006174/2.131, allocations: 3.359 MB / 0.9651 GB, free: 179.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.01e-07/2.131, allocations: 0 / 0.9651 GB, free: 179.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01133/2.142, allocations: 1.741 MB / 0.9668 GB, free: 179.3 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 (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001183/2.144, allocations: 204.7 kB / 0.967 GB, free: 179.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01704/2.161, allocations: 10.95 MB / 0.9777 GB, free: 169.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/2.161, allocations: 0 / 0.9777 GB, free: 169.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005953/2.167, allocations: 4.13 MB / 0.9818 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006943/2.174, allocations: 0.583 MB / 0.9823 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03343/2.207, allocations: 18.65 MB / 1.001 GB, free: 146.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006795/2.214, allocations: 4.614 MB / 1.005 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.007055/2.221, allocations: 2.974 MB / 1.008 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001523/2.223, allocations: 355.4 kB / 1.008 GB, free: 138.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.854e-06/2.223, allocations: 4 kB / 1.008 GB, free: 138.4 MB / 0.5606 GB Notification: Performance of Templates: time 0.1138/2.336, allocations: 75.3 MB / 1.082 GB, free: 63.13 MB / 0.5606 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