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.0009356/0.0009355, allocations: 96.34 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 202.3 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.7 MB / 246.8 MB, free: 9.688 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2192/0.2192, allocations: 46.18 MB / 345.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002738/0.0002739, allocations: 8.281 kB / 419.6 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1216, allocations: 63.56 MB / 483.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.3062/0.4279, allocations: 60.39 MB / 0.5308 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02999/0.4579, allocations: 12.7 MB / 0.5432 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01221/0.4702, allocations: 279.5 kB / 0.5435 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001845/0.472, allocations: 0.4966 MB / 0.544 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007202/0.4793, allocations: 2.047 MB / 0.546 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0029/0.4822, allocations: 0.9917 MB / 0.5469 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01173/0.4939, allocations: 9.265 MB / 0.556 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009466/0.5034, allocations: 6.282 MB / 0.5621 GB, free: 5.727 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003402/0.5069, allocations: 1.502 MB / 0.5636 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003895/0.5108, allocations: 2.569 MB / 0.5661 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001112/0.5119, allocations: 176 kB / 0.5663 GB, free: 1.469 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003123/0.515, allocations: 1.268 MB / 0.5675 GB, free: 204 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002209/0.5173, allocations: 2.17 MB / 0.5696 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00287/0.5201, allocations: 2.501 MB / 0.5721 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01025/0.5304, allocations: 8.307 MB / 0.5802 GB, free: 3.164 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.5305, allocations: 4 kB / 0.5802 GB, free: 3.16 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.5305, allocations: 0 / 0.5802 GB, free: 3.16 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003573/0.5309, allocations: 0 / 0.5802 GB, free: 3.16 MB / 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.01607/0.5469, allocations: 5.315 MB / 0.5854 GB, free: 13.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.547, allocations: 8.875 kB / 0.5854 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002737/0.5498, allocations: 0.9158 MB / 0.5863 GB, free: 12.84 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03969/0.5895, allocations: 6.098 MB / 0.5922 GB, free: 6.727 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01059/0.6001, allocations: 4.543 MB / 0.5967 GB, free: 2.129 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003354/0.6005, allocations: 287.6 kB / 0.5969 GB, free: 1.848 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001519/0.602, allocations: 391.6 kB / 0.5973 GB, free: 1.465 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02617/0.6282, allocations: 11.92 MB / 0.609 GB, free: 4.75 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000259/0.6285, allocations: 71.34 kB / 0.609 GB, free: 4.68 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001292/0.6298, allocations: 183.8 kB / 0.6092 GB, free: 4.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003618/0.6334, allocations: 2.136 MB / 0.6113 GB, free: 2.363 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02157/0.655, allocations: 10.19 MB / 0.6212 GB, free: 8.156 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06509/0.7201, allocations: 47.29 MB / 0.6674 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01556/0.7357, allocations: 5.781 MB / 0.6731 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00442/0.7402, allocations: 2.936 MB / 0.6759 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01398/0.7542, allocations: 8.76 MB / 0.6845 GB, free: 5.727 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/0.7543, allocations: 51.88 kB / 0.6845 GB, free: 5.668 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=206): time 4.208e-06/0.7543, allocations: 0 / 0.6845 GB, free: 5.668 MB / 0.5137 GB Notification: Performance of matching and sorting (n=262): time 0.3456/1.1, allocations: 34.76 MB / 0.7185 GB, free: 179 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.47e-05/1.1, allocations: 209.3 kB / 0.7187 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00856/1.109, allocations: 4.795 MB / 0.7234 GB, free: 177.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005611/1.109, allocations: 61.55 kB / 0.7234 GB, free: 177 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002221/1.111, allocations: 3.593 MB / 0.7269 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001202/1.113, allocations: 0.9672 MB / 0.7279 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001033/1.114, allocations: 0.5643 MB / 0.7284 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.08e-05/1.114, allocations: 305.1 kB / 0.7287 GB, free: 173 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004212/1.118, allocations: 3.03 MB / 0.7317 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005319/1.123, allocations: 6.838 MB / 0.7384 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/1.134, allocations: 10.68 MB / 0.7488 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002012/1.134, allocations: 38.94 kB / 0.7488 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02695/1.161, allocations: 13.21 MB / 0.7617 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001825/1.162, allocations: 60 kB / 0.7618 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002525/1.162, allocations: 136.8 kB / 0.7619 GB, free: 146.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01158/1.173, allocations: 4.243 MB / 0.7661 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004513/1.178, allocations: 1.411 MB / 0.7674 GB, free: 140.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03184/1.21, allocations: 26.41 MB / 0.7932 GB, free: 113.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006207/1.216, allocations: 395.4 kB / 0.7936 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001556/1.218, allocations: 398 kB / 0.794 GB, free: 113 MB / 0.5294 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.005079/1.223, allocations: 2.473 MB / 0.7964 GB, free: 110.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/1.224, allocations: 439.6 kB / 0.7968 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01621/1.24, allocations: 8.239 MB / 0.8049 GB, free: 101.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-05/1.24, allocations: 28 kB / 0.8049 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.099e-05/1.241, allocations: 12 kB / 0.8049 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-05/1.241, allocations: 15.95 kB / 0.8049 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03187/1.272, allocations: 16.87 MB / 0.8214 GB, free: 84.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.601e-05/1.273, allocations: 4 kB / 0.8214 GB, free: 84.75 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001473/1.274, allocations: 304.1 kB / 0.8217 GB, free: 84.45 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01083/1.285, allocations: 3.942 MB / 0.8255 GB, free: 80.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005844/1.286, allocations: 51.98 kB / 0.8256 GB, free: 80.45 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03082/1.316, allocations: 25.2 MB / 0.8502 GB, free: 54.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/1.316, allocations: 7.938 kB / 0.8502 GB, free: 54.85 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02129/1.338, allocations: 12.12 MB / 0.862 GB, free: 42.59 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002199/1.34, allocations: 491.2 kB / 0.8625 GB, free: 42.08 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001924/1.342, allocations: 54.09 kB / 0.8626 GB, free: 42.03 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003455/1.345, allocations: 163.8 kB / 0.8627 GB, free: 41.87 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000997/1.346, allocations: 198.1 kB / 0.8629 GB, free: 41.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003757/1.347, allocations: 76.47 kB / 0.863 GB, free: 41.61 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006162/1.353, allocations: 3.035 MB / 0.8659 GB, free: 38.58 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.71e-07/1.353, allocations: 3.938 kB / 0.8659 GB, free: 38.57 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008854/1.362, allocations: 1.409 MB / 0.8673 GB, free: 37.17 MB / 0.5294 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.02129/1.383, allocations: 12.79 MB / 0.8798 GB, free: 24.24 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01335/1.397, allocations: 8.152 MB / 0.8878 GB, free: 16.07 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/1.397, allocations: 7.938 kB / 0.8878 GB, free: 16.07 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005479/1.402, allocations: 3.517 MB / 0.8912 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007961/1.41, allocations: 0.5905 MB / 0.8918 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3721/1.782, allocations: 75.98 MB / 0.966 GB, free: 122.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006363/1.789, allocations: 3.908 MB / 0.9698 GB, free: 118.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005007/1.794, allocations: 2.011 MB / 0.9718 GB, free: 116.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003376/1.797, allocations: 2.362 MB / 0.9741 GB, free: 114.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.933e-06/1.797, allocations: 3.938 kB / 0.9741 GB, free: 114.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1375/1.935, allocations: 111.8 MB / 1.083 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001605/1.935, allocations: 256.5 kB / 1.084 GB, free: 2.715 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.526/6.461, allocations: 3.75 kB / 1.084 GB, free: 2.715 MB / 0.5294 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