Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001647/0.001648, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001968/0.001969, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 46.1 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002441/0.002441, allocations: 79.88 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4337/0.4362, allocations: 62.43 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01368/0.4499, allocations: 12.02 MB / 0.5422 GB, free: 3.938 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0105/0.4605, allocations: 4.318 MB / 0.5465 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002509/0.463, allocations: 76.59 kB / 0.5465 GB, free: 0.543 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005265/0.4683, allocations: 2.73 MB / 0.5492 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005731/0.4741, allocations: 1.973 MB / 0.5511 GB, free: 12.6 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002297/0.4764, allocations: 0.9086 MB / 0.552 GB, free: 11.69 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008677/0.4851, allocations: 5.669 MB / 0.5575 GB, free: 6.008 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005564/0.4907, allocations: 3.354 MB / 0.5608 GB, free: 2.605 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003746/0.4944, allocations: 1.713 MB / 0.5625 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004254/0.4987, allocations: 2.512 MB / 0.5649 GB, free: 14.37 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001371/0.5001, allocations: 384 kB / 0.5653 GB, free: 13.99 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003693/0.5038, allocations: 1.408 MB / 0.5667 GB, free: 12.58 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003044/0.5069, allocations: 2.19 MB / 0.5688 GB, free: 10.39 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004935/0.5118, allocations: 2.486 MB / 0.5713 GB, free: 7.887 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.5231, allocations: 7.989 MB / 0.5791 GB, free: 15.87 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.5231, allocations: 3.938 kB / 0.5791 GB, free: 15.87 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5231, allocations: 0 / 0.5791 GB, free: 15.87 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003265/0.5235, allocations: 0 / 0.5791 GB, free: 15.87 MB / 446.1 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.01587/0.5393, allocations: 5.665 MB / 0.5846 GB, free: 10.12 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.5394, allocations: 12.03 kB / 0.5846 GB, free: 10.11 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002223/0.5416, allocations: 0.8045 MB / 0.5854 GB, free: 9.297 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03577/0.5774, allocations: 5.954 MB / 0.5912 GB, free: 3.328 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01005/0.5876, allocations: 3.848 MB / 0.595 GB, free: 15.42 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003152/0.5879, allocations: 258.3 kB / 0.5952 GB, free: 15.16 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001731/0.5897, allocations: 327.8 kB / 0.5955 GB, free: 14.84 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02167/0.6113, allocations: 10.78 MB / 0.606 GB, free: 3.32 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002207/0.6116, allocations: 59.44 kB / 0.6061 GB, free: 3.262 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001136/0.6127, allocations: 151.8 kB / 0.6062 GB, free: 3.113 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003167/0.6159, allocations: 1.998 MB / 0.6082 GB, free: 1.109 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01959/0.6355, allocations: 9.241 MB / 0.6172 GB, free: 7.852 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05705/0.6926, allocations: 40.81 MB / 0.6571 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01074/0.7034, allocations: 4.223 MB / 0.6612 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00268/0.7061, allocations: 1.895 MB / 0.6631 GB, free: 7.539 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01187/0.718, allocations: 7.49 MB / 0.6704 GB, free: 15.67 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.701e-05/0.7181, allocations: 59.44 kB / 0.6704 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=180): time 4.809e-06/0.7181, allocations: 0 / 0.6704 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=236): time 0.1576/0.8757, allocations: 40.63 MB / 0.7101 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.8759, allocations: 205.9 kB / 0.7103 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008656/0.8846, allocations: 4.32 MB / 0.7145 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006621/0.8853, allocations: 57.7 kB / 0.7146 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.2779/1.163, allocations: 3.21 MB / 0.7177 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001481/1.165, allocations: 0.884 MB / 0.7186 GB, free: 165.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003223/1.168, allocations: 1.28 MB / 0.7198 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.047e-05/1.168, allocations: 308.1 kB / 0.7201 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005302/1.173, allocations: 3.496 MB / 0.7235 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007976/1.181, allocations: 7.104 MB / 0.7305 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/1.192, allocations: 11.37 MB / 0.7416 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001236/1.193, allocations: 39.44 kB / 0.7416 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03285/1.225, allocations: 15.7 MB / 0.7569 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.656e-05/1.226, allocations: 60 kB / 0.757 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001209/1.226, allocations: 128.9 kB / 0.7571 GB, free: 138.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01999/1.246, allocations: 6.05 MB / 0.763 GB, free: 132.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004721/1.25, allocations: 1.436 MB / 0.7644 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02763/1.278, allocations: 27.14 MB / 0.7909 GB, free: 103.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006044/1.284, allocations: 391.4 kB / 0.7913 GB, free: 103.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/1.285, allocations: 380 kB / 0.7917 GB, free: 102.9 MB / 0.5606 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00344/1.289, allocations: 2.215 MB / 0.7938 GB, free: 100.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007938/1.29, allocations: 406.7 kB / 0.7942 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02398/1.314, allocations: 11.06 MB / 0.805 GB, free: 89.21 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.542e-05/1.314, allocations: 24 kB / 0.805 GB, free: 89.19 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-05/1.314, allocations: 17.72 kB / 0.8051 GB, free: 89.17 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.621e-05/1.314, allocations: 11.95 kB / 0.8051 GB, free: 89.16 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04056/1.354, allocations: 20.47 MB / 0.8251 GB, free: 68.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.205e-05/1.354, allocations: 4 kB / 0.8251 GB, free: 68.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001927/1.356, allocations: 392 kB / 0.8254 GB, free: 67.89 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01784/1.374, allocations: 5.145 MB / 0.8305 GB, free: 62.73 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005424/1.375, allocations: 43.31 kB / 0.8305 GB, free: 62.69 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02489/1.4, allocations: 22.25 MB / 0.8522 GB, free: 40.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.523e-06/1.4, allocations: 11.94 kB / 0.8522 GB, free: 40.16 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02848/1.428, allocations: 14.3 MB / 0.8662 GB, free: 25.77 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/1.429, allocations: 443.9 kB / 0.8666 GB, free: 25.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001229/1.431, allocations: 47.92 kB / 0.8667 GB, free: 25.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002838/1.434, allocations: 179.8 kB / 0.8668 GB, free: 25.09 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007554/1.434, allocations: 153 kB / 0.867 GB, free: 24.94 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003194/1.435, allocations: 60 kB / 0.8671 GB, free: 24.88 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004152/1.439, allocations: 2.726 MB / 0.8697 GB, free: 22.15 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.41e-07/1.439, allocations: 0 / 0.8697 GB, free: 22.15 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006309/1.445, allocations: 1.318 MB / 0.871 GB, free: 20.84 MB / 0.5606 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02838/1.474, allocations: 14.94 MB / 0.8856 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01159/1.485, allocations: 8.108 MB / 0.8935 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/1.485, allocations: 0 / 0.8935 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004924/1.49, allocations: 3.185 MB / 0.8966 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004582/1.495, allocations: 0.532 MB / 0.8971 GB, free: 10 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4171/1.912, allocations: 66.87 MB / 0.9624 GB, free: 214.6 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003289/1.915, allocations: 3.515 MB / 0.9659 GB, free: 213.2 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.004072/1.919, allocations: 1.958 MB / 0.9678 GB, free: 212.5 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002276/1.922, allocations: 2.077 MB / 0.9698 GB, free: 210.6 MB / 0.6231 GB Notification: Performance of SimCode: time 2.375e-06/1.922, allocations: 0 / 0.9698 GB, free: 210.6 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1388/2.06, allocations: 107.3 MB / 1.075 GB, free: 107.6 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.69/26.75, allocations: 15.89 kB / 1.075 GB, free: 107.6 MB / 0.6231 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches