Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009264/0.0009265, allocations: 175.5 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008497/0.0008497, allocations: 89.42 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3419/0.3419, allocations: 43.56 MB / 363.1 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003953/0.0003954, allocations: 16 kB / 432.1 MB, free: 5.723 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1071, allocations: 58.84 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.2228/0.3299, allocations: 48.47 MB / 0.5267 GB, free: 15.91 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02398/0.354, allocations: 10.64 MB / 0.5371 GB, free: 8.68 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01072/0.3647, allocations: 227.3 kB / 0.5373 GB, free: 8.645 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009121/0.3739, allocations: 2.522 MB / 0.5398 GB, free: 7.75 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02052/0.3945, allocations: 7.621 MB / 0.5473 GB, free: 4.582 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004391/0.3989, allocations: 0.9083 MB / 0.5481 GB, free: 4.254 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.04979/0.4487, allocations: 36.7 MB / 0.584 GB, free: 10.98 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009233/0.458, allocations: 5.63 MB / 0.5895 GB, free: 5.293 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004357/0.4624, allocations: 1.888 MB / 0.5913 GB, free: 3.398 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005526/0.468, allocations: 3.143 MB / 0.5944 GB, free: 252 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001298/0.4693, allocations: 236 kB / 0.5946 GB, free: 16 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003515/0.4728, allocations: 1.318 MB / 0.5959 GB, free: 14.7 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003241/0.4761, allocations: 2.587 MB / 0.5984 GB, free: 12.1 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004393/0.4805, allocations: 2.864 MB / 0.6012 GB, free: 9.215 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01104/0.4916, allocations: 8.125 MB / 0.6092 GB, free: 1.07 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.4916, allocations: 0 / 0.6092 GB, free: 1.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4916, allocations: 0 / 0.6092 GB, free: 1.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004098/0.492, allocations: 0 / 0.6092 GB, free: 1.07 MB / 426.7 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.01683/0.5089, allocations: 6.276 MB / 0.6153 GB, free: 10.71 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.5089, allocations: 8.031 kB / 0.6153 GB, free: 10.71 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003148/0.5121, allocations: 1.141 MB / 0.6164 GB, free: 9.551 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04398/0.5561, allocations: 7.601 MB / 0.6238 GB, free: 1.93 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01213/0.5683, allocations: 5.154 MB / 0.6289 GB, free: 12.71 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003329/0.5686, allocations: 316.4 kB / 0.6292 GB, free: 12.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001965/0.5706, allocations: 443.5 kB / 0.6296 GB, free: 11.97 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02978/0.6004, allocations: 15.61 MB / 0.6448 GB, free: 11.43 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001794/0.6006, allocations: 59.38 kB / 0.6449 GB, free: 11.37 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007855/0.6014, allocations: 211.8 kB / 0.6451 GB, free: 11.16 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005201/0.6067, allocations: 3.216 MB / 0.6482 GB, free: 7.941 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02925/0.6359, allocations: 13.9 MB / 0.6618 GB, free: 10.02 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3339/0.9698, allocations: 57.42 MB / 0.7179 GB, free: 97.01 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.012/0.9819, allocations: 6.516 MB / 0.7243 GB, free: 94.14 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00441/0.9864, allocations: 3.622 MB / 0.7278 GB, free: 92.68 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02536/1.012, allocations: 14.44 MB / 0.7419 GB, free: 85.24 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/1.012, allocations: 61.95 kB / 0.742 GB, free: 85.18 MB / 490.7 MB Notification: Performance of pre-optimization done (n=289): time 6.252e-06/1.012, allocations: 0 / 0.742 GB, free: 85.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=339): time 0.1368/1.149, allocations: 42.12 MB / 0.7831 GB, free: 57.93 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.145e-05/1.149, allocations: 221.9 kB / 0.7833 GB, free: 57.67 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00656/1.155, allocations: 5.492 MB / 0.7887 GB, free: 52.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008717/1.156, allocations: 73.7 kB / 0.7887 GB, free: 52.12 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002165/1.158, allocations: 4.411 MB / 0.793 GB, free: 47.71 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001354/1.16, allocations: 1.259 MB / 0.7943 GB, free: 46.46 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004419/1.16, allocations: 169.7 kB / 0.7944 GB, free: 46.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003199/1.161, allocations: 0.678 MB / 0.7951 GB, free: 45.61 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005314/1.166, allocations: 4.612 MB / 0.7996 GB, free: 40.99 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007083/1.173, allocations: 9.582 MB / 0.809 GB, free: 28.96 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01459/1.188, allocations: 15.25 MB / 0.8239 GB, free: 11.25 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001353/1.188, allocations: 48 kB / 0.8239 GB, free: 11.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04457/1.232, allocations: 18.97 MB / 0.8424 GB, free: 8.18 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002469/1.233, allocations: 79.98 kB / 0.8425 GB, free: 8.102 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003747/1.233, allocations: 176 kB / 0.8427 GB, free: 7.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02332/1.256, allocations: 5.803 MB / 0.8483 GB, free: 2.117 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008039/1.264, allocations: 2.063 MB / 0.8503 GB, free: 52 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3088/1.573, allocations: 24.28 MB / 0.8741 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008034/1.581, allocations: 0.5548 MB / 0.8746 GB, free: 149.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001823/1.583, allocations: 0.4986 MB / 0.8751 GB, free: 149.1 MB / 0.5105 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006765/1.59, allocations: 3.094 MB / 0.8781 GB, free: 148 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001254/1.591, allocations: 0.4993 MB / 0.8786 GB, free: 148 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02931/1.621, allocations: 12.68 MB / 0.891 GB, free: 144 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.439e-05/1.621, allocations: 57.78 kB / 0.891 GB, free: 144 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.055e-05/1.621, allocations: 9.094 kB / 0.891 GB, free: 144 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.467e-05/1.621, allocations: 19.36 kB / 0.8911 GB, free: 144 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05195/1.673, allocations: 24.43 MB / 0.9149 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-05/1.673, allocations: 5.5 kB / 0.9149 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003265/1.676, allocations: 0.5799 MB / 0.9155 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01918/1.695, allocations: 4.84 MB / 0.9202 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007965/1.696, allocations: 55.3 kB / 0.9203 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02273/1.719, allocations: 19.56 MB / 0.9394 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/1.719, allocations: 14.52 kB / 0.9394 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03467/1.754, allocations: 17.1 MB / 0.9561 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003546/1.757, allocations: 1.239 MB / 0.9573 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001852/1.759, allocations: 64.42 kB / 0.9574 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003992/1.763, allocations: 269.8 kB / 0.9576 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001166/1.764, allocations: 185.6 kB / 0.9578 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005689/1.765, allocations: 84 kB / 0.9579 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006293/1.771, allocations: 3.421 MB / 0.9612 GB, free: 99.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.31e-07/1.771, allocations: 0 / 0.9612 GB, free: 99.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008582/1.78, allocations: 1.712 MB / 0.9629 GB, free: 97.98 MB / 0.5105 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03515/1.815, allocations: 17.77 MB / 0.9802 GB, free: 80.06 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01633/1.831, allocations: 10.61 MB / 0.9906 GB, free: 69.51 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.604e-05/1.831, allocations: 3.906 kB / 0.9906 GB, free: 69.51 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006177/1.838, allocations: 4.038 MB / 0.9946 GB, free: 65.45 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009345/1.847, allocations: 0.6222 MB / 0.9952 GB, free: 64.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1195/1.967, allocations: 65.6 MB / 1.059 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2401/2.207, allocations: 4.636 MB / 1.064 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005057/2.212, allocations: 2.966 MB / 1.067 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of SimCode: time 7.31e-07/2.212, allocations: 0 / 1.067 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.429/11.64, allocations: 170.3 MB / 1.233 GB, free: 35.57 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches