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.00148/0.001481, allocations: 114 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001535/0.001535, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2259/0.2259, allocations: 46.11 MB / 343.8 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 77.66 kB / 417.2 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1284, allocations: 62.44 MB / 479.6 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.3117/0.4401, allocations: 61.93 MB / 0.5288 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03503/0.4752, allocations: 12.67 MB / 0.5412 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01729/0.4926, allocations: 279.9 kB / 0.5415 GB, free: 1.434 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007619/0.5003, allocations: 3.594 MB / 0.545 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007658/0.508, allocations: 2.013 MB / 0.547 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00343/0.5114, allocations: 1.009 MB / 0.5479 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.5225, allocations: 7.029 MB / 0.5548 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007461/0.53, allocations: 4.748 MB / 0.5594 GB, free: 5.461 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004267/0.5343, allocations: 2.072 MB / 0.5615 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005726/0.5401, allocations: 3.053 MB / 0.5644 GB, free: 328 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001775/0.5419, allocations: 428 kB / 0.5649 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003507/0.5454, allocations: 1.451 MB / 0.5663 GB, free: 14.45 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003336/0.5488, allocations: 2.486 MB / 0.5687 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00493/0.5537, allocations: 2.851 MB / 0.5715 GB, free: 9.09 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0138/0.5676, allocations: 8.711 MB / 0.58 GB, free: 360 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.154e-05/0.5676, allocations: 0 / 0.58 GB, free: 360 kB / 414.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.5676, allocations: 3.938 kB / 0.58 GB, free: 356 kB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003711/0.568, allocations: 0 / 0.58 GB, free: 356 kB / 414.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.0218/0.5898, allocations: 6.426 MB / 0.5863 GB, free: 9.848 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.335e-05/0.5899, allocations: 8.031 kB / 0.5863 GB, free: 9.84 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003832/0.5938, allocations: 0.9158 MB / 0.5872 GB, free: 8.914 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03769/0.6315, allocations: 6.024 MB / 0.5931 GB, free: 2.875 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01067/0.6422, allocations: 4.547 MB / 0.5975 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003004/0.6425, allocations: 283.7 kB / 0.5978 GB, free: 14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001629/0.6442, allocations: 399.6 kB / 0.5981 GB, free: 13.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02491/0.6691, allocations: 11.9 MB / 0.6098 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002949/0.6694, allocations: 59.48 kB / 0.6098 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001334/0.6708, allocations: 183.8 kB / 0.61 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003603/0.6744, allocations: 2.14 MB / 0.6121 GB, free: 14.53 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02305/0.6975, allocations: 10.15 MB / 0.622 GB, free: 4.355 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0751/0.7726, allocations: 47.27 MB / 0.6682 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01586/0.7885, allocations: 5.774 MB / 0.6738 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00434/0.7929, allocations: 2.943 MB / 0.6767 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01711/0.8101, allocations: 8.74 MB / 0.6852 GB, free: 1.965 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.882e-05/0.8102, allocations: 55.81 kB / 0.6853 GB, free: 1.902 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=206): time 8.686e-06/0.8102, allocations: 0 / 0.6853 GB, free: 1.902 MB / 0.5137 GB Notification: Performance of matching and sorting (n=262): time 0.4116/1.222, allocations: 34.72 MB / 0.7192 GB, free: 196.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.684e-05/1.222, allocations: 210 kB / 0.7194 GB, free: 196.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008511/1.23, allocations: 4.783 MB / 0.724 GB, free: 195.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006703/1.231, allocations: 67.14 kB / 0.7241 GB, free: 195.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003345/1.234, allocations: 3.594 MB / 0.7276 GB, free: 193.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001686/1.236, allocations: 0.9659 MB / 0.7286 GB, free: 192.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002657/1.239, allocations: 1.344 MB / 0.7299 GB, free: 191.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.316e-05/1.239, allocations: 310.2 kB / 0.7302 GB, free: 191.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006398/1.245, allocations: 3.027 MB / 0.7331 GB, free: 190.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008624/1.254, allocations: 6.844 MB / 0.7398 GB, free: 184.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01274/1.267, allocations: 10.68 MB / 0.7502 GB, free: 176 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001498/1.267, allocations: 35.91 kB / 0.7503 GB, free: 176 MB / 0.545 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02438/1.291, allocations: 13.22 MB / 0.7632 GB, free: 171.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.84e-05/1.292, allocations: 60.44 kB / 0.7632 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001454/1.292, allocations: 134.8 kB / 0.7634 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0112/1.303, allocations: 4.233 MB / 0.7675 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00459/1.307, allocations: 1.411 MB / 0.7689 GB, free: 168.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03253/1.34, allocations: 28.59 MB / 0.7968 GB, free: 139.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007183/1.347, allocations: 391.5 kB / 0.7972 GB, free: 138.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001315/1.349, allocations: 399.9 kB / 0.7975 GB, free: 138.4 MB / 0.545 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.004741/1.353, allocations: 2.462 MB / 0.8 GB, free: 135.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001173/1.355, allocations: 438.3 kB / 0.8004 GB, free: 135.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01493/1.369, allocations: 8.237 MB / 0.8084 GB, free: 127.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-05/1.37, allocations: 35.77 kB / 0.8084 GB, free: 127.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.825e-05/1.37, allocations: 13 kB / 0.8085 GB, free: 127.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.478e-05/1.37, allocations: 15.95 kB / 0.8085 GB, free: 127.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03176/1.401, allocations: 16.88 MB / 0.825 GB, free: 110.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.082e-05/1.402, allocations: 7.984 kB / 0.825 GB, free: 110.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/1.403, allocations: 295.6 kB / 0.8252 GB, free: 109.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00926/1.412, allocations: 3.814 MB / 0.829 GB, free: 106.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004249/1.413, allocations: 52.73 kB / 0.829 GB, free: 106 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03041/1.443, allocations: 27.31 MB / 0.8557 GB, free: 78.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.565e-06/1.443, allocations: 11.94 kB / 0.8557 GB, free: 78.31 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01948/1.463, allocations: 12.11 MB / 0.8675 GB, free: 66.06 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001782/1.464, allocations: 491.2 kB / 0.868 GB, free: 65.56 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001604/1.466, allocations: 48 kB / 0.868 GB, free: 65.51 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003122/1.469, allocations: 167.8 kB / 0.8682 GB, free: 65.35 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009607/1.47, allocations: 186.1 kB / 0.8684 GB, free: 65.17 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003333/1.471, allocations: 80.58 kB / 0.8685 GB, free: 65.09 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006435/1.477, allocations: 3.035 MB / 0.8714 GB, free: 62.06 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.61e-07/1.477, allocations: 0 / 0.8714 GB, free: 62.06 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009575/1.487, allocations: 1.409 MB / 0.8728 GB, free: 60.66 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 (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.02118/1.508, allocations: 12.78 MB / 0.8853 GB, free: 47.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01648/1.524, allocations: 9.753 MB / 0.8948 GB, free: 37.98 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/1.524, allocations: 0 / 0.8948 GB, free: 37.98 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005609/1.53, allocations: 3.502 MB / 0.8982 GB, free: 34.45 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006329/1.536, allocations: 0.6056 MB / 0.8988 GB, free: 33.85 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.387/1.923, allocations: 75.9 MB / 0.9729 GB, free: 160.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005896/1.929, allocations: 3.91 MB / 0.9768 GB, free: 157.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004651/1.934, allocations: 2.006 MB / 0.9787 GB, free: 156.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003053/1.937, allocations: 2.37 MB / 0.981 GB, free: 153.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.172e-06/1.937, allocations: 0 / 0.981 GB, free: 153.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1778/2.115, allocations: 116.6 MB / 1.095 GB, free: 37.78 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/2.115, allocations: 261.1 kB / 1.095 GB, free: 37.52 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.971/7.086, allocations: 0 / 1.095 GB, free: 37.52 MB / 0.545 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