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.001215/0.001215, allocations: 118.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001449/0.001449, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2136/0.2136, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 75.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3835/0.3852, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01468/0.3999, allocations: 15 MB / 0.5451 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01099/0.411, allocations: 4.836 MB / 0.5499 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003186/0.4142, allocations: 94.91 kB / 0.55 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006031/0.4203, allocations: 3.146 MB / 0.553 GB, free: 10.63 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007187/0.4275, allocations: 2.521 MB / 0.5555 GB, free: 8.102 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002447/0.43, allocations: 0.9827 MB / 0.5565 GB, free: 7.117 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009166/0.4391, allocations: 7.042 MB / 0.5633 GB, free: 64 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005711/0.4449, allocations: 4.369 MB / 0.5676 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004643/0.4496, allocations: 2.215 MB / 0.5698 GB, free: 9.402 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005366/0.455, allocations: 3.244 MB / 0.5729 GB, free: 6.148 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001665/0.4567, allocations: 488 kB / 0.5734 GB, free: 5.672 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003664/0.4603, allocations: 1.486 MB / 0.5748 GB, free: 4.184 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00385/0.4642, allocations: 2.868 MB / 0.5776 GB, free: 1.309 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00682/0.4711, allocations: 3.289 MB / 0.5809 GB, free: 14 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01636/0.4874, allocations: 10.51 MB / 0.5911 GB, free: 3.453 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.4875, allocations: 0 / 0.5911 GB, free: 3.453 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4875, allocations: 3.938 kB / 0.5911 GB, free: 3.449 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004297/0.4879, allocations: 0 / 0.5911 GB, free: 3.449 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.01981/0.5078, allocations: 7.467 MB / 0.5984 GB, free: 11.89 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/0.5078, allocations: 12.03 kB / 0.5984 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003641/0.5115, allocations: 1.133 MB / 0.5995 GB, free: 10.73 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04281/0.5543, allocations: 7.469 MB / 0.6068 GB, free: 3.246 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01267/0.5671, allocations: 4.692 MB / 0.6114 GB, free: 14.49 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003807/0.5675, allocations: 324.2 kB / 0.6117 GB, free: 14.17 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002085/0.5696, allocations: 443.5 kB / 0.6121 GB, free: 13.74 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03021/0.5998, allocations: 15.62 MB / 0.6274 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002755/0.6001, allocations: 59.47 kB / 0.6275 GB, free: 13.13 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001781/0.6019, allocations: 203.8 kB / 0.6277 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005241/0.6072, allocations: 3.22 MB / 0.6308 GB, free: 9.703 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03092/0.6381, allocations: 13.95 MB / 0.6444 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08643/0.7246, allocations: 57.1 MB / 0.7002 GB, free: 1.07 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01482/0.7395, allocations: 6.522 MB / 0.7065 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005473/0.745, allocations: 3.621 MB / 0.7101 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3472/1.092, allocations: 14.42 MB / 0.7242 GB, free: 160.1 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.332e-05/1.092, allocations: 65.97 kB / 0.7242 GB, free: 160 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=289): time 7.104e-06/1.092, allocations: 0 / 0.7242 GB, free: 160 MB / 0.5606 GB Notification: Performance of matching and sorting (n=339): time 0.1343/1.227, allocations: 41.75 MB / 0.765 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.204e-05/1.227, allocations: 214 kB / 0.7652 GB, free: 130.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007301/1.234, allocations: 5.474 MB / 0.7705 GB, free: 125.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001209/1.235, allocations: 69.7 kB / 0.7706 GB, free: 125.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00288/1.238, allocations: 4.418 MB / 0.7749 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002158/1.24, allocations: 1.245 MB / 0.7761 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002736/1.243, allocations: 1.781 MB / 0.7779 GB, free: 117.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.075e-05/1.243, allocations: 305.1 kB / 0.7782 GB, free: 117.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00538/1.249, allocations: 4.647 MB / 0.7827 GB, free: 112.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007652/1.256, allocations: 9.61 MB / 0.7921 GB, free: 100.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01442/1.271, allocations: 15.3 MB / 0.807 GB, free: 83.11 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001462/1.271, allocations: 52 kB / 0.8071 GB, free: 83.05 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.03977/1.311, allocations: 19.01 MB / 0.8257 GB, free: 64 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.979e-05/1.311, allocations: 80.22 kB / 0.8257 GB, free: 63.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001623/1.311, allocations: 176 kB / 0.8259 GB, free: 63.75 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01964/1.331, allocations: 5.782 MB / 0.8315 GB, free: 57.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006912/1.338, allocations: 2.059 MB / 0.8336 GB, free: 55.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02689/1.365, allocations: 25.66 MB / 0.8586 GB, free: 29.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007991/1.373, allocations: 0.5498 MB / 0.8591 GB, free: 29.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001607/1.374, allocations: 0.5038 MB / 0.8596 GB, free: 28.91 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.005595/1.38, allocations: 3.095 MB / 0.8627 GB, free: 25.79 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001279/1.381, allocations: 0.4974 MB / 0.8631 GB, free: 25.29 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0265/1.408, allocations: 12.68 MB / 0.8755 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.884e-05/1.408, allocations: 55.98 kB / 0.8756 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.079e-05/1.408, allocations: 12 kB / 0.8756 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.091e-05/1.408, allocations: 11.95 kB / 0.8756 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05014/1.458, allocations: 24.3 MB / 0.8993 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.621e-05/1.458, allocations: 10.56 kB / 0.8994 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003374/1.462, allocations: 0.5694 MB / 0.8999 GB, free: 3.105 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01899/1.481, allocations: 4.814 MB / 0.9046 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009317/1.482, allocations: 57.09 kB / 0.9047 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02887/1.51, allocations: 20.89 MB / 0.9251 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/1.511, allocations: 11.94 kB / 0.9251 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03708/1.548, allocations: 17.11 MB / 0.9418 GB, free: 7.77 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001912/1.55, allocations: 0.5334 MB / 0.9423 GB, free: 7.211 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001914/1.552, allocations: 56 kB / 0.9424 GB, free: 7.156 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004121/1.556, allocations: 257.9 kB / 0.9426 GB, free: 6.906 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00131/1.557, allocations: 201.6 kB / 0.9428 GB, free: 6.707 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006901/1.558, allocations: 80 kB / 0.9429 GB, free: 6.629 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.007643/1.565, allocations: 3.416 MB / 0.9462 GB, free: 3.234 MB / 0.6231 GB Notification: Performance of sort global known variables: time 7.81e-07/1.565, allocations: 0 / 0.9462 GB, free: 3.234 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.01016/1.576, allocations: 1.687 MB / 0.9479 GB, free: 1.555 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.3486/1.924, allocations: 17.78 MB / 0.9652 GB, free: 201.8 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01559/1.94, allocations: 10.69 MB / 0.9757 GB, free: 197.8 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/1.94, allocations: 0 / 0.9757 GB, free: 197.8 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005247/1.945, allocations: 4.051 MB / 0.9796 GB, free: 196.1 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004263/1.949, allocations: 0.6454 MB / 0.9802 GB, free: 195.8 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.13/2.079, allocations: 86.1 MB / 1.064 GB, free: 107.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006408/2.086, allocations: 4.607 MB / 1.069 GB, free: 102.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.007301/2.093, allocations: 2.994 MB / 1.072 GB, free: 99.88 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004091/2.097, allocations: 2.921 MB / 1.075 GB, free: 96.96 MB / 0.6231 GB Notification: Performance of SimCode: time 1.272e-06/2.097, allocations: 0 / 1.075 GB, free: 96.96 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4658/2.563, allocations: 127.8 MB / 1.199 GB, free: 214.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.95/41.51, allocations: 1.969 kB / 1.199 GB, free: 214.2 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