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.0009535/0.0009534, allocations: 194.4 kB / 16.1 MB, free: 5.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 226.5 MB / 243.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008236/0.0008237, allocations: 87.81 kB / 295.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.324/0.324, allocations: 44.83 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003969/0.0003969, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3114, allocations: 62.96 MB / 0.5159 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.02817/0.3397, allocations: 42.59 MB / 0.5575 GB, free: 6.832 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02078/0.3605, allocations: 9.607 MB / 0.5668 GB, free: 296 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009459/0.37, allocations: 205.6 kB / 0.567 GB, free: 260 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008957/0.3789, allocations: 2.176 MB / 0.5692 GB, free: 15.48 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02153/0.4005, allocations: 6.628 MB / 0.5756 GB, free: 11.91 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004143/0.4047, allocations: 0.8334 MB / 0.5765 GB, free: 11.27 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.07414/0.4789, allocations: 61.51 MB / 0.6365 GB, free: 13.68 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00721/0.4861, allocations: 4.486 MB / 0.6409 GB, free: 9.125 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004019/0.4902, allocations: 1.444 MB / 0.6423 GB, free: 7.676 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003707/0.4939, allocations: 2.399 MB / 0.6447 GB, free: 5.27 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006767/0.4946, allocations: 176 kB / 0.6448 GB, free: 5.098 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002356/0.497, allocations: 1.256 MB / 0.646 GB, free: 3.84 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001934/0.4989, allocations: 1.944 MB / 0.6479 GB, free: 1.891 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002381/0.5013, allocations: 2.08 MB / 0.65 GB, free: 15.79 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006236/0.5076, allocations: 6.013 MB / 0.6558 GB, free: 9.766 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.5076, allocations: 7.938 kB / 0.6559 GB, free: 9.758 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.5076, allocations: 0 / 0.6559 GB, free: 9.758 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002062/0.5079, allocations: 0 / 0.6559 GB, free: 9.758 MB / 474.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.009648/0.5175, allocations: 4.605 MB / 0.6604 GB, free: 5.078 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.5176, allocations: 8.875 kB / 0.6604 GB, free: 5.07 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01046/0.528, allocations: 2.526 MB / 0.6628 GB, free: 2.535 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00732/0.5354, allocations: 3.321 MB / 0.6661 GB, free: 15.16 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002325/0.5357, allocations: 234.5 kB / 0.6663 GB, free: 14.93 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001184/0.5369, allocations: 331.7 kB / 0.6666 GB, free: 14.6 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0195/0.5564, allocations: 10.88 MB / 0.6772 GB, free: 2.98 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001675/0.5566, allocations: 59.48 kB / 0.6773 GB, free: 2.922 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005442/0.5572, allocations: 151.9 kB / 0.6774 GB, free: 2.773 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003111/0.5603, allocations: 1.998 MB / 0.6794 GB, free: 0.7734 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2289/0.7892, allocations: 9.434 MB / 0.6886 GB, free: 130.9 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04448/0.8338, allocations: 41.23 MB / 0.7289 GB, free: 102.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01023/0.844, allocations: 4.271 MB / 0.733 GB, free: 100.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002645/0.8467, allocations: 1.922 MB / 0.7349 GB, free: 99.72 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009928/0.8567, allocations: 7.613 MB / 0.7423 GB, free: 94.19 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.8567, allocations: 51.25 kB / 0.7424 GB, free: 94.13 MB / 490.7 MB Notification: Performance of pre-optimization done (n=180): time 4.739e-06/0.8568, allocations: 4 kB / 0.7424 GB, free: 94.13 MB / 490.7 MB Notification: Performance of matching and sorting (n=236): time 0.163/1.02, allocations: 41.41 MB / 0.7828 GB, free: 53.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/1.02, allocations: 205.9 kB / 0.783 GB, free: 52.82 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007271/1.027, allocations: 4.282 MB / 0.7872 GB, free: 48.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000651/1.028, allocations: 61.53 kB / 0.7873 GB, free: 48.45 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002054/1.03, allocations: 3.171 MB / 0.7904 GB, free: 45.29 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001193/1.031, allocations: 0.8804 MB / 0.7912 GB, free: 44.41 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000548/1.032, allocations: 128 kB / 0.7914 GB, free: 44.29 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003506/1.032, allocations: 0.5829 MB / 0.7919 GB, free: 43.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006649/1.039, allocations: 3.601 MB / 0.7954 GB, free: 40.09 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009426/1.048, allocations: 7.267 MB / 0.8025 GB, free: 31.02 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01829/1.067, allocations: 11.6 MB / 0.8139 GB, free: 17.62 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001817/1.067, allocations: 36 kB / 0.8139 GB, free: 17.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.05397/1.121, allocations: 16.17 MB / 0.8297 GB, free: 1.402 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/1.121, allocations: 62.16 kB / 0.8298 GB, free: 1.344 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002001/1.121, allocations: 128 kB / 0.8299 GB, free: 1.219 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03517/1.156, allocations: 6.256 MB / 0.836 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008503/1.165, allocations: 1.493 MB / 0.8374 GB, free: 9.453 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05803/1.223, allocations: 26.15 MB / 0.863 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009405/1.232, allocations: 415.3 kB / 0.8634 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00192/1.234, allocations: 388 kB / 0.8637 GB, free: 14.24 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.006877/1.241, allocations: 2.213 MB / 0.8659 GB, free: 12.02 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001429/1.243, allocations: 398.9 kB / 0.8663 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04456/1.287, allocations: 11.3 MB / 0.8773 GB, free: 308 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.303e-05/1.287, allocations: 24 kB / 0.8773 GB, free: 284 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.857e-05/1.288, allocations: 15.94 kB / 0.8774 GB, free: 268 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-05/1.288, allocations: 15.95 kB / 0.8774 GB, free: 252 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3044/1.592, allocations: 20.74 MB / 0.8976 GB, free: 162 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-05/1.592, allocations: 5.25 kB / 0.8976 GB, free: 162 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00206/1.594, allocations: 389.5 kB / 0.898 GB, free: 162 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02014/1.614, allocations: 5.34 MB / 0.9032 GB, free: 161.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005554/1.615, allocations: 41.69 kB / 0.9033 GB, free: 161.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02669/1.642, allocations: 21.23 MB / 0.924 GB, free: 150 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/1.642, allocations: 15.75 kB / 0.924 GB, free: 150 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02778/1.669, allocations: 14.59 MB / 0.9383 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/1.671, allocations: 461 kB / 0.9387 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000766/1.671, allocations: 44.48 kB / 0.9387 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002167/1.674, allocations: 184.3 kB / 0.9389 GB, free: 138.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005905/1.674, allocations: 152.5 kB / 0.9391 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001979/1.674, allocations: 64.7 kB / 0.9391 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003403/1.678, allocations: 2.682 MB / 0.9417 GB, free: 135.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.42e-07/1.678, allocations: 0 / 0.9417 GB, free: 135.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005466/1.683, allocations: 1.372 MB / 0.9431 GB, free: 133.8 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.0005542/1.684, allocations: 188.7 kB / 0.9433 GB, free: 133.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01049/1.694, allocations: 8.278 MB / 0.9513 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/1.695, allocations: 6 kB / 0.9513 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00392/1.698, allocations: 3.212 MB / 0.9545 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005455/1.704, allocations: 478.8 kB / 0.9549 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01697/1.721, allocations: 14.02 MB / 0.9686 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002776/1.724, allocations: 3.48 MB / 0.972 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/1.725, allocations: 303.4 kB / 0.9723 GB, free: 104 MB / 0.5261 GB Notification: Performance of SimCode: time 7.81e-07/1.725, allocations: 4 kB / 0.9723 GB, free: 104 MB / 0.5261 GB Notification: Performance of Templates: time 0.3223/2.047, allocations: 108.9 MB / 1.079 GB, free: 168.6 MB / 0.5417 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