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.001678/0.001678, allocations: 116 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.002299/0.0023, 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.444/1.444, allocations: 227.4 MB / 246.4 MB, free: 9.078 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2226/0.2226, allocations: 46.1 MB / 343.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002278/0.002278, allocations: 71.27 kB / 417.1 MB, free: 19.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1576, allocations: 62.45 MB / 479.6 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3479/0.5055, allocations: 53.09 MB / 0.5202 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04238/0.5479, allocations: 10.98 MB / 0.5309 GB, free: 6.543 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01995/0.5679, allocations: 231.5 kB / 0.5311 GB, free: 6.508 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009169/0.5772, allocations: 3.016 MB / 0.5341 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007884/0.5851, allocations: 2.358 MB / 0.5364 GB, free: 4.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002988/0.5881, allocations: 0.936 MB / 0.5373 GB, free: 4.535 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01357/0.6017, allocations: 7.441 MB / 0.5446 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008574/0.6104, allocations: 4.584 MB / 0.5491 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005691/0.6161, allocations: 2.273 MB / 0.5513 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005917/0.622, allocations: 3.584 MB / 0.5548 GB, free: 9.555 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002078/0.6241, allocations: 488 kB / 0.5552 GB, free: 9.078 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004626/0.6288, allocations: 1.496 MB / 0.5567 GB, free: 7.637 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004992/0.6338, allocations: 2.875 MB / 0.5595 GB, free: 4.766 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00768/0.6415, allocations: 3.321 MB / 0.5628 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01849/0.66, allocations: 10.21 MB / 0.5727 GB, free: 7.477 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.282e-05/0.6601, allocations: 4 kB / 0.5727 GB, free: 7.473 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.6601, allocations: 0 / 0.5727 GB, free: 7.473 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000489/0.6606, allocations: 0 / 0.5727 GB, free: 7.473 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02581/0.6864, allocations: 7.471 MB / 0.58 GB, free: 80 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.6865, allocations: 12.03 kB / 0.58 GB, free: 68 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004658/0.6912, allocations: 1.141 MB / 0.5811 GB, free: 14.97 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0455/0.7367, allocations: 7.463 MB / 0.5884 GB, free: 7.488 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01724/0.754, allocations: 4.63 MB / 0.593 GB, free: 2.844 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007534/0.7548, allocations: 319.6 kB / 0.5933 GB, free: 2.586 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003969/0.7589, allocations: 440.8 kB / 0.5937 GB, free: 2.184 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03512/0.794, allocations: 15.62 MB / 0.6089 GB, free: 1.633 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002602/0.7943, allocations: 63.44 kB / 0.609 GB, free: 1.57 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00176/0.7961, allocations: 203.8 kB / 0.6092 GB, free: 1.371 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005602/0.8017, allocations: 3.216 MB / 0.6123 GB, free: 14.15 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03272/0.8344, allocations: 13.94 MB / 0.6259 GB, free: 184 kB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09148/0.926, allocations: 57.37 MB / 0.682 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01417/0.9402, allocations: 6.511 MB / 0.6883 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00526/0.9455, allocations: 3.63 MB / 0.6919 GB, free: 10.83 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02407/0.9696, allocations: 14.43 MB / 0.706 GB, free: 11.85 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.672e-05/0.9697, allocations: 60.5 kB / 0.706 GB, free: 11.78 MB / 0.545 GB Notification: Performance of pre-optimization done (n=289): time 6.923e-06/0.9697, allocations: 4 kB / 0.706 GB, free: 11.78 MB / 0.545 GB Notification: Performance of matching and sorting (n=339): time 0.453/1.423, allocations: 41.74 MB / 0.7468 GB, free: 187.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.523e-05/1.423, allocations: 221 kB / 0.747 GB, free: 187 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006838/1.43, allocations: 5.477 MB / 0.7524 GB, free: 184.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007949/1.431, allocations: 76.2 kB / 0.7524 GB, free: 184.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002174/1.433, allocations: 4.41 MB / 0.7567 GB, free: 180.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001443/1.434, allocations: 1.254 MB / 0.758 GB, free: 179.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002268/1.436, allocations: 1.779 MB / 0.7597 GB, free: 178.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.934e-05/1.437, allocations: 301.1 kB / 0.76 GB, free: 178 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005366/1.442, allocations: 4.646 MB / 0.7645 GB, free: 174.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008069/1.45, allocations: 9.61 MB / 0.7739 GB, free: 162.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01476/1.465, allocations: 15.31 MB / 0.7888 GB, free: 144.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001393/1.465, allocations: 52 kB / 0.7889 GB, free: 144.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04099/1.506, allocations: 19.01 MB / 0.8075 GB, free: 125.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001436/1.506, allocations: 83.97 kB / 0.8075 GB, free: 125.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002398/1.506, allocations: 176 kB / 0.8077 GB, free: 124.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02062/1.527, allocations: 5.764 MB / 0.8133 GB, free: 119.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007325/1.534, allocations: 2.07 MB / 0.8154 GB, free: 117.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0289/1.563, allocations: 25.65 MB / 0.8404 GB, free: 91.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009381/1.573, allocations: 0.55 MB / 0.8409 GB, free: 90.61 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002142/1.575, allocations: 0.5051 MB / 0.8414 GB, free: 90.11 MB / 0.545 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.006946/1.582, allocations: 3.097 MB / 0.8445 GB, free: 87 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001385/1.583, allocations: 0.4975 MB / 0.845 GB, free: 86.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02763/1.611, allocations: 12.67 MB / 0.8573 GB, free: 73.76 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-05/1.611, allocations: 55.98 kB / 0.8574 GB, free: 73.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-05/1.611, allocations: 8 kB / 0.8574 GB, free: 73.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.89e-05/1.611, allocations: 15.94 kB / 0.8574 GB, free: 73.68 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04516/1.656, allocations: 24.38 MB / 0.8812 GB, free: 48.83 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.826e-05/1.656, allocations: 5.5 kB / 0.8812 GB, free: 48.83 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002992/1.659, allocations: 0.5811 MB / 0.8818 GB, free: 48.25 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01757/1.677, allocations: 4.81 MB / 0.8865 GB, free: 43.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008057/1.678, allocations: 59.98 kB / 0.8865 GB, free: 43.37 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02247/1.7, allocations: 20.88 MB / 0.9069 GB, free: 22.21 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/1.7, allocations: 8 kB / 0.9069 GB, free: 22.21 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3048/2.005, allocations: 17.11 MB / 0.9237 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001984/2.007, allocations: 0.5261 MB / 0.9242 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001457/2.009, allocations: 56.66 kB / 0.9242 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003475/2.012, allocations: 259.7 kB / 0.9245 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009881/2.013, allocations: 195.3 kB / 0.9247 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003358/2.014, allocations: 83.92 kB / 0.9247 GB, free: 176.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006305/2.02, allocations: 3.419 MB / 0.9281 GB, free: 175 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.72e-07/2.02, allocations: 0 / 0.9281 GB, free: 175 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009334/2.029, allocations: 1.682 MB / 0.9297 GB, free: 174.8 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 (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.03514/2.064, allocations: 17.78 MB / 0.9471 GB, free: 168.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02406/2.089, allocations: 15.43 MB / 0.9622 GB, free: 161 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/2.089, allocations: 6.625 kB / 0.9622 GB, free: 161 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005649/2.094, allocations: 4.049 MB / 0.9661 GB, free: 157.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004369/2.099, allocations: 0.6465 MB / 0.9667 GB, free: 156.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1659/2.265, allocations: 101.3 MB / 1.066 GB, free: 45.62 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007237/2.272, allocations: 4.619 MB / 1.07 GB, free: 40.97 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008049/2.28, allocations: 2.99 MB / 1.073 GB, free: 37.97 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005364/2.285, allocations: 2.921 MB / 1.076 GB, free: 35.05 MB / 0.545 GB Notification: Performance of SimCode: time 2.374e-06/2.285, allocations: 0 / 1.076 GB, free: 35.05 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4546/2.74, allocations: 130.5 MB / 1.203 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002366/2.74, allocations: 237.6 kB / 1.204 GB, free: 141 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.356/8.097, allocations: 1.75 kB / 1.204 GB, free: 141 MB / 0.5606 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