Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002296/0.002296, allocations: 111.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003155/0.003154, allocations: 201.8 kB / 18.92 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.786/2.786, allocations: 227.4 MB / 247.1 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4825/0.4825, allocations: 46.09 MB / 344.4 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003059/0.00306, allocations: 78.39 kB / 417.7 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2571, allocations: 62.44 MB / 480.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.6871/0.9442, allocations: 46.69 MB / 0.5145 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04916/0.9934, allocations: 9.918 MB / 0.5242 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02397/1.017, allocations: 207.9 kB / 0.5244 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01037/1.028, allocations: 2.617 MB / 0.5269 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01247/1.041, allocations: 1.847 MB / 0.5287 GB, free: 6.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004489/1.045, allocations: 0.8573 MB / 0.5296 GB, free: 6.656 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01693/1.062, allocations: 6.057 MB / 0.5355 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01247/1.075, allocations: 3.549 MB / 0.5389 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007067/1.082, allocations: 1.748 MB / 0.5407 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007612/1.09, allocations: 2.786 MB / 0.5434 GB, free: 264 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002952/1.093, allocations: 385.2 kB / 0.5437 GB, free: 264 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007483/1.1, allocations: 1.412 MB / 0.5451 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006307/1.107, allocations: 2.192 MB / 0.5473 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008756/1.115, allocations: 2.452 MB / 0.5497 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01546/1.131, allocations: 6.179 MB / 0.5557 GB, free: 5.578 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.764e-05/1.131, allocations: 4 kB / 0.5557 GB, free: 5.574 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.737e-06/1.131, allocations: 0 / 0.5557 GB, free: 5.574 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003832/1.131, allocations: 3.984 kB / 0.5557 GB, free: 5.57 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.02665/1.158, allocations: 5.482 MB / 0.5611 GB, free: 120 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.032e-05/1.158, allocations: 12.03 kB / 0.5611 GB, free: 108 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01793/1.176, allocations: 2.477 MB / 0.5635 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01537/1.192, allocations: 3.306 MB / 0.5667 GB, free: 10.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005058/1.192, allocations: 237.4 kB / 0.5669 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002988/1.195, allocations: 332.3 kB / 0.5673 GB, free: 9.809 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04211/1.237, allocations: 10.88 MB / 0.5779 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005308/1.238, allocations: 55.52 kB / 0.5779 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002491/1.241, allocations: 155.5 kB / 0.5781 GB, free: 14.13 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005925/1.246, allocations: 2.002 MB / 0.58 GB, free: 12.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03356/1.28, allocations: 9.447 MB / 0.5893 GB, free: 2.676 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09469/1.375, allocations: 41.22 MB / 0.6295 GB, free: 8.438 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02012/1.395, allocations: 4.259 MB / 0.6337 GB, free: 4.039 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00556/1.401, allocations: 1.93 MB / 0.6356 GB, free: 2.102 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02748/1.428, allocations: 7.615 MB / 0.643 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00011/1.428, allocations: 51.5 kB / 0.643 GB, free: 10.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 8.135e-06/1.429, allocations: 4 kB / 0.643 GB, free: 10.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.3029/1.731, allocations: 40.93 MB / 0.683 GB, free: 1.152 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002633/1.732, allocations: 205.9 kB / 0.6832 GB, free: 0.9062 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01481/1.747, allocations: 4.301 MB / 0.6874 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001288/1.748, allocations: 57.7 kB / 0.6875 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.006103/1.754, allocations: 3.168 MB / 0.6906 GB, free: 9.352 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003133/1.757, allocations: 0.8771 MB / 0.6914 GB, free: 8.48 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005055/1.763, allocations: 1.352 MB / 0.6927 GB, free: 7.121 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001553/1.763, allocations: 305.1 kB / 0.693 GB, free: 6.82 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008758/1.771, allocations: 3.628 MB / 0.6966 GB, free: 3.188 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01572/1.787, allocations: 7.298 MB / 0.7037 GB, free: 10.09 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.6777/2.465, allocations: 11.62 MB / 0.715 GB, free: 189.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004767/2.466, allocations: 37.59 kB / 0.7151 GB, free: 189.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.09528/2.561, allocations: 16.2 MB / 0.7309 GB, free: 185 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004812/2.562, allocations: 59.53 kB / 0.731 GB, free: 185 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005446/2.562, allocations: 129.8 kB / 0.7311 GB, free: 185 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0404/2.603, allocations: 6.228 MB / 0.7372 GB, free: 184.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009555/2.612, allocations: 1.497 MB / 0.7386 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06405/2.676, allocations: 27.62 MB / 0.7656 GB, free: 163.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01431/2.691, allocations: 410.9 kB / 0.766 GB, free: 162.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003144/2.694, allocations: 392 kB / 0.7664 GB, free: 162.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (779): * Single equations (assignments): 774 * Array equations: 3 * 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 {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01204/2.706, allocations: 2.213 MB / 0.7685 GB, free: 160.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003325/2.709, allocations: 401.4 kB / 0.7689 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05138/2.761, allocations: 11.3 MB / 0.7799 GB, free: 148.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001064/2.761, allocations: 24 kB / 0.78 GB, free: 148.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.249e-05/2.761, allocations: 12.64 kB / 0.78 GB, free: 148.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.462e-05/2.761, allocations: 14.59 kB / 0.78 GB, free: 148.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08457/2.846, allocations: 20.7 MB / 0.8002 GB, free: 127.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001016/2.846, allocations: 4 kB / 0.8002 GB, free: 127.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004095/2.85, allocations: 379.4 kB / 0.8006 GB, free: 127.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03448/2.885, allocations: 5.32 MB / 0.8058 GB, free: 121.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00124/2.886, allocations: 43.98 kB / 0.8058 GB, free: 121.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04645/2.932, allocations: 22.71 MB / 0.828 GB, free: 98.93 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.617e-05/2.933, allocations: 15.77 kB / 0.828 GB, free: 98.91 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06434/2.997, allocations: 14.6 MB / 0.8423 GB, free: 84.23 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003532/3.001, allocations: 451.9 kB / 0.8427 GB, free: 83.77 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002968/3.004, allocations: 36 kB / 0.8427 GB, free: 83.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006296/3.01, allocations: 189.9 kB / 0.8429 GB, free: 83.55 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001859/3.012, allocations: 153 kB / 0.843 GB, free: 83.39 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008814/3.013, allocations: 60 kB / 0.8431 GB, free: 83.34 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008656/3.022, allocations: 2.709 MB / 0.8457 GB, free: 80.62 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.51e-07/3.022, allocations: 4 kB / 0.8457 GB, free: 80.62 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01398/3.036, allocations: 1.353 MB / 0.8471 GB, free: 79.27 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001845/3.038, allocations: 186 kB / 0.8472 GB, free: 79.09 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.024/3.062, allocations: 9.724 MB / 0.8567 GB, free: 69.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.828e-05/3.062, allocations: 0 / 0.8567 GB, free: 69.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007788/3.07, allocations: 3.217 MB / 0.8599 GB, free: 66.18 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007962/3.078, allocations: 0.4945 MB / 0.8604 GB, free: 65.69 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0472/3.125, allocations: 14.45 MB / 0.8745 GB, free: 51.16 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01374/3.139, allocations: 3.476 MB / 0.8779 GB, free: 47.66 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002916/3.142, allocations: 307.4 kB / 0.8782 GB, free: 47.36 MB / 0.545 GB Notification: Performance of SimCode: time 1.944e-06/3.142, allocations: 0 / 0.8782 GB, free: 47.36 MB / 0.545 GB Notification: Performance of Templates: time 0.9029/4.045, allocations: 109.4 MB / 0.985 GB, free: 130.4 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches