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.001452/0.001452, allocations: 117.8 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001456/0.001457, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.214/0.214, allocations: 46.09 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 71.88 kB / 480.8 MB, free: 4.625 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3678/0.3694, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01647/0.3859, allocations: 15 MB / 0.5451 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01227/0.3983, allocations: 4.835 MB / 0.5499 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003969/0.4023, allocations: 92.34 kB / 0.55 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006571/0.4089, allocations: 3.161 MB / 0.553 GB, free: 10.67 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008306/0.4172, allocations: 2.51 MB / 0.5555 GB, free: 8.152 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002671/0.4199, allocations: 0.9827 MB / 0.5564 GB, free: 7.168 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01121/0.4311, allocations: 7.042 MB / 0.5633 GB, free: 116 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007215/0.4384, allocations: 4.365 MB / 0.5676 GB, free: 11.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005852/0.4443, allocations: 2.219 MB / 0.5698 GB, free: 9.453 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005451/0.4498, allocations: 3.24 MB / 0.5729 GB, free: 6.203 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001833/0.4516, allocations: 488 kB / 0.5734 GB, free: 5.727 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003932/0.4556, allocations: 1.49 MB / 0.5748 GB, free: 4.234 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004863/0.4605, allocations: 2.864 MB / 0.5776 GB, free: 1.363 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006859/0.4674, allocations: 3.289 MB / 0.5808 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01453/0.4819, allocations: 10.52 MB / 0.5911 GB, free: 3.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.482, allocations: 4 kB / 0.5911 GB, free: 3.496 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.482, allocations: 0 / 0.5911 GB, free: 3.496 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004518/0.4824, allocations: 0 / 0.5911 GB, free: 3.496 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02452/0.507, allocations: 7.463 MB / 0.5984 GB, free: 11.95 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.349e-05/0.5071, allocations: 8.031 kB / 0.5984 GB, free: 11.94 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004404/0.5115, allocations: 1.137 MB / 0.5995 GB, free: 10.79 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04589/0.5574, allocations: 7.473 MB / 0.6068 GB, free: 3.293 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01316/0.5706, allocations: 4.696 MB / 0.6114 GB, free: 14.53 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005214/0.5712, allocations: 324.1 kB / 0.6117 GB, free: 14.21 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002953/0.5741, allocations: 431.6 kB / 0.6121 GB, free: 13.79 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0333/0.6075, allocations: 15.63 MB / 0.6274 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002947/0.6078, allocations: 55.52 kB / 0.6274 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002085/0.6099, allocations: 203.8 kB / 0.6276 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005749/0.6157, allocations: 3.22 MB / 0.6308 GB, free: 9.758 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02978/0.6455, allocations: 13.96 MB / 0.6444 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09026/0.7358, allocations: 57.09 MB / 0.7002 GB, free: 1.121 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01557/0.7514, allocations: 6.518 MB / 0.7065 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005894/0.7573, allocations: 3.64 MB / 0.7101 GB, free: 6.691 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3144/1.072, allocations: 14.41 MB / 0.7242 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.313e-05/1.072, allocations: 64.19 kB / 0.7242 GB, free: 160.1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=289): time 7.444e-06/1.072, allocations: 0 / 0.7242 GB, free: 160.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=339): time 0.1339/1.206, allocations: 41.76 MB / 0.765 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.323e-05/1.206, allocations: 213.9 kB / 0.7652 GB, free: 131 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006186/1.212, allocations: 5.478 MB / 0.7705 GB, free: 125.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008861/1.213, allocations: 73.38 kB / 0.7706 GB, free: 125.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002077/1.215, allocations: 4.41 MB / 0.7749 GB, free: 121 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001461/1.217, allocations: 1.248 MB / 0.7761 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002246/1.219, allocations: 1.777 MB / 0.7779 GB, free: 118 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.637e-05/1.219, allocations: 309 kB / 0.7782 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005099/1.224, allocations: 4.651 MB / 0.7827 GB, free: 113 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007429/1.231, allocations: 9.607 MB / 0.7921 GB, free: 101 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01517/1.247, allocations: 15.3 MB / 0.807 GB, free: 83.22 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001773/1.247, allocations: 52 kB / 0.8071 GB, free: 83.17 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04172/1.289, allocations: 19.01 MB / 0.8257 GB, free: 64.11 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002376/1.289, allocations: 80 kB / 0.8257 GB, free: 64.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003062/1.289, allocations: 180.6 kB / 0.8259 GB, free: 63.86 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02148/1.311, allocations: 5.786 MB / 0.8316 GB, free: 58.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007388/1.318, allocations: 2.063 MB / 0.8336 GB, free: 56 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03028/1.348, allocations: 25.66 MB / 0.8586 GB, free: 30.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008898/1.357, allocations: 0.5526 MB / 0.8592 GB, free: 29.51 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002431/1.36, allocations: 0.5 MB / 0.8596 GB, free: 29.01 MB / 0.5606 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.007656/1.367, allocations: 3.094 MB / 0.8627 GB, free: 25.91 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0017/1.369, allocations: 0.4974 MB / 0.8632 GB, free: 25.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03107/1.4, allocations: 12.67 MB / 0.8755 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.289e-05/1.4, allocations: 55.98 kB / 0.8756 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.291e-05/1.4, allocations: 12 kB / 0.8756 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.713e-05/1.401, allocations: 11.95 kB / 0.8756 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05837/1.459, allocations: 24.29 MB / 0.8993 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.126e-05/1.459, allocations: 12.03 kB / 0.8993 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003395/1.462, allocations: 0.5811 MB / 0.8999 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02036/1.483, allocations: 4.806 MB / 0.9046 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008985/1.484, allocations: 58.42 kB / 0.9047 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02946/1.513, allocations: 20.9 MB / 0.9251 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/1.513, allocations: 8 kB / 0.9251 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04031/1.554, allocations: 17.11 MB / 0.9418 GB, free: 7.883 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00186/1.556, allocations: 0.5295 MB / 0.9423 GB, free: 7.328 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001827/1.557, allocations: 61.67 kB / 0.9424 GB, free: 7.27 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003953/1.561, allocations: 263.6 kB / 0.9426 GB, free: 7.016 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001142/1.563, allocations: 189.6 kB / 0.9428 GB, free: 6.828 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005784/1.563, allocations: 80 kB / 0.9429 GB, free: 6.75 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.006969/1.57, allocations: 3.424 MB / 0.9462 GB, free: 3.348 MB / 0.6231 GB Notification: Performance of sort global known variables: time 4.31e-07/1.57, allocations: 0 / 0.9462 GB, free: 3.348 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.009573/1.58, allocations: 1.685 MB / 0.9479 GB, free: 1.668 MB / 0.6231 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.3989/1.979, allocations: 17.77 MB / 0.9652 GB, free: 202.1 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0157/1.994, allocations: 10.69 MB / 0.9757 GB, free: 198.1 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.448e-05/1.994, allocations: 3.969 kB / 0.9757 GB, free: 198.1 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005016/1.999, allocations: 4.051 MB / 0.9796 GB, free: 196.4 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003699/2.003, allocations: 0.6423 MB / 0.9802 GB, free: 196.1 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1557/2.159, allocations: 86.09 MB / 1.064 GB, free: 107.6 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007717/2.167, allocations: 4.623 MB / 1.069 GB, free: 102.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.007953/2.175, allocations: 2.99 MB / 1.072 GB, free: 99.95 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005511/2.18, allocations: 2.917 MB / 1.075 GB, free: 97.03 MB / 0.6231 GB Notification: Performance of SimCode: time 1.313e-06/2.18, allocations: 0 / 1.075 GB, free: 97.03 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4866/2.667, allocations: 127.8 MB / 1.199 GB, free: 214.6 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 37.74/40.4, allocations: 4.031 kB / 1.199 GB, free: 214.6 MB / 0.6387 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