Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001006/0.001006, allocations: 198.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.28/1.28, allocations: 226.5 MB / 243.1 MB, free: 12.56 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000856/0.000856, allocations: 102.5 kB / 295.1 MB, free: 4.383 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1876/0.1876, allocations: 44.85 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002569/0.0002569, allocations: 8 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1049, allocations: 62.95 MB / 0.5153 GB, free: 5.125 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.2538/0.3587, allocations: 48.41 MB / 0.5626 GB, free: 9.785 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02051/0.3793, allocations: 10.66 MB / 0.573 GB, free: 8.539 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008216/0.3875, allocations: 229.3 kB / 0.5732 GB, free: 8.504 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008883/0.3964, allocations: 2.508 MB / 0.5757 GB, free: 7.969 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01884/0.4153, allocations: 7.576 MB / 0.5831 GB, free: 4.996 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003317/0.4187, allocations: 0.8591 MB / 0.5839 GB, free: 4.746 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.06634/0.485, allocations: 62.96 MB / 0.6454 GB, free: 13.7 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008385/0.4935, allocations: 5.108 MB / 0.6504 GB, free: 8.527 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00423/0.4977, allocations: 1.884 MB / 0.6522 GB, free: 6.637 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004824/0.5026, allocations: 3.128 MB / 0.6553 GB, free: 3.5 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001459/0.5041, allocations: 236 kB / 0.6555 GB, free: 3.27 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003462/0.5075, allocations: 1.112 MB / 0.6566 GB, free: 2.156 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003739/0.5113, allocations: 2.571 MB / 0.6591 GB, free: 15.58 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002053/0.5134, allocations: 1.193 MB / 0.6603 GB, free: 14.38 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008965/0.5224, allocations: 7.957 MB / 0.668 GB, free: 6.398 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.922e-06/0.5224, allocations: 4 kB / 0.6681 GB, free: 6.395 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5224, allocations: 0 / 0.6681 GB, free: 6.395 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004426/0.5229, allocations: 0 / 0.6681 GB, free: 6.395 MB / 458.7 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.01438/0.5373, allocations: 6.172 MB / 0.6741 GB, free: 144 kB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.5373, allocations: 12.03 kB / 0.6741 GB, free: 132 kB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01618/0.5535, allocations: 4.031 MB / 0.678 GB, free: 12.08 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009401/0.563, allocations: 3.994 MB / 0.6819 GB, free: 8.027 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003298/0.5633, allocations: 320 kB / 0.6822 GB, free: 7.711 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001705/0.565, allocations: 431.7 kB / 0.6826 GB, free: 7.289 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02792/0.593, allocations: 15.72 MB / 0.698 GB, free: 6.637 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001557/0.5932, allocations: 63.45 kB / 0.6981 GB, free: 6.574 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006523/0.5938, allocations: 207.7 kB / 0.6983 GB, free: 6.371 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005007/0.5989, allocations: 3.208 MB / 0.7014 GB, free: 3.16 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02733/0.6262, allocations: 14.13 MB / 0.7152 GB, free: 5.012 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2821/0.9083, allocations: 57.77 MB / 0.7716 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01309/0.9214, allocations: 6.58 MB / 0.778 GB, free: 145.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004585/0.9261, allocations: 3.739 MB / 0.7817 GB, free: 143.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0195/0.9456, allocations: 14.8 MB / 0.7961 GB, free: 136.4 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.9457, allocations: 62.44 kB / 0.7962 GB, free: 136.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=292): time 6.252e-06/0.9457, allocations: 3.969 kB / 0.7962 GB, free: 136.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=342): time 0.1239/1.07, allocations: 42.71 MB / 0.8379 GB, free: 102.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/1.07, allocations: 214 kB / 0.8381 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005707/1.075, allocations: 5.443 MB / 0.8434 GB, free: 97.25 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007404/1.076, allocations: 70.72 kB / 0.8435 GB, free: 97.17 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001844/1.078, allocations: 4.344 MB / 0.8477 GB, free: 92.83 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001178/1.079, allocations: 1.272 MB / 0.849 GB, free: 91.57 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004125/1.08, allocations: 184.7 kB / 0.8491 GB, free: 91.39 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003203/1.08, allocations: 0.6943 MB / 0.8498 GB, free: 90.69 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005383/1.085, allocations: 4.8 MB / 0.8545 GB, free: 85.88 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007112/1.093, allocations: 9.794 MB / 0.8641 GB, free: 73.72 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007525/1.1, allocations: 6.689 MB / 0.8706 GB, free: 67.08 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.326e-05/1.1, allocations: 48 kB / 0.8707 GB, free: 67.03 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.03614/1.136, allocations: 19.56 MB / 0.8898 GB, free: 47.42 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.581e-05/1.136, allocations: 80.19 kB / 0.8898 GB, free: 47.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001387/1.137, allocations: 176 kB / 0.89 GB, free: 47.17 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01981/1.156, allocations: 5.994 MB / 0.8959 GB, free: 41.17 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006772/1.163, allocations: 2.125 MB / 0.8979 GB, free: 39.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02554/1.189, allocations: 24.78 MB / 0.9221 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006505/1.195, allocations: 0.5627 MB / 0.9227 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001038/1.196, allocations: 0.5094 MB / 0.9232 GB, free: 12.91 MB / 0.5261 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.004429/1.201, allocations: 3.104 MB / 0.9262 GB, free: 9.789 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008435/1.202, allocations: 497.5 kB / 0.9267 GB, free: 9.297 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02687/1.229, allocations: 13.01 MB / 0.9394 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001259/1.229, allocations: 50.27 kB / 0.9394 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-05/1.229, allocations: 11.94 kB / 0.9395 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.711e-05/1.229, allocations: 19.94 kB / 0.9395 GB, free: 12.14 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05049/1.279, allocations: 24.73 MB / 0.9636 GB, free: 2.918 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.402e-05/1.279, allocations: 4 kB / 0.9636 GB, free: 2.914 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003077/1.283, allocations: 0.5811 MB / 0.9642 GB, free: 2.332 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2818/1.564, allocations: 4.999 MB / 0.9691 GB, free: 194.8 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006963/1.565, allocations: 56.8 kB / 0.9691 GB, free: 194.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02571/1.591, allocations: 19.97 MB / 0.9886 GB, free: 186.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.989e-06/1.591, allocations: 9.812 kB / 0.9887 GB, free: 186.9 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03144/1.622, allocations: 17.57 MB / 1.006 GB, free: 180.8 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001346/1.624, allocations: 0.5397 MB / 1.006 GB, free: 180.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001349/1.625, allocations: 62.72 kB / 1.006 GB, free: 180.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003116/1.628, allocations: 270.9 kB / 1.007 GB, free: 180.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006668/1.629, allocations: 195.2 kB / 1.007 GB, free: 180.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002509/1.629, allocations: 83.72 kB / 1.007 GB, free: 180.5 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.004659/1.634, allocations: 3.37 MB / 1.01 GB, free: 179.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.31e-07/1.634, allocations: 0 / 1.01 GB, free: 179.4 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007085/1.641, allocations: 1.765 MB / 1.012 GB, free: 179.2 MB / 0.5573 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.0006589/1.642, allocations: 202.2 kB / 1.012 GB, free: 179.1 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0139/1.655, allocations: 10.96 MB / 1.023 GB, free: 169.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/1.655, allocations: 3.844 kB / 1.023 GB, free: 169.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00455/1.66, allocations: 4.125 MB / 1.027 GB, free: 165.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003235/1.663, allocations: 0.5977 MB / 1.027 GB, free: 164.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02226/1.686, allocations: 19.25 MB / 1.046 GB, free: 145.4 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003843/1.689, allocations: 4.598 MB / 1.051 GB, free: 140.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001877/1.691, allocations: 419.4 kB / 1.051 GB, free: 140.4 MB / 0.5573 GB Notification: Performance of SimCode: time 1.292e-06/1.691, allocations: 0 / 1.051 GB, free: 140.4 MB / 0.5573 GB Notification: Performance of Templates: time 0.3358/2.027, allocations: 149 MB / 1.197 GB, free: 181.1 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches