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.001259/0.001259, allocations: 111.1 kB / 17.33 MB, free: 6.02 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.00157/0.00157, allocations: 193.3 kB / 18.25 MB, free: 5.113 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.435/1.435, allocations: 222.9 MB / 241.9 MB, free: 13.71 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.2401/0.2401, allocations: 44.18 MB / 336.3 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 68.98 kB / 408 MB, free: 27.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1206, allocations: 60.83 MB / 468.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.2857/0.4064, allocations: 46.99 MB / 0.5037 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0247/0.4311, allocations: 10.04 MB / 0.5135 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008686/0.4398, allocations: 204.4 kB / 0.5137 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005143/0.445, allocations: 2.625 MB / 0.5163 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005712/0.4508, allocations: 1.884 MB / 0.5181 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002345/0.4531, allocations: 0.8555 MB / 0.519 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01051/0.4636, allocations: 5.963 MB / 0.5248 GB, free: 6.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005644/0.4693, allocations: 3.55 MB / 0.5282 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003514/0.4729, allocations: 1.756 MB / 0.53 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004316/0.4772, allocations: 2.793 MB / 0.5327 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00151/0.4788, allocations: 385 kB / 0.5331 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003068/0.4818, allocations: 1.429 MB / 0.5345 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002362/0.4842, allocations: 2.221 MB / 0.5366 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002824/0.4871, allocations: 2.536 MB / 0.5391 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008156/0.4952, allocations: 7.847 MB / 0.5468 GB, free: 8.328 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.4953, allocations: 0 / 0.5468 GB, free: 8.328 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.4953, allocations: 0 / 0.5468 GB, free: 8.328 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001971/0.4955, allocations: 0 / 0.5468 GB, free: 8.328 MB / 398.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.012/0.5075, allocations: 5.692 MB / 0.5523 GB, free: 2.664 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.5075, allocations: 8.031 kB / 0.5523 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001224/0.5088, allocations: 0.8076 MB / 0.5531 GB, free: 1.875 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03608/0.5449, allocations: 5.953 MB / 0.5589 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009273/0.5542, allocations: 4.01 MB / 0.5628 GB, free: 7.898 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002027/0.5544, allocations: 239.1 kB / 0.5631 GB, free: 7.699 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001002/0.5554, allocations: 342.3 kB / 0.5634 GB, free: 7.402 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0173/0.5727, allocations: 10.78 MB / 0.5739 GB, free: 11.99 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002298/0.573, allocations: 47.58 kB / 0.574 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009781/0.574, allocations: 159.7 kB / 0.5741 GB, free: 11.83 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00355/0.5776, allocations: 1.992 MB / 0.5761 GB, free: 9.844 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0184/0.596, allocations: 9.241 MB / 0.5851 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05517/0.6512, allocations: 41 MB / 0.6251 GB, free: 6.57 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01093/0.6622, allocations: 4.213 MB / 0.6293 GB, free: 2.223 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002762/0.665, allocations: 1.902 MB / 0.6311 GB, free: 320 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01209/0.6771, allocations: 7.505 MB / 0.6384 GB, free: 8.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.045e-05/0.6772, allocations: 55.48 kB / 0.6385 GB, free: 8.414 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 4.739e-06/0.6772, allocations: 0 / 0.6385 GB, free: 8.414 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1608/0.838, allocations: 40.63 MB / 0.6782 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/0.8382, allocations: 201.9 kB / 0.6784 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008926/0.8471, allocations: 4.329 MB / 0.6826 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007237/0.8479, allocations: 61.7 kB / 0.6827 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003131/0.8511, allocations: 3.225 MB / 0.6858 GB, free: 7.879 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001528/0.8526, allocations: 0.8694 MB / 0.6866 GB, free: 7.016 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003629/0.8563, allocations: 1.283 MB / 0.6879 GB, free: 5.723 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.8564, allocations: 305.1 kB / 0.6882 GB, free: 5.422 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0057/0.8621, allocations: 3.499 MB / 0.6916 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008565/0.8707, allocations: 7.102 MB / 0.6985 GB, free: 9.031 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2894/1.16, allocations: 11.37 MB / 0.7096 GB, free: 197 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003187/1.16, allocations: 36 kB / 0.7097 GB, free: 197 MB / 0.545 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.0563/1.217, allocations: 15.7 MB / 0.725 GB, free: 193 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001744/1.217, allocations: 61.47 kB / 0.7251 GB, free: 193 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002565/1.217, allocations: 126.1 kB / 0.7252 GB, free: 193 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02142/1.239, allocations: 6.067 MB / 0.7311 GB, free: 191.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005408/1.244, allocations: 1.428 MB / 0.7325 GB, free: 191.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03155/1.276, allocations: 27.16 MB / 0.759 GB, free: 170.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00701/1.283, allocations: 409.2 kB / 0.7594 GB, free: 170.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001355/1.284, allocations: 368 kB / 0.7598 GB, free: 170.1 MB / 0.545 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.004851/1.289, allocations: 2.218 MB / 0.7619 GB, free: 167.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001262/1.29, allocations: 398.8 kB / 0.7623 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02624/1.317, allocations: 11.05 MB / 0.7731 GB, free: 156.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.775e-05/1.317, allocations: 31.83 kB / 0.7731 GB, free: 156.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.313e-05/1.317, allocations: 8 kB / 0.7732 GB, free: 156.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.106e-05/1.317, allocations: 11.97 kB / 0.7732 GB, free: 156.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03991/1.357, allocations: 20.52 MB / 0.7932 GB, free: 135.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.679e-05/1.357, allocations: 7.422 kB / 0.7932 GB, free: 135.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00224/1.359, allocations: 388 kB / 0.7936 GB, free: 135.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01799/1.377, allocations: 5.152 MB / 0.7986 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005393/1.378, allocations: 39.91 kB / 0.7986 GB, free: 130.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02395/1.402, allocations: 22.24 MB / 0.8204 GB, free: 107.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/1.402, allocations: 4 kB / 0.8204 GB, free: 107.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02797/1.43, allocations: 14.31 MB / 0.8343 GB, free: 93.29 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/1.431, allocations: 447.8 kB / 0.8348 GB, free: 92.82 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001291/1.432, allocations: 43.98 kB / 0.8348 GB, free: 92.78 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002887/1.435, allocations: 179.6 kB / 0.835 GB, free: 92.61 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008018/1.436, allocations: 161 kB / 0.8351 GB, free: 92.45 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000329/1.436, allocations: 60 kB / 0.8352 GB, free: 92.39 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004213/1.44, allocations: 2.734 MB / 0.8379 GB, free: 89.65 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.21e-07/1.44, allocations: 0 / 0.8379 GB, free: 89.65 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005839/1.446, allocations: 1.327 MB / 0.8392 GB, free: 88.33 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 (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.0288/1.475, allocations: 14.95 MB / 0.8538 GB, free: 73.29 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01369/1.489, allocations: 9.492 MB / 0.863 GB, free: 63.84 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/1.489, allocations: 4 kB / 0.863 GB, free: 63.84 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004215/1.493, allocations: 3.173 MB / 0.8661 GB, free: 60.66 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004378/1.498, allocations: 0.5386 MB / 0.8667 GB, free: 60.14 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3916/1.889, allocations: 76.65 MB / 0.9415 GB, free: 179.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003645/1.893, allocations: 3.505 MB / 0.9449 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004894/1.898, allocations: 1.965 MB / 0.9469 GB, free: 178.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002841/1.901, allocations: 2.073 MB / 0.9489 GB, free: 176.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.483e-06/1.901, allocations: 0 / 0.9489 GB, free: 176.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3621/2.263, allocations: 109 MB / 1.055 GB, free: 74.45 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001594/2.263, allocations: 243.4 kB / 1.056 GB, free: 74.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.612/6.875, allocations: 0 / 1.056 GB, free: 74.2 MB / 0.545 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