Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 104.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 242.2 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2141/0.2141, allocations: 44.18 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 57.34 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08754/0.08871, allocations: 60.82 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01067/0.0994, allocations: 12.05 MB / 481.4 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006763/0.1062, allocations: 4.299 MB / 485.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.1074, allocations: 71.81 kB / 485.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004052/0.1115, allocations: 2.745 MB / 488.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003694/0.1152, allocations: 2.011 MB / 490.5 MB, free: 8.992 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001532/0.1167, allocations: 0.9086 MB / 491.4 MB, free: 8.082 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005582/0.1223, allocations: 5.58 MB / 497 MB, free: 2.492 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003053/0.1254, allocations: 3.366 MB / 0.4887 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001882/0.1273, allocations: 1.713 MB / 0.4903 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002356/0.1297, allocations: 2.512 MB / 0.4928 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005357/0.1302, allocations: 384 kB / 0.4931 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001909/0.1321, allocations: 1.412 MB / 0.4945 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001514/0.1337, allocations: 2.182 MB / 0.4967 GB, free: 6.867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001885/0.1355, allocations: 2.517 MB / 0.4991 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1677/0.3033, allocations: 7.785 MB / 0.5067 GB, free: 23.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3033, allocations: 4.453 kB / 0.5067 GB, free: 23.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3033, allocations: 0 / 0.5067 GB, free: 23.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002079/0.3035, allocations: 4.391 kB / 0.5067 GB, free: 23.61 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01195/0.3155, allocations: 5.688 MB / 0.5123 GB, free: 21.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.3155, allocations: 9.188 kB / 0.5123 GB, free: 21.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008623/0.3164, allocations: 0.8053 MB / 0.5131 GB, free: 21.42 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03759/0.354, allocations: 5.961 MB / 0.5189 GB, free: 21.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008677/0.3627, allocations: 4.001 MB / 0.5228 GB, free: 20.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002605/0.363, allocations: 237.2 kB / 0.523 GB, free: 20.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001212/0.3642, allocations: 338.4 kB / 0.5234 GB, free: 20.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0228/0.3871, allocations: 10.78 MB / 0.5339 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002268/0.3873, allocations: 54.06 kB / 0.5339 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008381/0.3882, allocations: 154.6 kB / 0.5341 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003144/0.3913, allocations: 1.999 MB / 0.536 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01931/0.4107, allocations: 9.238 MB / 0.5451 GB, free: 5.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05332/0.464, allocations: 40.99 MB / 0.5851 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0106/0.4747, allocations: 4.234 MB / 0.5892 GB, free: 7.352 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002785/0.4775, allocations: 1.883 MB / 0.5911 GB, free: 5.461 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01144/0.4889, allocations: 7.512 MB / 0.5984 GB, free: 13.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/0.489, allocations: 51.02 kB / 0.5984 GB, free: 13.58 MB / 446.1 MB Notification: Performance of pre-optimization done (n=180): time 4.729e-06/0.489, allocations: 0 / 0.5984 GB, free: 13.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=236): time 0.1666/0.6557, allocations: 40.64 MB / 0.6381 GB, free: 5.035 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.6558, allocations: 209.9 kB / 0.6383 GB, free: 4.789 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009052/0.6649, allocations: 4.329 MB / 0.6426 GB, free: 452 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007192/0.6656, allocations: 63.12 kB / 0.6426 GB, free: 384 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002921/0.6686, allocations: 3.222 MB / 0.6458 GB, free: 13.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001826/0.6704, allocations: 0.8749 MB / 0.6466 GB, free: 12.33 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003746/0.6742, allocations: 1.281 MB / 0.6479 GB, free: 11.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.6743, allocations: 305.1 kB / 0.6482 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005336/0.6797, allocations: 3.491 MB / 0.6516 GB, free: 7.238 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007514/0.6872, allocations: 7.108 MB / 0.6585 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0138/0.7011, allocations: 11.38 MB / 0.6696 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000123/0.7012, allocations: 40 kB / 0.6697 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03864/0.7399, allocations: 15.68 MB / 0.685 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.74, allocations: 67.88 kB / 0.685 GB, free: 2.277 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001547/0.7402, allocations: 128 kB / 0.6852 GB, free: 2.152 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0226/0.7628, allocations: 6.061 MB / 0.6911 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004533/0.7673, allocations: 1.431 MB / 0.6925 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1966/0.964, allocations: 27.15 MB / 0.719 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005977/0.97, allocations: 391.8 kB / 0.7194 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008845/0.9709, allocations: 373.7 kB / 0.7197 GB, free: 179.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (741): * Single equations (assignments): 736 * Array equations: 3 * 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 {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00358/0.9745, allocations: 2.22 MB / 0.7219 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008009/0.9753, allocations: 398.3 kB / 0.7223 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02681/1.002, allocations: 11.07 MB / 0.7331 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-05/1.002, allocations: 22.94 kB / 0.7331 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.772e-05/1.002, allocations: 15.38 kB / 0.7331 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-05/1.002, allocations: 7.969 kB / 0.7331 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03916/1.041, allocations: 20.53 MB / 0.7532 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.305e-05/1.041, allocations: 8 kB / 0.7532 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002295/1.044, allocations: 387 kB / 0.7536 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01902/1.063, allocations: 5.146 MB / 0.7586 GB, free: 152 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005158/1.063, allocations: 40 kB / 0.7586 GB, free: 152 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02154/1.085, allocations: 22.23 MB / 0.7803 GB, free: 129.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/1.085, allocations: 7.938 kB / 0.7803 GB, free: 129.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02798/1.113, allocations: 14.32 MB / 0.7943 GB, free: 115.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00135/1.114, allocations: 446.2 kB / 0.7947 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008504/1.115, allocations: 42.5 kB / 0.7948 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002311/1.118, allocations: 172.5 kB / 0.7949 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007703/1.118, allocations: 160.9 kB / 0.7951 GB, free: 114.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002174/1.119, allocations: 64 kB / 0.7952 GB, free: 114.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005062/1.124, allocations: 2.731 MB / 0.7978 GB, free: 111.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.61e-07/1.124, allocations: 4 kB / 0.7978 GB, free: 111.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007382/1.131, allocations: 1.327 MB / 0.7991 GB, free: 110.5 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02873/1.16, allocations: 14.94 MB / 0.8137 GB, free: 95.49 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01221/1.172, allocations: 9.49 MB / 0.823 GB, free: 86.04 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/1.172, allocations: 0 / 0.823 GB, free: 86.04 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003443/1.176, allocations: 3.166 MB / 0.8261 GB, free: 82.87 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002891/1.178, allocations: 0.5463 MB / 0.8266 GB, free: 82.34 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3059/1.484, allocations: 74.69 MB / 0.8996 GB, free: 180.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003387/1.488, allocations: 3.514 MB / 0.903 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004788/1.493, allocations: 1.965 MB / 0.9049 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002063/1.495, allocations: 2.074 MB / 0.9069 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of SimCode: time 7.11e-07/1.495, allocations: 0 / 0.9069 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8586/2.353, allocations: 109.2 MB / 1.014 GB, free: 89.21 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.53/15.88, allocations: 0 / 1.014 GB, free: 89.21 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches