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.001277/0.001277, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2403/0.2403, allocations: 46.12 MB / 344.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002181/0.002181, allocations: 79.88 kB / 480.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3781, allocations: 62.46 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01981/0.398, allocations: 14.98 MB / 0.5453 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01338/0.4115, allocations: 4.829 MB / 0.55 GB, free: 13.78 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003951/0.4154, allocations: 99.06 kB / 0.5501 GB, free: 13.71 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007437/0.423, allocations: 3.146 MB / 0.5531 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008762/0.4318, allocations: 2.528 MB / 0.5556 GB, free: 8.016 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002922/0.4347, allocations: 0.9827 MB / 0.5566 GB, free: 7.031 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01221/0.4469, allocations: 7.034 MB / 0.5634 GB, free: 15.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006822/0.4538, allocations: 4.373 MB / 0.5677 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004524/0.4584, allocations: 2.219 MB / 0.5699 GB, free: 9.32 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005811/0.4642, allocations: 3.236 MB / 0.573 GB, free: 6.074 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002115/0.4664, allocations: 484 kB / 0.5735 GB, free: 5.602 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004694/0.4711, allocations: 1.482 MB / 0.5749 GB, free: 4.117 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004734/0.4758, allocations: 2.833 MB / 0.5777 GB, free: 1.277 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006501/0.4824, allocations: 3.293 MB / 0.5809 GB, free: 13.96 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01619/0.4986, allocations: 10.56 MB / 0.5912 GB, free: 3.363 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.959e-06/0.4986, allocations: 0 / 0.5912 GB, free: 3.363 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4986, allocations: 0 / 0.5912 GB, free: 3.363 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004217/0.4991, allocations: 0 / 0.5912 GB, free: 3.363 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.02225/0.5213, allocations: 7.655 MB / 0.5987 GB, free: 11.61 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.5214, allocations: 11.97 kB / 0.5987 GB, free: 11.6 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003394/0.5248, allocations: 1.133 MB / 0.5998 GB, free: 10.45 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04533/0.5701, allocations: 7.508 MB / 0.6072 GB, free: 2.926 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01199/0.5822, allocations: 4.722 MB / 0.6118 GB, free: 14.14 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003368/0.5825, allocations: 324.2 kB / 0.6121 GB, free: 13.82 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002197/0.5847, allocations: 427.7 kB / 0.6125 GB, free: 13.4 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02874/0.6135, allocations: 15.63 MB / 0.6277 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001631/0.6137, allocations: 59.47 kB / 0.6278 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007128/0.6144, allocations: 207.8 kB / 0.628 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005288/0.6197, allocations: 3.22 MB / 0.6311 GB, free: 9.359 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02879/0.6485, allocations: 13.95 MB / 0.6448 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08249/0.7311, allocations: 57.21 MB / 0.7006 GB, free: 0.6289 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01467/0.7458, allocations: 6.524 MB / 0.707 GB, free: 9.844 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005581/0.7514, allocations: 3.617 MB / 0.7105 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3144/1.066, allocations: 14.42 MB / 0.7246 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.104e-05/1.066, allocations: 65.47 kB / 0.7247 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=289): time 7.363e-06/1.066, allocations: 0 / 0.7247 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=339): time 0.1338/1.2, allocations: 42.08 MB / 0.7658 GB, free: 130.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.652e-05/1.2, allocations: 214 kB / 0.766 GB, free: 130.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006697/1.207, allocations: 5.488 MB / 0.7713 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007985/1.208, allocations: 73.7 kB / 0.7714 GB, free: 124.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00228/1.21, allocations: 4.59 MB / 0.7759 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001555/1.211, allocations: 1.311 MB / 0.7772 GB, free: 119.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00237/1.214, allocations: 1.79 MB / 0.7789 GB, free: 117.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.773e-05/1.214, allocations: 305.1 kB / 0.7792 GB, free: 117.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005092/1.219, allocations: 4.647 MB / 0.7838 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007036/1.226, allocations: 9.61 MB / 0.7931 GB, free: 100.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01439/1.24, allocations: 15.3 MB / 0.8081 GB, free: 82.62 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001221/1.241, allocations: 48 kB / 0.8081 GB, free: 82.58 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.03994/1.281, allocations: 19.04 MB / 0.8267 GB, free: 63.49 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/1.281, allocations: 76 kB / 0.8268 GB, free: 63.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001786/1.281, allocations: 176 kB / 0.827 GB, free: 63.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02106/1.302, allocations: 5.775 MB / 0.8326 GB, free: 57.46 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00675/1.309, allocations: 2.066 MB / 0.8346 GB, free: 55.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02614/1.335, allocations: 25.67 MB / 0.8597 GB, free: 29.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007268/1.342, allocations: 0.5501 MB / 0.8602 GB, free: 28.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001437/1.344, allocations: 0.5037 MB / 0.8607 GB, free: 28.39 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.005118/1.349, allocations: 3.094 MB / 0.8637 GB, free: 25.28 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/1.35, allocations: 0.5277 MB / 0.8643 GB, free: 24.75 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02804/1.378, allocations: 12.68 MB / 0.8766 GB, free: 12 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001055/1.378, allocations: 61.52 kB / 0.8767 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.07e-05/1.378, allocations: 8 kB / 0.8767 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.111e-05/1.378, allocations: 21.44 kB / 0.8767 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0507/1.429, allocations: 24.28 MB / 0.9004 GB, free: 3.145 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.49e-05/1.429, allocations: 7.938 kB / 0.9004 GB, free: 3.137 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003207/1.432, allocations: 0.585 MB / 0.901 GB, free: 2.551 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0201/1.452, allocations: 4.805 MB / 0.9057 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007867/1.453, allocations: 62.48 kB / 0.9058 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0299/1.483, allocations: 20.91 MB / 0.9262 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/1.483, allocations: 7.938 kB / 0.9262 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03814/1.521, allocations: 17.14 MB / 0.9429 GB, free: 7.168 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001882/1.523, allocations: 0.5559 MB / 0.9435 GB, free: 6.59 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00135/1.525, allocations: 52 kB / 0.9435 GB, free: 6.539 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003052/1.528, allocations: 269.6 kB / 0.9438 GB, free: 6.277 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007947/1.528, allocations: 185.6 kB / 0.944 GB, free: 6.094 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003059/1.529, allocations: 90.02 kB / 0.9441 GB, free: 6.008 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.005904/1.535, allocations: 3.42 MB / 0.9474 GB, free: 2.609 MB / 0.6231 GB Notification: Performance of sort global known variables: time 6.633e-06/1.535, allocations: 4 kB / 0.9474 GB, free: 2.605 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.2842/1.819, allocations: 1.688 MB / 0.949 GB, free: 206.8 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.0353/1.854, allocations: 17.8 MB / 0.9664 GB, free: 202.1 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01378/1.868, allocations: 10.69 MB / 0.9769 GB, free: 198.1 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/1.868, allocations: 0 / 0.9769 GB, free: 198.1 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.004853/1.873, allocations: 4.057 MB / 0.9808 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.003625/1.877, allocations: 0.6436 MB / 0.9815 GB, free: 196.1 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1307/2.007, allocations: 86.34 MB / 1.066 GB, free: 106.2 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005092/2.012, allocations: 4.621 MB / 1.07 GB, free: 101.5 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00583/2.018, allocations: 2.99 MB / 1.073 GB, free: 98.51 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003781/2.022, allocations: 2.913 MB / 1.076 GB, free: 95.59 MB / 0.6231 GB Notification: Performance of SimCode: time 1.233e-06/2.022, allocations: 0 / 1.076 GB, free: 95.59 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4654/2.487, allocations: 125.6 MB / 1.199 GB, free: 213.8 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.67/42.16, allocations: 6.281 kB / 1.199 GB, free: 213.8 MB / 0.6388 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