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: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, 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.221/1.221, allocations: 226.5 MB / 243.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008486/0.0008487, allocations: 96.97 kB / 295.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2914/0.2914, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002716/0.0002718, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2946, allocations: 62.96 MB / 0.516 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.03377/0.3284, allocations: 48.43 MB / 0.5632 GB, free: 2.602 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02494/0.3534, allocations: 10.66 MB / 0.5737 GB, free: 11.35 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009786/0.3632, allocations: 229.2 kB / 0.5739 GB, free: 11.31 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008256/0.3715, allocations: 2.514 MB / 0.5763 GB, free: 10.43 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02294/0.3945, allocations: 7.61 MB / 0.5838 GB, free: 3.848 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004356/0.3989, allocations: 0.9089 MB / 0.5846 GB, free: 2.938 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.07655/0.4754, allocations: 63.03 MB / 0.6462 GB, free: 3.828 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00847/0.484, allocations: 5.605 MB / 0.6517 GB, free: 14.12 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003938/0.4879, allocations: 1.891 MB / 0.6535 GB, free: 12.23 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004635/0.4926, allocations: 3.124 MB / 0.6566 GB, free: 9.094 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001389/0.494, allocations: 236 kB / 0.6568 GB, free: 8.863 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003387/0.4974, allocations: 1.307 MB / 0.6581 GB, free: 7.555 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003402/0.5008, allocations: 2.583 MB / 0.6606 GB, free: 4.965 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004798/0.5056, allocations: 2.852 MB / 0.6634 GB, free: 2.09 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008868/0.5145, allocations: 8.102 MB / 0.6713 GB, free: 9.969 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.5146, allocations: 4 kB / 0.6713 GB, free: 9.965 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5146, allocations: 0 / 0.6713 GB, free: 9.965 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003397/0.5149, allocations: 0 / 0.6713 GB, free: 9.965 MB / 490.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.01542/0.5303, allocations: 6.262 MB / 0.6774 GB, free: 3.621 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.5304, allocations: 8.031 kB / 0.6774 GB, free: 3.613 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003367/0.5338, allocations: 1.137 MB / 0.6785 GB, free: 2.461 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.269/0.8028, allocations: 7.598 MB / 0.686 GB, free: 134.1 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009756/0.8126, allocations: 4.617 MB / 0.6905 GB, free: 132.2 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003805/0.813, allocations: 321.5 kB / 0.6908 GB, free: 132.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001757/0.8148, allocations: 433.6 kB / 0.6912 GB, free: 132 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03098/0.8458, allocations: 15.62 MB / 0.7064 GB, free: 125.1 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000433/0.8463, allocations: 53.12 kB / 0.7065 GB, free: 125.1 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002004/0.8483, allocations: 208.6 kB / 0.7067 GB, free: 125 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006624/0.855, allocations: 3.219 MB / 0.7098 GB, free: 124.5 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0272/0.8822, allocations: 13.91 MB / 0.7234 GB, free: 115.2 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07085/0.9531, allocations: 57.4 MB / 0.7795 GB, free: 56.46 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0123/0.9654, allocations: 6.497 MB / 0.7858 GB, free: 49.71 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00426/0.9697, allocations: 3.618 MB / 0.7893 GB, free: 46.08 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02198/0.9918, allocations: 14.43 MB / 0.8034 GB, free: 31.13 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.924e-05/0.9919, allocations: 64.55 kB / 0.8035 GB, free: 31.05 MB / 490.7 MB Notification: Performance of pre-optimization done (n=289): time 6.361e-06/0.9919, allocations: 0 / 0.8035 GB, free: 31.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=339): time 0.1451/1.137, allocations: 42.02 MB / 0.8445 GB, free: 4.953 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/1.137, allocations: 210 kB / 0.8447 GB, free: 4.703 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00945/1.147, allocations: 5.455 MB / 0.8501 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008269/1.147, allocations: 77.7 kB / 0.8501 GB, free: 15.18 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003474/1.151, allocations: 4.413 MB / 0.8544 GB, free: 10.71 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00193/1.153, allocations: 1.249 MB / 0.8557 GB, free: 9.445 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001171/1.154, allocations: 168 kB / 0.8558 GB, free: 9.281 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008323/1.155, allocations: 0.6819 MB / 0.8565 GB, free: 8.59 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007651/1.163, allocations: 4.612 MB / 0.861 GB, free: 3.969 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01178/1.174, allocations: 9.582 MB / 0.8703 GB, free: 7.941 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2616/1.436, allocations: 15.27 MB / 0.8853 GB, free: 152 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001574/1.436, allocations: 48.81 kB / 0.8853 GB, free: 152 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04176/1.478, allocations: 18.94 MB / 0.9038 GB, free: 146 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001479/1.478, allocations: 87.36 kB / 0.9039 GB, free: 146 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000317/1.479, allocations: 172.3 kB / 0.904 GB, free: 146 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02392/1.503, allocations: 5.808 MB / 0.9097 GB, free: 145.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007441/1.51, allocations: 2.06 MB / 0.9117 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02857/1.539, allocations: 24.29 MB / 0.9354 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007064/1.546, allocations: 0.547 MB / 0.936 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001433/1.547, allocations: 0.506 MB / 0.9365 GB, free: 133.1 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 (1058): * Single equations (assignments): 1050 * 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.005977/1.553, allocations: 3.096 MB / 0.9395 GB, free: 130.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00137/1.555, allocations: 0.4936 MB / 0.94 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02888/1.583, allocations: 12.68 MB / 0.9524 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.207e-05/1.584, allocations: 56 kB / 0.9524 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.879e-05/1.584, allocations: 8 kB / 0.9524 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.216e-05/1.584, allocations: 19.94 kB / 0.9524 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04484/1.629, allocations: 24.42 MB / 0.9763 GB, free: 92.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.513e-05/1.629, allocations: 4 kB / 0.9763 GB, free: 92.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002902/1.632, allocations: 0.5772 MB / 0.9769 GB, free: 92.24 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01866/1.65, allocations: 4.838 MB / 0.9816 GB, free: 87.39 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007698/1.651, allocations: 60.7 kB / 0.9816 GB, free: 87.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02171/1.673, allocations: 19.57 MB / 1.001 GB, free: 67.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/1.673, allocations: 8 kB / 1.001 GB, free: 67.56 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03276/1.706, allocations: 17.1 MB / 1.017 GB, free: 50.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/1.707, allocations: 0.5413 MB / 1.018 GB, free: 49.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001529/1.709, allocations: 52.7 kB / 1.018 GB, free: 49.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003505/1.712, allocations: 260.5 kB / 1.018 GB, free: 49.43 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001266/1.713, allocations: 199.6 kB / 1.018 GB, free: 49.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004756/1.714, allocations: 80 kB / 1.019 GB, free: 49.16 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005165/1.719, allocations: 3.394 MB / 1.022 GB, free: 45.79 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.91e-07/1.719, allocations: 0 / 1.022 GB, free: 45.79 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007794/1.727, allocations: 1.721 MB / 1.024 GB, free: 44.07 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 (254): * Single equations (assignments): 246 * 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.03373/1.761, allocations: 17.76 MB / 1.041 GB, free: 26.14 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01558/1.776, allocations: 10.61 MB / 1.051 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/1.776, allocations: 4.875 kB / 1.051 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005744/1.782, allocations: 4.043 MB / 1.055 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008683/1.791, allocations: 0.6234 MB / 1.056 GB, free: 10.87 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3715/2.162, allocations: 65.38 MB / 1.12 GB, free: 147 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006969/2.169, allocations: 4.629 MB / 1.124 GB, free: 145.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004158/2.173, allocations: 2.949 MB / 1.127 GB, free: 143 MB / 0.5417 GB Notification: Performance of SimCode: time 2.114e-06/2.174, allocations: 0 / 1.127 GB, free: 143 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.824/12, allocations: 170 MB / 1.293 GB, free: 170.3 MB / 0.5573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins1/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