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: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001012, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 226.5 MB / 243.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008226/0.0008225, allocations: 103.2 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2892/0.2892, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002595/0.0002596, allocations: 4 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2751, allocations: 62.95 MB / 0.516 GB, free: 37.26 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.0271/0.3022, allocations: 42.6 MB / 0.5576 GB, free: 6.836 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01774/0.32, allocations: 9.61 MB / 0.5669 GB, free: 296 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008227/0.3283, allocations: 205.7 kB / 0.5671 GB, free: 260 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007335/0.3357, allocations: 2.18 MB / 0.5693 GB, free: 15.47 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02039/0.3561, allocations: 6.638 MB / 0.5757 GB, free: 11.79 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00387/0.36, allocations: 0.8149 MB / 0.5765 GB, free: 11.24 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.07145/0.4315, allocations: 61.51 MB / 0.6366 GB, free: 13.66 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006077/0.4376, allocations: 4.478 MB / 0.641 GB, free: 9.102 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002612/0.4403, allocations: 1.436 MB / 0.6424 GB, free: 7.66 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00298/0.4433, allocations: 2.403 MB / 0.6447 GB, free: 5.25 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006326/0.4439, allocations: 179.9 kB / 0.6449 GB, free: 5.074 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002302/0.4462, allocations: 1.256 MB / 0.6461 GB, free: 3.816 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001761/0.448, allocations: 1.944 MB / 0.648 GB, free: 1.867 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002369/0.4504, allocations: 2.13 MB / 0.6501 GB, free: 15.71 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005804/0.4562, allocations: 6.141 MB / 0.6561 GB, free: 9.562 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.4562, allocations: 0 / 0.6561 GB, free: 9.562 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.4563, allocations: 0 / 0.6561 GB, free: 9.562 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002491/0.4565, allocations: 4 kB / 0.6561 GB, free: 9.559 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.01051/0.467, allocations: 4.757 MB / 0.6608 GB, free: 4.727 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.4671, allocations: 8.031 kB / 0.6608 GB, free: 4.719 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00188/0.469, allocations: 0.8045 MB / 0.6616 GB, free: 3.902 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03608/0.5051, allocations: 6.044 MB / 0.6675 GB, free: 13.84 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007962/0.5131, allocations: 3.786 MB / 0.6712 GB, free: 10 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000215/0.5134, allocations: 246.3 kB / 0.6714 GB, free: 9.758 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009193/0.5143, allocations: 335.6 kB / 0.6717 GB, free: 9.43 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2255/0.7398, allocations: 10.78 MB / 0.6822 GB, free: 132.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001755/0.74, allocations: 49.5 kB / 0.6823 GB, free: 132.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004433/0.7404, allocations: 155.7 kB / 0.6824 GB, free: 132.2 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002941/0.7434, allocations: 2.002 MB / 0.6844 GB, free: 132 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01547/0.7589, allocations: 9.219 MB / 0.6934 GB, free: 129.2 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04252/0.8014, allocations: 41.02 MB / 0.7334 GB, free: 100.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009666/0.8112, allocations: 4.227 MB / 0.7376 GB, free: 97.94 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002253/0.8134, allocations: 1.882 MB / 0.7394 GB, free: 96.94 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008859/0.8223, allocations: 7.497 MB / 0.7467 GB, free: 91.01 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.8224, allocations: 55.5 kB / 0.7468 GB, free: 90.95 MB / 490.7 MB Notification: Performance of pre-optimization done (n=180): time 4.208e-06/0.8224, allocations: 1.5 kB / 0.7468 GB, free: 90.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=236): time 0.1501/0.9726, allocations: 41.13 MB / 0.7869 GB, free: 49.76 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.724e-05/0.9727, allocations: 209.9 kB / 0.7871 GB, free: 49.52 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004936/0.9776, allocations: 4.302 MB / 0.7913 GB, free: 45.19 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005971/0.9782, allocations: 57.7 kB / 0.7914 GB, free: 45.13 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001423/0.9797, allocations: 3.216 MB / 0.7945 GB, free: 41.91 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008867/0.9806, allocations: 0.8779 MB / 0.7954 GB, free: 41.04 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003513/0.9809, allocations: 126 kB / 0.7955 GB, free: 40.92 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002567/0.9812, allocations: 0.5705 MB / 0.7961 GB, free: 40.34 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004029/0.9852, allocations: 3.467 MB / 0.7995 GB, free: 36.87 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005452/0.9907, allocations: 7.083 MB / 0.8064 GB, free: 27.99 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01025/1.001, allocations: 11.35 MB / 0.8175 GB, free: 14.87 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.447e-05/1.001, allocations: 36 kB / 0.8175 GB, free: 14.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03441/1.036, allocations: 15.65 MB / 0.8328 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.987e-05/1.036, allocations: 64.12 kB / 0.8328 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001438/1.036, allocations: 128 kB / 0.833 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02548/1.061, allocations: 6.099 MB / 0.8389 GB, free: 8.863 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005022/1.066, allocations: 1.431 MB / 0.8403 GB, free: 7.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03428/1.101, allocations: 25.68 MB / 0.8654 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005151/1.106, allocations: 403 kB / 0.8658 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00069/1.107, allocations: 381.9 kB / 0.8661 GB, free: 12.72 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * 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 (741): * Single equations (assignments): 736 * 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.003216/1.11, allocations: 2.21 MB / 0.8683 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006187/1.11, allocations: 398.9 kB / 0.8687 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2411/1.352, allocations: 11.06 MB / 0.8795 GB, free: 167.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.018e-05/1.352, allocations: 24.78 kB / 0.8795 GB, free: 167.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.611e-05/1.352, allocations: 10.19 kB / 0.8795 GB, free: 167.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.615e-05/1.352, allocations: 11.72 kB / 0.8795 GB, free: 167.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04225/1.394, allocations: 20.58 MB / 0.8996 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.823e-05/1.394, allocations: 5.719 kB / 0.8996 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002117/1.396, allocations: 385.5 kB / 0.9 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02039/1.417, allocations: 5.177 MB / 0.9051 GB, free: 160.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004498/1.417, allocations: 43.39 kB / 0.9051 GB, free: 160 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02549/1.443, allocations: 20.79 MB / 0.9254 GB, free: 148.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.207e-06/1.443, allocations: 9.516 kB / 0.9254 GB, free: 148.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02947/1.472, allocations: 14.3 MB / 0.9394 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001183/1.473, allocations: 453.3 kB / 0.9398 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008139/1.474, allocations: 46.42 kB / 0.9398 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002415/1.477, allocations: 180.5 kB / 0.94 GB, free: 137.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009438/1.478, allocations: 154.9 kB / 0.9402 GB, free: 137.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002099/1.478, allocations: 66.69 kB / 0.9402 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003852/1.482, allocations: 2.715 MB / 0.9429 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.72e-07/1.482, allocations: 0 / 0.9429 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005678/1.487, allocations: 1.33 MB / 0.9442 GB, free: 133.5 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.02876/1.516, allocations: 14.94 MB / 0.9588 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01032/1.527, allocations: 8.043 MB / 0.9666 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/1.527, allocations: 0 / 0.9666 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005445/1.532, allocations: 3.17 MB / 0.9697 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009096/1.541, allocations: 0.5075 MB / 0.9702 GB, free: 107 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1143/1.656, allocations: 49.88 MB / 1.019 GB, free: 53.21 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003163/1.659, allocations: 3.515 MB / 1.022 GB, free: 49.67 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002442/1.661, allocations: 2.097 MB / 1.024 GB, free: 47.57 MB / 0.5261 GB Notification: Performance of SimCode: time 8.21e-07/1.661, allocations: 4 kB / 1.024 GB, free: 47.57 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.273/9.934, allocations: 125.3 MB / 1.147 GB, free: 138.2 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches