Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009647/0.0009647, allocations: 201 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 226.5 MB / 243.1 MB, free: 12.37 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008134/0.0008136, allocations: 100.5 kB / 295.1 MB, free: 4.363 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1767/0.1767, allocations: 44.84 MB / 392 MB, free: 11.35 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002496/0.0002496, allocations: 4 kB / 464.7 MB, free: 68.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1101, allocations: 62.96 MB / 0.5153 GB, free: 5.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.2608/0.3709, allocations: 42.58 MB / 0.5569 GB, free: 9.828 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02216/0.3931, allocations: 9.623 MB / 0.5663 GB, free: 9.258 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008953/0.4021, allocations: 201.7 kB / 0.5665 GB, free: 9.227 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007189/0.4094, allocations: 2.175 MB / 0.5686 GB, free: 8.758 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02014/0.4295, allocations: 6.61 MB / 0.5751 GB, free: 6.816 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003651/0.4332, allocations: 0.7734 MB / 0.5758 GB, free: 6.59 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.06499/0.4982, allocations: 61.46 MB / 0.6358 GB, free: 7.465 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006715/0.505, allocations: 4.241 MB / 0.64 GB, free: 3.191 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00359/0.5086, allocations: 1.436 MB / 0.6414 GB, free: 1.75 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004088/0.5127, allocations: 2.403 MB / 0.6437 GB, free: 15.34 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009162/0.5136, allocations: 176 kB / 0.6439 GB, free: 15.17 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002593/0.5163, allocations: 1.069 MB / 0.6449 GB, free: 14.1 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002183/0.5185, allocations: 1.948 MB / 0.6469 GB, free: 12.14 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001685/0.5202, allocations: 0.8855 MB / 0.6477 GB, free: 11.25 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006004/0.5262, allocations: 6.017 MB / 0.6536 GB, free: 5.23 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.5262, allocations: 5.422 kB / 0.6536 GB, free: 5.227 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5262, allocations: 0 / 0.6536 GB, free: 5.227 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002244/0.5264, allocations: 0 / 0.6536 GB, free: 5.227 MB / 442.7 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.009426/0.5359, allocations: 4.653 MB / 0.6581 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.5359, allocations: 8.031 kB / 0.6582 GB, free: 0.5078 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01044/0.5464, allocations: 2.54 MB / 0.6606 GB, free: 13.95 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006613/0.553, allocations: 3.243 MB / 0.6638 GB, free: 10.65 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002241/0.5532, allocations: 234.1 kB / 0.664 GB, free: 10.42 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001371/0.5546, allocations: 331.7 kB / 0.6643 GB, free: 10.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01798/0.5726, allocations: 10.88 MB / 0.675 GB, free: 14.47 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001607/0.5728, allocations: 51.5 kB / 0.675 GB, free: 14.42 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006644/0.5735, allocations: 151.9 kB / 0.6752 GB, free: 14.27 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002945/0.5764, allocations: 2.006 MB / 0.6771 GB, free: 12.26 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01732/0.5938, allocations: 9.432 MB / 0.6863 GB, free: 2.816 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05055/0.6443, allocations: 41.22 MB / 0.7266 GB, free: 8.363 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01028/0.6547, allocations: 4.256 MB / 0.7307 GB, free: 3.965 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002749/0.6574, allocations: 1.92 MB / 0.7326 GB, free: 2.035 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/0.6688, allocations: 7.61 MB / 0.74 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/0.6689, allocations: 59.5 kB / 0.7401 GB, free: 9.984 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=180): time 4.699e-06/0.6689, allocations: 0 / 0.7401 GB, free: 9.984 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236): time 0.3663/1.035, allocations: 41.42 MB / 0.7806 GB, free: 177.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.547e-05/1.035, allocations: 208.1 kB / 0.7807 GB, free: 177 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004561/1.04, allocations: 4.279 MB / 0.7849 GB, free: 172.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004789/1.04, allocations: 57.7 kB / 0.785 GB, free: 172.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00129/1.042, allocations: 3.166 MB / 0.7881 GB, free: 169.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007894/1.042, allocations: 0.8811 MB / 0.7889 GB, free: 168.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003114/1.043, allocations: 132 kB / 0.7891 GB, free: 168.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002269/1.043, allocations: 0.579 MB / 0.7896 GB, free: 168.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003786/1.047, allocations: 3.609 MB / 0.7932 GB, free: 164.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004935/1.052, allocations: 7.27 MB / 0.8003 GB, free: 155.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005376/1.057, allocations: 4.956 MB / 0.8051 GB, free: 150.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.236e-05/1.057, allocations: 40 kB / 0.8051 GB, free: 150.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.0315/1.089, allocations: 16.17 MB / 0.8209 GB, free: 134.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.478e-05/1.089, allocations: 63.95 kB / 0.821 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001253/1.089, allocations: 132 kB / 0.8211 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02041/1.109, allocations: 6.276 MB / 0.8272 GB, free: 127.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004533/1.114, allocations: 1.489 MB / 0.8287 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02681/1.141, allocations: 26.15 MB / 0.8542 GB, free: 99.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00468/1.146, allocations: 403.4 kB / 0.8546 GB, free: 99.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005112/1.146, allocations: 389.5 kB / 0.855 GB, free: 99.14 MB / 0.5261 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 (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 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00259/1.149, allocations: 2.212 MB / 0.8571 GB, free: 96.91 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005462/1.149, allocations: 394.9 kB / 0.8575 GB, free: 96.52 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02378/1.173, allocations: 11.31 MB / 0.8686 GB, free: 85.19 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.421e-05/1.173, allocations: 28 kB / 0.8686 GB, free: 85.16 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/1.173, allocations: 12.08 kB / 0.8686 GB, free: 85.15 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.233e-05/1.173, allocations: 15.95 kB / 0.8686 GB, free: 85.14 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03467/1.208, allocations: 20.75 MB / 0.8889 GB, free: 63.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-05/1.208, allocations: 4.062 kB / 0.8889 GB, free: 63.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001822/1.21, allocations: 391.4 kB / 0.8893 GB, free: 63.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01765/1.227, allocations: 5.34 MB / 0.8945 GB, free: 58.21 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004131/1.228, allocations: 48.89 kB / 0.8945 GB, free: 58.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02201/1.25, allocations: 21.21 MB / 0.9152 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/1.25, allocations: 7.938 kB / 0.9152 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02646/1.276, allocations: 14.6 MB / 0.9295 GB, free: 21.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/1.277, allocations: 455.8 kB / 0.9299 GB, free: 21.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005768/1.278, allocations: 48.92 kB / 0.93 GB, free: 21.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00208/1.28, allocations: 179.8 kB / 0.9302 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004417/1.28, allocations: 157.9 kB / 0.9303 GB, free: 21.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001838/1.281, allocations: 60 kB / 0.9304 GB, free: 21.08 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00298/1.284, allocations: 2.682 MB / 0.933 GB, free: 18.39 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/1.284, allocations: 0 / 0.933 GB, free: 18.39 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004695/1.288, allocations: 1.375 MB / 0.9343 GB, free: 17.02 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004497/1.289, allocations: 187.4 kB / 0.9345 GB, free: 16.84 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01001/1.299, allocations: 8.285 MB / 0.9426 GB, free: 8.566 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/1.299, allocations: 0 / 0.9426 GB, free: 8.566 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.2063/1.505, allocations: 3.208 MB / 0.9457 GB, free: 174.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003182/1.508, allocations: 494.9 kB / 0.9462 GB, free: 174.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02304/1.532, allocations: 14 MB / 0.9599 GB, free: 169 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004401/1.536, allocations: 3.488 MB / 0.9633 GB, free: 167.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/1.537, allocations: 306.9 kB / 0.9636 GB, free: 167.6 MB / 0.5261 GB Notification: Performance of SimCode: time 1.272e-06/1.537, allocations: 0 / 0.9636 GB, free: 167.6 MB / 0.5261 GB Notification: Performance of Templates: time 0.1203/1.658, allocations: 109 MB / 1.07 GB, free: 70.9 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches