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.001741/0.001742, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001537/0.001537, allocations: 197.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.458/1.458, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2146/0.2146, allocations: 46.09 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4237/0.4254, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01532/0.4407, allocations: 13.38 MB / 0.5436 GB, free: 2.902 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01406/0.4549, allocations: 4.807 MB / 0.5483 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004261/0.4592, allocations: 94.28 kB / 0.5483 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008003/0.4673, allocations: 3.731 MB / 0.552 GB, free: 11.72 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007645/0.4749, allocations: 2.151 MB / 0.5541 GB, free: 9.562 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003092/0.4781, allocations: 1.076 MB / 0.5551 GB, free: 8.484 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01047/0.4886, allocations: 6.658 MB / 0.5616 GB, free: 1.812 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007021/0.4956, allocations: 4.506 MB / 0.566 GB, free: 13.24 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005468/0.5011, allocations: 2.025 MB / 0.568 GB, free: 11.21 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004501/0.5057, allocations: 2.746 MB / 0.5707 GB, free: 8.457 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001632/0.5073, allocations: 428 kB / 0.5711 GB, free: 8.039 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003609/0.5109, allocations: 1.436 MB / 0.5725 GB, free: 6.602 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003414/0.5144, allocations: 2.482 MB / 0.5749 GB, free: 4.113 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005322/0.5197, allocations: 2.832 MB / 0.5777 GB, free: 1.266 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01262/0.5324, allocations: 8.9 MB / 0.5864 GB, free: 8.336 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.5324, allocations: 0 / 0.5864 GB, free: 8.336 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5324, allocations: 0 / 0.5864 GB, free: 8.336 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004246/0.5329, allocations: 4 kB / 0.5864 GB, free: 8.332 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.01999/0.5529, allocations: 6.422 MB / 0.5927 GB, free: 1.836 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.5529, allocations: 12.03 kB / 0.5927 GB, free: 1.824 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002721/0.5557, allocations: 0.9158 MB / 0.5936 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0347/0.5904, allocations: 6.02 MB / 0.5995 GB, free: 10.86 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01036/0.6008, allocations: 4.64 MB / 0.604 GB, free: 6.164 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003169/0.6011, allocations: 291.4 kB / 0.6043 GB, free: 5.879 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001693/0.6028, allocations: 387.7 kB / 0.6046 GB, free: 5.5 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02661/0.6295, allocations: 11.91 MB / 0.6163 GB, free: 8.801 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003091/0.6298, allocations: 59.44 kB / 0.6163 GB, free: 8.742 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001632/0.6315, allocations: 179.8 kB / 0.6165 GB, free: 8.566 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003682/0.6352, allocations: 2.147 MB / 0.6186 GB, free: 6.418 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0211/0.6563, allocations: 10.16 MB / 0.6285 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06341/0.7197, allocations: 47.04 MB / 0.6744 GB, free: 11.85 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01468/0.7344, allocations: 5.792 MB / 0.6801 GB, free: 5.906 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004085/0.7386, allocations: 2.934 MB / 0.683 GB, free: 2.961 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01476/0.7534, allocations: 8.752 MB / 0.6915 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.41e-05/0.7535, allocations: 55.81 kB / 0.6916 GB, free: 9.98 MB / 0.545 GB Notification: Performance of pre-optimization done (n=206): time 6.202e-06/0.7535, allocations: 0 / 0.6916 GB, free: 9.98 MB / 0.545 GB Notification: Performance of matching and sorting (n=262): time 0.3917/1.145, allocations: 34.71 MB / 0.7255 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/1.145, allocations: 209.8 kB / 0.7257 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007976/1.153, allocations: 4.784 MB / 0.7303 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006344/1.154, allocations: 65.52 kB / 0.7304 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002204/1.156, allocations: 3.599 MB / 0.7339 GB, free: 158 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001166/1.157, allocations: 0.9664 MB / 0.7348 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00176/1.159, allocations: 1.344 MB / 0.7362 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.511e-05/1.159, allocations: 301.1 kB / 0.7364 GB, free: 156.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003451/1.163, allocations: 3.032 MB / 0.7394 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005406/1.168, allocations: 6.843 MB / 0.7461 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008937/1.177, allocations: 10.67 MB / 0.7565 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-05/1.177, allocations: 40 kB / 0.7565 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02172/1.199, allocations: 13.22 MB / 0.7695 GB, free: 125.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001812/1.199, allocations: 60 kB / 0.7695 GB, free: 125.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002097/1.199, allocations: 136 kB / 0.7696 GB, free: 125.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0108/1.21, allocations: 4.22 MB / 0.7738 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004846/1.215, allocations: 1.404 MB / 0.7751 GB, free: 119.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03439/1.249, allocations: 28.57 MB / 0.803 GB, free: 90.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005598/1.255, allocations: 399.4 kB / 0.8034 GB, free: 90.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007253/1.256, allocations: 396 kB / 0.8038 GB, free: 89.91 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.003297/1.259, allocations: 2.466 MB / 0.8062 GB, free: 87.44 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007487/1.26, allocations: 446.2 kB / 0.8066 GB, free: 87 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01343/1.273, allocations: 8.237 MB / 0.8147 GB, free: 78.73 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.124e-05/1.273, allocations: 28 kB / 0.8147 GB, free: 78.71 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.913e-05/1.273, allocations: 19.94 kB / 0.8147 GB, free: 78.69 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.46e-05/1.273, allocations: 11.95 kB / 0.8147 GB, free: 78.68 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02654/1.3, allocations: 16.73 MB / 0.8311 GB, free: 61.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-05/1.3, allocations: 4 kB / 0.8311 GB, free: 61.85 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001313/1.301, allocations: 303.5 kB / 0.8314 GB, free: 61.55 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008888/1.31, allocations: 3.797 MB / 0.8351 GB, free: 57.74 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003303/1.311, allocations: 47.94 kB / 0.8351 GB, free: 57.69 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02841/1.339, allocations: 27.34 MB / 0.8618 GB, free: 29.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/1.339, allocations: 15.88 kB / 0.8618 GB, free: 29.92 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01771/1.357, allocations: 12.11 MB / 0.8737 GB, free: 17.66 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001663/1.358, allocations: 491.2 kB / 0.8741 GB, free: 17.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006676/1.359, allocations: 48 kB / 0.8742 GB, free: 17.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001976/1.361, allocations: 171.7 kB / 0.8743 GB, free: 16.94 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006964/1.362, allocations: 194.1 kB / 0.8745 GB, free: 16.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001792/1.362, allocations: 71.44 kB / 0.8746 GB, free: 16.69 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003912/1.366, allocations: 3.035 MB / 0.8776 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.8e-07/1.366, allocations: 0 / 0.8776 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0067/1.373, allocations: 1.411 MB / 0.8789 GB, free: 12.25 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.01801/1.391, allocations: 12.8 MB / 0.8914 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01439/1.405, allocations: 8.208 MB / 0.8994 GB, free: 7.094 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/1.405, allocations: 192 / 0.8994 GB, free: 7.094 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005863/1.411, allocations: 3.49 MB / 0.9029 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004961/1.416, allocations: 0.6096 MB / 0.9034 GB, free: 2.965 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4294/1.845, allocations: 64.02 MB / 0.966 GB, free: 200.8 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003973/1.849, allocations: 3.92 MB / 0.9698 GB, free: 199.8 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.004078/1.854, allocations: 2.007 MB / 0.9718 GB, free: 199.7 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002494/1.856, allocations: 2.363 MB / 0.9741 GB, free: 197.8 MB / 0.6231 GB Notification: Performance of SimCode: time 1.313e-06/1.856, allocations: 3.844 kB / 0.9741 GB, free: 197.8 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1595/2.016, allocations: 114.8 MB / 1.086 GB, free: 87.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.88/23.9, allocations: 11.86 kB / 1.086 GB, free: 87.68 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