Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001218/0.001218, allocations: 179.5 kB / 16.41 MB, free: 5.703 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.671/1.671, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0008876/0.0008872, allocations: 86.36 kB / 270.9 MB, free: 8.355 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.4254/0.4254, allocations: 43.55 MB / 362.7 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004379/0.0004379, allocations: 12 kB / 431.4 MB, free: 5.922 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1567, allocations: 58.85 MB / 490.2 MB, free: 10.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3495/0.5063, allocations: 62.11 MB / 0.5394 GB, free: 6.254 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03673/0.5431, allocations: 13.56 MB / 0.5526 GB, free: 12.98 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01805/0.5612, allocations: 304.6 kB / 0.5529 GB, free: 12.93 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01237/0.5736, allocations: 3.198 MB / 0.5561 GB, free: 11.79 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03501/0.6086, allocations: 9.584 MB / 0.5654 GB, free: 7.766 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006683/0.6153, allocations: 1.174 MB / 0.5666 GB, free: 7.32 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.06859/0.6839, allocations: 51.98 MB / 0.6173 GB, free: 8.344 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01561/0.6996, allocations: 8.155 MB / 0.6253 GB, free: 144 kB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005815/0.7055, allocations: 2.152 MB / 0.6274 GB, free: 13.98 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006581/0.7121, allocations: 3.377 MB / 0.6307 GB, free: 10.59 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001938/0.714, allocations: 243.9 kB / 0.6309 GB, free: 10.36 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004592/0.7187, allocations: 1.233 MB / 0.6321 GB, free: 9.121 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004888/0.7236, allocations: 2.848 MB / 0.6349 GB, free: 6.266 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003342/0.7269, allocations: 1.306 MB / 0.6362 GB, free: 4.949 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01402/0.741, allocations: 9.36 MB / 0.6453 GB, free: 11.57 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.741, allocations: 0 / 0.6453 GB, free: 11.57 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.741, allocations: 0 / 0.6453 GB, free: 11.57 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005459/0.7416, allocations: 4 kB / 0.6453 GB, free: 11.56 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.01963/0.7612, allocations: 6.61 MB / 0.6518 GB, free: 4.871 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.7613, allocations: 12.03 kB / 0.6518 GB, free: 4.859 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01674/0.7781, allocations: 3.116 MB / 0.6548 GB, free: 1.73 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01354/0.7916, allocations: 5.077 MB / 0.6598 GB, free: 12.57 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004816/0.7922, allocations: 381.8 kB / 0.6602 GB, free: 12.2 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00232/0.7945, allocations: 0.5114 MB / 0.6607 GB, free: 11.68 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3175/1.112, allocations: 15.52 MB / 0.6758 GB, free: 134.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002943/1.112, allocations: 66.31 kB / 0.6759 GB, free: 134.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000845/1.113, allocations: 236.2 kB / 0.6761 GB, free: 134.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004952/1.118, allocations: 2.543 MB / 0.6786 GB, free: 134.6 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03097/1.149, allocations: 13.08 MB / 0.6914 GB, free: 131.2 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08838/1.238, allocations: 57.55 MB / 0.7476 GB, free: 92.51 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01619/1.254, allocations: 6.42 MB / 0.7538 GB, free: 89.13 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00412/1.258, allocations: 3.431 MB / 0.7572 GB, free: 87.31 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01639/1.275, allocations: 11.57 MB / 0.7685 GB, free: 75.54 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/1.275, allocations: 64.5 kB / 0.7685 GB, free: 75.46 MB / 490.7 MB Notification: Performance of pre-optimization done (n=248): time 6.502e-06/1.275, allocations: 0 / 0.7685 GB, free: 75.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=343): time 0.1761/1.451, allocations: 39.63 MB / 0.8072 GB, free: 35.76 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.003e-05/1.451, allocations: 243.9 kB / 0.8075 GB, free: 35.47 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007937/1.459, allocations: 5.703 MB / 0.813 GB, free: 29.79 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001116/1.46, allocations: 77.7 kB / 0.8131 GB, free: 29.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002775/1.463, allocations: 4.362 MB / 0.8174 GB, free: 25.35 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001813/1.465, allocations: 1.258 MB / 0.8186 GB, free: 24.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004643/1.465, allocations: 180 kB / 0.8188 GB, free: 23.93 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003569/1.465, allocations: 0.6737 MB / 0.8194 GB, free: 23.24 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005247/1.471, allocations: 4.046 MB / 0.8234 GB, free: 19.19 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00716/1.478, allocations: 8.637 MB / 0.8318 GB, free: 8.312 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007988/1.486, allocations: 5.777 MB / 0.8375 GB, free: 2.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001117/1.486, allocations: 44 kB / 0.8375 GB, free: 2.477 MB / 490.7 MB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.03771/1.524, allocations: 16.31 MB / 0.8534 GB, free: 2.121 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002248/1.524, allocations: 72 kB / 0.8535 GB, free: 2.051 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003112/1.524, allocations: 156 kB / 0.8537 GB, free: 1.898 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01529/1.54, allocations: 4.319 MB / 0.8579 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007878/1.548, allocations: 1.895 MB / 0.8597 GB, free: 11.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3724/1.92, allocations: 20.16 MB / 0.8794 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008935/1.929, allocations: 0.5077 MB / 0.8799 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002051/1.931, allocations: 481.9 kB / 0.8804 GB, free: 147.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 720 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (1031): * Single equations (assignments): 1027 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007685/1.939, allocations: 3.131 MB / 0.8834 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001712/1.94, allocations: 0.5144 MB / 0.8839 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02106/1.962, allocations: 10.09 MB / 0.8938 GB, free: 143.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.288e-05/1.962, allocations: 37.08 kB / 0.8938 GB, free: 143.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.94e-05/1.962, allocations: 15.22 kB / 0.8938 GB, free: 143.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.365e-05/1.962, allocations: 13.83 kB / 0.8938 GB, free: 143.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04384/2.006, allocations: 20.14 MB / 0.9135 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.238e-05/2.006, allocations: 8.438 kB / 0.9135 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002766/2.009, allocations: 0.4932 MB / 0.914 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01387/2.022, allocations: 3.847 MB / 0.9178 GB, free: 135.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000893/2.023, allocations: 61.62 kB / 0.9178 GB, free: 135.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02613/2.05, allocations: 17.8 MB / 0.9352 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-05/2.05, allocations: 11.81 kB / 0.9352 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02654/2.076, allocations: 14.87 MB / 0.9497 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003977/2.08, allocations: 1.179 MB / 0.9509 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00135/2.082, allocations: 69.17 kB / 0.9509 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003204/2.085, allocations: 227.7 kB / 0.9512 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006621/2.085, allocations: 225.1 kB / 0.9514 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002504/2.086, allocations: 99.72 kB / 0.9515 GB, free: 115 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005723/2.091, allocations: 3.593 MB / 0.955 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.71e-07/2.091, allocations: 0 / 0.955 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009316/2.101, allocations: 1.799 MB / 0.9567 GB, free: 109.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 2 (revolute.phi,revolute.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 (261): * Single equations (assignments): 257 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007841/2.102, allocations: 233.2 kB / 0.957 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01591/2.117, allocations: 9.753 MB / 0.9665 GB, free: 99.71 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.048e-05/2.118, allocations: 7.609 kB / 0.9665 GB, free: 99.71 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005596/2.123, allocations: 3.777 MB / 0.9702 GB, free: 95.91 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005309/2.129, allocations: 0.7022 MB / 0.9709 GB, free: 95.24 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02778/2.156, allocations: 19.09 MB / 0.9895 GB, free: 76.18 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005215/2.162, allocations: 4.795 MB / 0.9942 GB, free: 71.35 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002048/2.164, allocations: 407.4 kB / 0.9946 GB, free: 70.95 MB / 0.5105 GB Notification: Performance of SimCode: time 1.172e-06/2.164, allocations: 0 / 0.9946 GB, free: 70.95 MB / 0.5105 GB Notification: Performance of Templates: time 0.4164/2.58, allocations: 122.1 MB / 1.114 GB, free: 128 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches