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.001121/0.001128, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2224/0.2224, allocations: 46.1 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001533, allocations: 76.52 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1095, allocations: 62.45 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01617/0.1257, allocations: 13.37 MB / 493.5 MB, free: 7.746 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009408/0.1351, allocations: 4.805 MB / 498.3 MB, free: 2.926 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002182/0.1374, allocations: 95.69 kB / 498.4 MB, free: 2.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007048/0.1444, allocations: 3.726 MB / 0.4904 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005697/0.1502, allocations: 2.151 MB / 0.4925 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002583/0.1528, allocations: 1.084 MB / 0.4935 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008889/0.1617, allocations: 6.651 MB / 0.5 GB, free: 5.184 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005831/0.1675, allocations: 4.506 MB / 0.5044 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2342/0.4017, allocations: 2.013 MB / 0.5064 GB, free: 16.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004647/0.4064, allocations: 2.738 MB / 0.5091 GB, free: 16.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001622/0.4081, allocations: 427.9 kB / 0.5095 GB, free: 16.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003452/0.4116, allocations: 1.436 MB / 0.5109 GB, free: 16.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002905/0.4145, allocations: 2.433 MB / 0.5132 GB, free: 16.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006394/0.4209, allocations: 2.837 MB / 0.516 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01395/0.4349, allocations: 8.658 MB / 0.5245 GB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.4349, allocations: 0 / 0.5245 GB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.005e-06/0.4349, allocations: 1.812 kB / 0.5245 GB, free: 13.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002847/0.4352, allocations: 0 / 0.5245 GB, free: 13.5 MB / 382.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.01718/0.4524, allocations: 6.429 MB / 0.5307 GB, free: 9.867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/0.4525, allocations: 9.625 kB / 0.5308 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00223/0.4547, allocations: 0.9104 MB / 0.5316 GB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03703/0.4918, allocations: 6.019 MB / 0.5375 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009579/0.5014, allocations: 4.56 MB / 0.542 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/0.5016, allocations: 282.4 kB / 0.5422 GB, free: 3.742 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001311/0.5029, allocations: 388.5 kB / 0.5426 GB, free: 3.637 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02277/0.5257, allocations: 11.91 MB / 0.5542 GB, free: 7.891 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001594/0.5259, allocations: 62.95 kB / 0.5543 GB, free: 7.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005105/0.5264, allocations: 179.8 kB / 0.5545 GB, free: 7.715 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003298/0.5297, allocations: 2.142 MB / 0.5566 GB, free: 5.605 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02172/0.5515, allocations: 10.17 MB / 0.5665 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06032/0.6118, allocations: 47.26 MB / 0.6126 GB, free: 11.67 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01512/0.627, allocations: 5.784 MB / 0.6183 GB, free: 5.75 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004114/0.6311, allocations: 2.939 MB / 0.6212 GB, free: 2.809 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0159/0.6471, allocations: 8.754 MB / 0.6297 GB, free: 9.957 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.744e-05/0.6471, allocations: 51.88 kB / 0.6298 GB, free: 9.898 MB / 478.1 MB Notification: Performance of pre-optimization done (n=206): time 4.639e-06/0.6472, allocations: 0 / 0.6298 GB, free: 9.898 MB / 478.1 MB Notification: Performance of matching and sorting (n=262): time 0.133/0.7801, allocations: 34.7 MB / 0.6637 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.7803, allocations: 209.3 kB / 0.6639 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009228/0.7895, allocations: 4.8 MB / 0.6685 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0006284/0.7902, allocations: 65.7 kB / 0.6686 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003275/0.7935, allocations: 3.583 MB / 0.6721 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001784/0.7953, allocations: 0.9721 MB / 0.673 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004117/0.7994, allocations: 1.349 MB / 0.6744 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.7995, allocations: 305.1 kB / 0.6747 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005184/0.8047, allocations: 3.023 MB / 0.6776 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007681/0.8124, allocations: 6.837 MB / 0.6843 GB, free: 284 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01344/0.8259, allocations: 10.67 MB / 0.6947 GB, free: 4.289 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001135/0.8261, allocations: 42.25 kB / 0.6948 GB, free: 4.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02838/0.8545, allocations: 13.21 MB / 0.7077 GB, free: 7.113 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002183/0.8547, allocations: 64 kB / 0.7077 GB, free: 7.051 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002402/0.855, allocations: 135.6 kB / 0.7078 GB, free: 6.922 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01254/0.8675, allocations: 4.237 MB / 0.712 GB, free: 2.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004655/0.8722, allocations: 1.411 MB / 0.7134 GB, free: 1.266 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2586/1.131, allocations: 28.58 MB / 0.7413 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005455/1.136, allocations: 402.9 kB / 0.7417 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001113/1.137, allocations: 400.1 kB / 0.742 GB, free: 176.1 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.004929/1.142, allocations: 2.459 MB / 0.7444 GB, free: 175.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001076/1.143, allocations: 442.1 kB / 0.7449 GB, free: 175.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01526/1.159, allocations: 8.229 MB / 0.7529 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.323e-05/1.159, allocations: 31.39 kB / 0.7529 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.176e-05/1.159, allocations: 15.14 kB / 0.7529 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.889e-05/1.159, allocations: 11.11 kB / 0.753 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03201/1.191, allocations: 16.89 MB / 0.7694 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-05/1.191, allocations: 4 kB / 0.7695 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/1.192, allocations: 307.5 kB / 0.7697 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009304/1.202, allocations: 3.807 MB / 0.7735 GB, free: 156.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004828/1.202, allocations: 44 kB / 0.7735 GB, free: 156.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03019/1.232, allocations: 27.3 MB / 0.8002 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/1.232, allocations: 11.22 kB / 0.8002 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01803/1.25, allocations: 12.11 MB / 0.812 GB, free: 116.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/1.252, allocations: 499.1 kB / 0.8125 GB, free: 116.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00119/1.253, allocations: 44 kB / 0.8125 GB, free: 116 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002847/1.256, allocations: 167.8 kB / 0.8127 GB, free: 115.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008039/1.257, allocations: 201.2 kB / 0.8129 GB, free: 115.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00027/1.257, allocations: 71.91 kB / 0.8129 GB, free: 115.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005431/1.262, allocations: 3.031 MB / 0.8159 GB, free: 112.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.3e-07/1.262, allocations: 3.469 kB / 0.8159 GB, free: 112.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007087/1.269, allocations: 1.411 MB / 0.8173 GB, free: 111.2 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.01953/1.289, allocations: 12.79 MB / 0.8298 GB, free: 98.26 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01459/1.304, allocations: 9.75 MB / 0.8393 GB, free: 88.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/1.304, allocations: 0 / 0.8393 GB, free: 88.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005115/1.309, allocations: 3.494 MB / 0.8427 GB, free: 84.98 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005003/1.314, allocations: 0.6073 MB / 0.8433 GB, free: 84.38 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1077/1.422, allocations: 73.67 MB / 0.9152 GB, free: 2.07 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2041/1.626, allocations: 3.914 MB / 0.9191 GB, free: 187.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005446/1.631, allocations: 2.007 MB / 0.921 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004057/1.635, allocations: 2.362 MB / 0.9233 GB, free: 187.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.663e-06/1.635, allocations: 0 / 0.9233 GB, free: 187.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1553/1.79, allocations: 116.6 MB / 1.037 GB, free: 92.42 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/15.2, allocations: 11.86 kB / 1.037 GB, free: 92.41 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