Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001189/0.001189, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001223/0.001223, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246.3 MB, free: 9.027 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.222/0.222, allocations: 46.11 MB / 343.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 83.41 kB / 416.9 MB, free: 20.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1277, allocations: 62.45 MB / 479.4 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3077/0.4354, allocations: 53.1 MB / 0.52 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02943/0.4649, allocations: 11.09 MB / 0.5308 GB, free: 6.449 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01422/0.4791, allocations: 236.1 kB / 0.5311 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007087/0.4863, allocations: 3.112 MB / 0.5341 GB, free: 5.473 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008121/0.4945, allocations: 2.38 MB / 0.5364 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00277/0.4973, allocations: 0.9092 MB / 0.5373 GB, free: 4.391 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01171/0.509, allocations: 9.966 MB / 0.547 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006076/0.5151, allocations: 4.282 MB / 0.5512 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003931/0.5191, allocations: 1.961 MB / 0.5531 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005104/0.5242, allocations: 3.429 MB / 0.5565 GB, free: 7.508 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001327/0.5256, allocations: 332 kB / 0.5568 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003572/0.5292, allocations: 1.409 MB / 0.5582 GB, free: 5.828 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00355/0.5328, allocations: 2.734 MB / 0.5608 GB, free: 3.098 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005249/0.538, allocations: 3.147 MB / 0.5639 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0142/0.5522, allocations: 10.01 MB / 0.5737 GB, free: 6.176 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.087e-05/0.5523, allocations: 8 kB / 0.5737 GB, free: 6.168 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.5523, allocations: 0 / 0.5737 GB, free: 6.168 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003971/0.5527, allocations: 4 kB / 0.5737 GB, free: 6.164 MB / 414.1 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.02124/0.574, allocations: 7.467 MB / 0.581 GB, free: 14.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.574, allocations: 8.875 kB / 0.581 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003324/0.5774, allocations: 1.145 MB / 0.5821 GB, free: 13.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04264/0.62, allocations: 7.463 MB / 0.5894 GB, free: 6.184 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01339/0.6335, allocations: 4.631 MB / 0.5939 GB, free: 1.539 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003459/0.6339, allocations: 316.4 kB / 0.5942 GB, free: 1.285 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002163/0.636, allocations: 433.7 kB / 0.5946 GB, free: 0.918 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0304/0.6665, allocations: 15.63 MB / 0.6099 GB, free: 496 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000257/0.6668, allocations: 63.42 kB / 0.61 GB, free: 432 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001045/0.6678, allocations: 207.8 kB / 0.6102 GB, free: 224 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005152/0.673, allocations: 3.216 MB / 0.6133 GB, free: 13 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02951/0.7025, allocations: 13.95 MB / 0.6269 GB, free: 15.01 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07618/0.7787, allocations: 57.37 MB / 0.683 GB, free: 4.078 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01385/0.7926, allocations: 6.515 MB / 0.6893 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004994/0.7976, allocations: 3.621 MB / 0.6929 GB, free: 9.672 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02136/0.819, allocations: 14.43 MB / 0.707 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.57e-05/0.8191, allocations: 64.5 kB / 0.707 GB, free: 10.62 MB / 0.545 GB Notification: Performance of pre-optimization done (n=289): time 5.711e-06/0.8191, allocations: 0 / 0.707 GB, free: 10.62 MB / 0.545 GB Notification: Performance of matching and sorting (n=339): time 0.3793/1.198, allocations: 41.72 MB / 0.7478 GB, free: 186.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.919e-05/1.199, allocations: 220.9 kB / 0.748 GB, free: 186.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007764/1.206, allocations: 5.481 MB / 0.7533 GB, free: 183.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009674/1.207, allocations: 77.16 kB / 0.7534 GB, free: 183.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002638/1.21, allocations: 4.404 MB / 0.7577 GB, free: 179.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001704/1.212, allocations: 1.256 MB / 0.7589 GB, free: 178.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00255/1.214, allocations: 1.777 MB / 0.7607 GB, free: 177.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.73e-05/1.214, allocations: 301.1 kB / 0.7609 GB, free: 177.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005529/1.22, allocations: 4.65 MB / 0.7655 GB, free: 172.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007371/1.227, allocations: 9.612 MB / 0.7749 GB, free: 160.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01461/1.242, allocations: 15.3 MB / 0.7898 GB, free: 143.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002277/1.242, allocations: 48 kB / 0.7899 GB, free: 143.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.03946/1.282, allocations: 19.01 MB / 0.8084 GB, free: 124 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002299/1.282, allocations: 79.94 kB / 0.8085 GB, free: 123.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002944/1.282, allocations: 176 kB / 0.8087 GB, free: 123.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02021/1.302, allocations: 5.772 MB / 0.8143 GB, free: 118 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007208/1.31, allocations: 2.067 MB / 0.8163 GB, free: 115.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02894/1.339, allocations: 24.3 MB / 0.8401 GB, free: 91.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00866/1.347, allocations: 0.5422 MB / 0.8406 GB, free: 90.81 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001942/1.349, allocations: 0.5039 MB / 0.8411 GB, free: 90.31 MB / 0.545 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 (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 {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006906/1.356, allocations: 3.095 MB / 0.8441 GB, free: 87.21 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001813/1.358, allocations: 0.5013 MB / 0.8446 GB, free: 86.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02946/1.388, allocations: 12.68 MB / 0.857 GB, free: 73.95 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-05/1.388, allocations: 60.8 kB / 0.857 GB, free: 73.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-05/1.388, allocations: 8 kB / 0.857 GB, free: 73.89 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.118e-05/1.388, allocations: 15.94 kB / 0.8571 GB, free: 73.88 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05107/1.439, allocations: 24.37 MB / 0.8809 GB, free: 49.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.667e-05/1.439, allocations: 4 kB / 0.8809 GB, free: 49.04 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003269/1.442, allocations: 0.5812 MB / 0.8814 GB, free: 48.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0177/1.46, allocations: 4.802 MB / 0.8861 GB, free: 43.64 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009147/1.461, allocations: 56 kB / 0.8862 GB, free: 43.59 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02279/1.484, allocations: 19.56 MB / 0.9053 GB, free: 23.77 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/1.484, allocations: 8 kB / 0.9053 GB, free: 23.76 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3102/1.794, allocations: 17.11 MB / 0.922 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001872/1.796, allocations: 0.5231 MB / 0.9225 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001419/1.797, allocations: 57.3 kB / 0.9226 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003355/1.801, allocations: 260.2 kB / 0.9228 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001045/1.802, allocations: 197 kB / 0.923 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003234/1.802, allocations: 86.08 kB / 0.9231 GB, free: 176.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007427/1.81, allocations: 3.413 MB / 0.9264 GB, free: 175.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/1.81, allocations: 0 / 0.9264 GB, free: 175.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01063/1.82, allocations: 1.69 MB / 0.9281 GB, free: 175 MB / 0.545 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 (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 {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03767/1.858, allocations: 17.78 MB / 0.9454 GB, free: 168.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01701/1.875, allocations: 10.66 MB / 0.9558 GB, free: 164.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/1.875, allocations: 0 / 0.9558 GB, free: 164.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005939/1.881, allocations: 4.06 MB / 0.9598 GB, free: 162.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005466/1.887, allocations: 0.6169 MB / 0.9604 GB, free: 162.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1459/2.032, allocations: 101.3 MB / 1.059 GB, free: 51.91 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004312/2.037, allocations: 4.622 MB / 1.064 GB, free: 47.26 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00664/2.043, allocations: 2.986 MB / 1.067 GB, free: 44.27 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004383/2.048, allocations: 2.913 MB / 1.07 GB, free: 41.36 MB / 0.545 GB Notification: Performance of SimCode: time 1.122e-06/2.048, allocations: 0 / 1.07 GB, free: 41.36 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4294/2.477, allocations: 127.5 MB / 1.194 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002297/2.478, allocations: 248.1 kB / 1.194 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.812/7.289, allocations: 0 / 1.194 GB, free: 149.4 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches