Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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.SphericalAndUniversal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",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.001303/0.001303, allocations: 113.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.001338/0.001338, allocations: 197.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.4/1.4, allocations: 222.9 MB / 241.9 MB, free: 15.38 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.2089/0.2089, allocations: 44.18 MB / 336.2 MB, free: 2.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001274, allocations: 56.16 kB / 408 MB, free: 27.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1286, allocations: 60.83 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.3277/0.4563, allocations: 62.35 MB / 0.5187 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0384/0.4948, allocations: 12.84 MB / 0.5313 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01412/0.5089, allocations: 277.3 kB / 0.5315 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006424/0.5154, allocations: 3.6 MB / 0.535 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005893/0.5214, allocations: 2.037 MB / 0.537 GB, free: 4.586 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002296/0.5237, allocations: 1.022 MB / 0.538 GB, free: 3.973 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008433/0.5321, allocations: 6.877 MB / 0.5447 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006421/0.5386, allocations: 4.757 MB / 0.5494 GB, free: 14.11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005528/0.5441, allocations: 2.071 MB / 0.5514 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005368/0.5495, allocations: 3.06 MB / 0.5544 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001311/0.5509, allocations: 428 kB / 0.5548 GB, free: 9.062 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00304/0.5539, allocations: 1.473 MB / 0.5562 GB, free: 7.641 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002366/0.5563, allocations: 2.493 MB / 0.5587 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003092/0.5594, allocations: 2.871 MB / 0.5615 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008604/0.568, allocations: 8.771 MB / 0.57 GB, free: 9.711 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.5681, allocations: 0 / 0.57 GB, free: 9.711 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.5681, allocations: 0 / 0.57 GB, free: 9.711 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000213/0.5683, allocations: 0 / 0.57 GB, free: 9.711 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.01444/0.5827, allocations: 6.433 MB / 0.5763 GB, free: 3.312 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.5828, allocations: 12.03 kB / 0.5763 GB, free: 3.301 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001767/0.5846, allocations: 0.9114 MB / 0.5772 GB, free: 2.418 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03709/0.6217, allocations: 6.016 MB / 0.5831 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01135/0.6331, allocations: 4.867 MB / 0.5879 GB, free: 7.543 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002316/0.6333, allocations: 283.5 kB / 0.5881 GB, free: 7.305 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001168/0.6345, allocations: 399.2 kB / 0.5885 GB, free: 6.953 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02125/0.6558, allocations: 11.9 MB / 0.6001 GB, free: 10.38 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001703/0.656, allocations: 55.5 kB / 0.6002 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005908/0.6566, allocations: 182.4 kB / 0.6004 GB, free: 10.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003362/0.66, allocations: 2.154 MB / 0.6025 GB, free: 8.043 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02202/0.682, allocations: 10.16 MB / 0.6124 GB, free: 13.87 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0643/0.7463, allocations: 47.27 MB / 0.6585 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01442/0.7608, allocations: 5.78 MB / 0.6642 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003821/0.7647, allocations: 2.934 MB / 0.6671 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01599/0.7807, allocations: 8.757 MB / 0.6756 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.508e-05/0.7808, allocations: 51.88 kB / 0.6757 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=206): time 5.491e-06/0.7808, allocations: 0 / 0.6757 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of matching and sorting (n=262): time 0.3501/1.131, allocations: 34.71 MB / 0.7096 GB, free: 190.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.075e-05/1.131, allocations: 206 kB / 0.7098 GB, free: 190.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008524/1.14, allocations: 4.794 MB / 0.7144 GB, free: 188.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006895/1.14, allocations: 68.44 kB / 0.7145 GB, free: 188.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00266/1.143, allocations: 3.596 MB / 0.718 GB, free: 186.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001192/1.144, allocations: 0.9668 MB / 0.719 GB, free: 185.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001972/1.146, allocations: 1.349 MB / 0.7203 GB, free: 184.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.44e-05/1.146, allocations: 301.7 kB / 0.7206 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004113/1.15, allocations: 3.032 MB / 0.7235 GB, free: 183.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005239/1.156, allocations: 6.838 MB / 0.7302 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01028/1.166, allocations: 10.67 MB / 0.7406 GB, free: 169 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001206/1.166, allocations: 42.62 kB / 0.7407 GB, free: 169 MB / 0.5294 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02457/1.191, allocations: 13.21 MB / 0.7536 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.333e-05/1.191, allocations: 62.97 kB / 0.7536 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/1.191, allocations: 132 kB / 0.7537 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01099/1.202, allocations: 4.234 MB / 0.7579 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005262/1.207, allocations: 1.411 MB / 0.7593 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03161/1.239, allocations: 28.59 MB / 0.7872 GB, free: 125.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00631/1.245, allocations: 407.2 kB / 0.7876 GB, free: 125.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00119/1.246, allocations: 396 kB / 0.7879 GB, free: 125.1 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.004359/1.251, allocations: 2.462 MB / 0.7903 GB, free: 122.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001255/1.252, allocations: 446.2 kB / 0.7908 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01951/1.271, allocations: 8.238 MB / 0.7988 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.872e-05/1.272, allocations: 28 kB / 0.7988 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.065e-05/1.272, allocations: 12 kB / 0.7989 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.563e-05/1.272, allocations: 15.95 kB / 0.7989 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03921/1.311, allocations: 16.87 MB / 0.8153 GB, free: 96.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.876e-05/1.311, allocations: 8 kB / 0.8154 GB, free: 96.92 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002028/1.313, allocations: 295.6 kB / 0.8156 GB, free: 96.63 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01405/1.327, allocations: 3.82 MB / 0.8194 GB, free: 92.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008193/1.328, allocations: 55.22 kB / 0.8194 GB, free: 92.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04047/1.369, allocations: 27.3 MB / 0.8461 GB, free: 65.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/1.369, allocations: 15.88 kB / 0.8461 GB, free: 65.02 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02015/1.389, allocations: 12.11 MB / 0.8579 GB, free: 52.78 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002235/1.391, allocations: 491.2 kB / 0.8584 GB, free: 52.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001801/1.393, allocations: 47.98 kB / 0.8584 GB, free: 52.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003436/1.396, allocations: 172.5 kB / 0.8586 GB, free: 52.06 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009986/1.397, allocations: 190.1 kB / 0.8588 GB, free: 51.88 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003425/1.398, allocations: 71.98 kB / 0.8588 GB, free: 51.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00587/1.404, allocations: 3.035 MB / 0.8618 GB, free: 48.78 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/1.404, allocations: 4 kB / 0.8618 GB, free: 48.77 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008687/1.412, allocations: 1.423 MB / 0.8632 GB, free: 47.36 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.01961/1.432, allocations: 12.79 MB / 0.8757 GB, free: 34.42 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01517/1.447, allocations: 9.746 MB / 0.8852 GB, free: 24.66 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/1.447, allocations: 0 / 0.8852 GB, free: 24.66 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005312/1.452, allocations: 3.5 MB / 0.8886 GB, free: 21.12 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006156/1.459, allocations: 0.6108 MB / 0.8892 GB, free: 20.52 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3398/1.799, allocations: 75.97 MB / 0.9634 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004303/1.803, allocations: 3.92 MB / 0.9672 GB, free: 130 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004457/1.807, allocations: 2.014 MB / 0.9692 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002652/1.81, allocations: 2.362 MB / 0.9715 GB, free: 125.6 MB / 0.5294 GB Notification: Performance of SimCode: time 9.92e-07/1.81, allocations: 4 kB / 0.9715 GB, free: 125.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2872/2.097, allocations: 116.7 MB / 1.085 GB, free: 9.602 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002238/2.097, allocations: 258.9 kB / 1.086 GB, free: 9.34 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.097/7.195, allocations: 0 / 1.086 GB, free: 9.34 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches