Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointSSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointSSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001139/0.001139, allocations: 201.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 226.5 MB / 243.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007979/0.000798, allocations: 95.2 kB / 295.5 MB, free: 6.699 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2918/0.2918, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002883/0.0002883, allocations: 11.94 kB / 465.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3176, allocations: 62.96 MB / 0.5159 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointSSR): time 0.03536/0.353, allocations: 52.74 MB / 0.5674 GB, free: 15.54 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02714/0.3802, allocations: 11.72 MB / 0.5788 GB, free: 7.555 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01089/0.3911, allocations: 249 kB / 0.5791 GB, free: 7.516 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009759/0.4009, allocations: 2.75 MB / 0.5817 GB, free: 5.871 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02314/0.4241, allocations: 8.291 MB / 0.5898 GB, free: 13.55 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004864/0.429, allocations: 1.116 MB / 0.5909 GB, free: 12.43 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.04552/0.4745, allocations: 36.27 MB / 0.6264 GB, free: 8.113 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01208/0.4867, allocations: 7.539 MB / 0.6337 GB, free: 480 kB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004814/0.4915, allocations: 2.148 MB / 0.6358 GB, free: 14.31 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005797/0.4974, allocations: 3.494 MB / 0.6392 GB, free: 10.8 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001853/0.4993, allocations: 260 kB / 0.6395 GB, free: 10.55 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004239/0.5035, allocations: 1.482 MB / 0.6409 GB, free: 9.066 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004046/0.5076, allocations: 2.887 MB / 0.6437 GB, free: 6.172 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005406/0.513, allocations: 3.19 MB / 0.6469 GB, free: 2.957 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0113/0.5244, allocations: 9.535 MB / 0.6562 GB, free: 9.398 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.5244, allocations: 0 / 0.6562 GB, free: 9.398 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.5244, allocations: 0 / 0.6562 GB, free: 9.398 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000448/0.5249, allocations: 0 / 0.6562 GB, free: 9.398 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: 2564 * Number of variables: 2564 Notification: Performance of Generate backend data structure: time 0.01607/0.541, allocations: 6.459 MB / 0.6625 GB, free: 2.855 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.541, allocations: 16.03 kB / 0.6625 GB, free: 2.84 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01552/0.5566, allocations: 4.027 MB / 0.6664 GB, free: 14.8 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009972/0.5666, allocations: 4.178 MB / 0.6705 GB, free: 10.56 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005011/0.5671, allocations: 398 kB / 0.6709 GB, free: 10.17 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002613/0.5697, allocations: 0.5503 MB / 0.6714 GB, free: 9.617 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5016/1.071, allocations: 18.89 MB / 0.6899 GB, free: 124.1 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003002/1.072, allocations: 71.25 kB / 0.6899 GB, free: 124.1 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001529/1.073, allocations: 246.4 kB / 0.6902 GB, free: 124 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00528/1.079, allocations: 3.433 MB / 0.6935 GB, free: 123.4 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0398/1.118, allocations: 16.61 MB / 0.7097 GB, free: 118.4 MB / 490.8 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08316/1.202, allocations: 66.85 MB / 0.775 GB, free: 58.44 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01406/1.216, allocations: 6.266 MB / 0.7811 GB, free: 51.92 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003887/1.22, allocations: 2.816 MB / 0.7839 GB, free: 49.1 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02138/1.241, allocations: 13.83 MB / 0.7974 GB, free: 34.64 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.622e-05/1.241, allocations: 56.56 kB / 0.7975 GB, free: 34.57 MB / 490.8 MB Notification: Performance of pre-optimization done (n=284): time 7.083e-06/1.241, allocations: 7.656 kB / 0.7975 GB, free: 34.57 MB / 490.8 MB Notification: Performance of matching and sorting (n=345): time 0.07679/1.318, allocations: 25.2 MB / 0.8221 GB, free: 9.328 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.309e-05/1.318, allocations: 184.3 kB / 0.8222 GB, free: 9.109 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008792/1.327, allocations: 5.849 MB / 0.828 GB, free: 3.281 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005832/1.328, allocations: 73.7 kB / 0.828 GB, free: 3.203 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003087/1.331, allocations: 4.951 MB / 0.8329 GB, free: 14.18 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001731/1.332, allocations: 1.288 MB / 0.8341 GB, free: 12.88 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009326/1.333, allocations: 192 kB / 0.8343 GB, free: 12.69 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0008643/1.334, allocations: 0.7191 MB / 0.835 GB, free: 11.96 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006301/1.341, allocations: 3.318 MB / 0.8382 GB, free: 8.637 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01129/1.352, allocations: 8.833 MB / 0.8469 GB, free: 13.09 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01664/1.369, allocations: 13.13 MB / 0.8597 GB, free: 13.22 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001996/1.369, allocations: 60 kB / 0.8598 GB, free: 13.16 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.02997/1.399, allocations: 12.92 MB / 0.8724 GB, free: 204 kB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002917/1.399, allocations: 88 kB / 0.8724 GB, free: 116 kB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004046/1.4, allocations: 196.2 kB / 0.8726 GB, free: 15.92 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004555/1.404, allocations: 1.321 MB / 0.8739 GB, free: 14.6 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008932/1.413, allocations: 2.207 MB / 0.8761 GB, free: 12.39 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01302/1.426, allocations: 7.291 MB / 0.8832 GB, free: 4.961 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007758/1.434, allocations: 0.5033 MB / 0.8837 GB, free: 4.457 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002127/1.436, allocations: 0.5585 MB / 0.8842 GB, free: 3.898 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 880 * Number of states: 0 () * Number of discrete variables: 46 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[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],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1179): * Single equations (assignments): 1172 * Array equations: 6 * 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 {(2,100.0%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00885/1.445, allocations: 3.453 MB / 0.8876 GB, free: 440 kB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.316/1.761, allocations: 0.5185 MB / 0.8881 GB, free: 170.3 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01749/1.779, allocations: 5.392 MB / 0.8934 GB, free: 169.4 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.407e-05/1.779, allocations: 37.42 kB / 0.8934 GB, free: 169.4 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.599e-05/1.779, allocations: 6.031 kB / 0.8934 GB, free: 169.4 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.785e-05/1.779, allocations: 17.86 kB / 0.8934 GB, free: 169.4 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02901/1.808, allocations: 13.98 MB / 0.9071 GB, free: 164 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.332e-05/1.808, allocations: 12.91 kB / 0.9071 GB, free: 164 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001936/1.81, allocations: 0.4921 MB / 0.9076 GB, free: 164 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003187/1.813, allocations: 0.8092 MB / 0.9084 GB, free: 163.8 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003206/1.813, allocations: 68.14 kB / 0.9084 GB, free: 163.8 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008423/1.822, allocations: 5.338 MB / 0.9137 GB, free: 160.8 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/1.822, allocations: 19.5 kB / 0.9137 GB, free: 160.8 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01466/1.837, allocations: 8.255 MB / 0.9217 GB, free: 157.3 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001572/1.838, allocations: 0.5727 MB / 0.9223 GB, free: 157.2 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007274/1.839, allocations: 67.91 kB / 0.9224 GB, free: 157.2 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001903/1.841, allocations: 134.9 kB / 0.9225 GB, free: 157.1 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005105/1.841, allocations: 217.5 kB / 0.9227 GB, free: 157.1 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002252/1.842, allocations: 104.2 kB / 0.9228 GB, free: 157.1 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.007084/1.849, allocations: 3.623 MB / 0.9263 GB, free: 155.9 MB / 0.5418 GB Notification: Performance of sort global known variables: time 5.01e-07/1.849, allocations: 0 / 0.9263 GB, free: 155.9 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.009948/1.859, allocations: 1.648 MB / 0.9279 GB, free: 155.7 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 2 (j2.s,j2.v) * 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 (269): * Single equations (assignments): 262 * Array equations: 6 * 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 {(2,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00107/1.86, allocations: 278.8 kB / 0.9282 GB, free: 155.5 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.01563/1.875, allocations: 7.845 MB / 0.9359 GB, free: 152.8 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.49e-05/1.875, allocations: 3.094 kB / 0.9359 GB, free: 152.8 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.004468/1.88, allocations: 2.368 MB / 0.9382 GB, free: 151.8 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.014/1.894, allocations: 0.6795 MB / 0.9388 GB, free: 151.5 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0326/1.927, allocations: 18.88 MB / 0.9573 GB, free: 136.6 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006153/1.933, allocations: 5.154 MB / 0.9623 GB, free: 132.6 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001748/1.935, allocations: 450.2 kB / 0.9627 GB, free: 132.2 MB / 0.5418 GB Notification: Performance of SimCode: time 8.11e-07/1.935, allocations: 0 / 0.9627 GB, free: 132.2 MB / 0.5418 GB Notification: Performance of Templates: time 0.1555/2.09, allocations: 124.9 MB / 1.085 GB, free: 8.145 MB / 0.5418 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointSSR/JointSSR.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches