Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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.SphericalAndUniversal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001529/0.001529, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001938/0.001939, allocations: 202 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.406/1.406, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2253/0.2253, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001588, allocations: 75.88 kB / 480.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.368, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01443/0.3825, allocations: 13.39 MB / 0.5436 GB, free: 2.902 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.3933, allocations: 4.791 MB / 0.5482 GB, free: 15.13 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003241/0.3966, allocations: 94.62 kB / 0.5483 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006796/0.4034, allocations: 3.738 MB / 0.552 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005791/0.4092, allocations: 2.155 MB / 0.5541 GB, free: 9.562 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002213/0.4115, allocations: 1.072 MB / 0.5551 GB, free: 8.488 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008305/0.4198, allocations: 6.674 MB / 0.5617 GB, free: 1.801 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004801/0.4246, allocations: 4.498 MB / 0.5661 GB, free: 13.24 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002905/0.4275, allocations: 2.021 MB / 0.568 GB, free: 11.21 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003268/0.4308, allocations: 2.746 MB / 0.5707 GB, free: 8.457 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007615/0.4316, allocations: 428 kB / 0.5711 GB, free: 8.039 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002505/0.4341, allocations: 1.447 MB / 0.5725 GB, free: 6.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002171/0.4363, allocations: 2.47 MB / 0.5749 GB, free: 4.113 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002871/0.4392, allocations: 2.832 MB / 0.5777 GB, free: 1.266 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009253/0.4485, allocations: 8.9 MB / 0.5864 GB, free: 8.336 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.4485, allocations: 0 / 0.5864 GB, free: 8.336 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4485, allocations: 0 / 0.5864 GB, free: 8.336 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002338/0.4487, allocations: 0 / 0.5864 GB, free: 8.336 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01494/0.4637, allocations: 6.437 MB / 0.5927 GB, free: 1.824 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/0.4638, allocations: 12.03 kB / 0.5927 GB, free: 1.812 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001434/0.4652, allocations: 0.9158 MB / 0.5936 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03837/0.5036, allocations: 6.008 MB / 0.5995 GB, free: 10.86 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01036/0.514, allocations: 4.64 MB / 0.604 GB, free: 6.164 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002275/0.5142, allocations: 291.4 kB / 0.6043 GB, free: 5.879 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001147/0.5154, allocations: 395.6 kB / 0.6046 GB, free: 5.492 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02156/0.537, allocations: 11.9 MB / 0.6163 GB, free: 8.805 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001773/0.5372, allocations: 63.42 kB / 0.6163 GB, free: 8.742 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000503/0.5377, allocations: 179.8 kB / 0.6165 GB, free: 8.566 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003191/0.5409, allocations: 2.143 MB / 0.6186 GB, free: 6.422 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0197/0.5606, allocations: 10.16 MB / 0.6285 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05333/0.614, allocations: 47.04 MB / 0.6745 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01423/0.6283, allocations: 5.78 MB / 0.6801 GB, free: 5.914 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00343/0.6317, allocations: 2.934 MB / 0.683 GB, free: 2.969 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01366/0.6454, allocations: 8.756 MB / 0.6915 GB, free: 10.05 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.226e-05/0.6455, allocations: 63.81 kB / 0.6916 GB, free: 9.977 MB / 0.545 GB Notification: Performance of pre-optimization done (n=206): time 4.99e-06/0.6455, allocations: 0 / 0.6916 GB, free: 9.977 MB / 0.545 GB Notification: Performance of matching and sorting (n=262): time 0.4252/1.071, allocations: 34.69 MB / 0.7255 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/1.071, allocations: 209.2 kB / 0.7257 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008693/1.08, allocations: 4.799 MB / 0.7303 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007363/1.08, allocations: 65.05 kB / 0.7304 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002315/1.083, allocations: 3.586 MB / 0.7339 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001236/1.084, allocations: 0.9677 MB / 0.7348 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001968/1.086, allocations: 1.35 MB / 0.7362 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.098e-05/1.086, allocations: 301.1 kB / 0.7365 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003515/1.089, allocations: 3.026 MB / 0.7394 GB, free: 156.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004711/1.094, allocations: 6.842 MB / 0.7461 GB, free: 150 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009562/1.104, allocations: 10.67 MB / 0.7565 GB, free: 140.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001269/1.104, allocations: 43.98 kB / 0.7566 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02326/1.127, allocations: 13.21 MB / 0.7695 GB, free: 126.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.942e-05/1.127, allocations: 64 kB / 0.7695 GB, free: 126.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.753e-05/1.127, allocations: 132 kB / 0.7696 GB, free: 126.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01079/1.138, allocations: 4.224 MB / 0.7738 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004342/1.143, allocations: 1.415 MB / 0.7752 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0313/1.174, allocations: 28.55 MB / 0.803 GB, free: 92.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006896/1.181, allocations: 395.1 kB / 0.8034 GB, free: 91.72 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001183/1.182, allocations: 403.9 kB / 0.8038 GB, free: 91.33 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 606 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (756): * Single equations (assignments): 750 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.004231/1.186, allocations: 2.461 MB / 0.8062 GB, free: 88.86 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001177/1.187, allocations: 450.2 kB / 0.8066 GB, free: 88.41 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01396/1.201, allocations: 8.226 MB / 0.8147 GB, free: 80.15 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.678e-05/1.202, allocations: 32 kB / 0.8147 GB, free: 80.12 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-05/1.202, allocations: 15.94 kB / 0.8147 GB, free: 80.11 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.158e-05/1.202, allocations: 15.95 kB / 0.8147 GB, free: 80.09 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03086/1.233, allocations: 16.73 MB / 0.8311 GB, free: 63.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.877e-05/1.233, allocations: 12.08 kB / 0.8311 GB, free: 63.26 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/1.234, allocations: 295.6 kB / 0.8314 GB, free: 62.97 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009337/1.243, allocations: 3.797 MB / 0.8351 GB, free: 59.16 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004819/1.244, allocations: 51.92 kB / 0.8351 GB, free: 59.11 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02929/1.273, allocations: 27.34 MB / 0.8618 GB, free: 31.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.618e-06/1.273, allocations: 19.88 kB / 0.8618 GB, free: 31.34 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01927/1.293, allocations: 12.11 MB / 0.8737 GB, free: 19.07 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001492/1.294, allocations: 487.2 kB / 0.8741 GB, free: 18.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001317/1.295, allocations: 55.19 kB / 0.8742 GB, free: 18.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002916/1.298, allocations: 167.7 kB / 0.8743 GB, free: 18.36 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008822/1.299, allocations: 202 kB / 0.8745 GB, free: 18.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002164/1.299, allocations: 67.98 kB / 0.8746 GB, free: 18.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004203/1.304, allocations: 3.039 MB / 0.8776 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.21e-07/1.304, allocations: 0 / 0.8776 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006462/1.31, allocations: 1.406 MB / 0.8789 GB, free: 13.66 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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01818/1.328, allocations: 12.8 MB / 0.8914 GB, free: 0.7266 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01508/1.344, allocations: 8.212 MB / 0.8994 GB, free: 8.508 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.809e-06/1.344, allocations: 0 / 0.8994 GB, free: 8.508 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006537/1.35, allocations: 3.484 MB / 0.9029 GB, free: 4.984 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005369/1.356, allocations: 0.618 MB / 0.9035 GB, free: 4.371 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3902/1.746, allocations: 64.02 MB / 0.966 GB, free: 203.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003898/1.75, allocations: 3.92 MB / 0.9698 GB, free: 202.6 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.004211/1.754, allocations: 2.001 MB / 0.9718 GB, free: 202.6 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00263/1.757, allocations: 2.37 MB / 0.9741 GB, free: 200.7 MB / 0.6231 GB Notification: Performance of SimCode: time 1.473e-06/1.757, allocations: 0 / 0.9741 GB, free: 200.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1689/1.926, allocations: 114.8 MB / 1.086 GB, free: 91.12 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.92/23.84, allocations: 11.42 kB / 1.086 GB, free: 91.12 MB / 0.6231 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches