Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001466/0.001466, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001684/0.001685, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2252/0.2252, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 79.88 kB / 481.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4566/0.4585, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01667/0.4752, allocations: 15.98 MB / 0.5466 GB, free: 1.047 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01211/0.4874, allocations: 5.451 MB / 0.5519 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003449/0.4909, allocations: 107.7 kB / 0.552 GB, free: 12.15 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009385/0.5003, allocations: 5.117 MB / 0.557 GB, free: 7.016 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007881/0.5083, allocations: 2.587 MB / 0.5595 GB, free: 4.418 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003268/0.5115, allocations: 1.388 MB / 0.5609 GB, free: 3.027 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01145/0.523, allocations: 8.244 MB / 0.5689 GB, free: 10.77 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01052/0.5336, allocations: 7.036 MB / 0.5758 GB, free: 3.648 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00533/0.5389, allocations: 2.761 MB / 0.5785 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006462/0.5454, allocations: 3.747 MB / 0.5822 GB, free: 13.12 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002917/0.5484, allocations: 0.6328 MB / 0.5828 GB, free: 12.49 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007306/0.5557, allocations: 1.775 MB / 0.5845 GB, free: 10.71 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005792/0.5616, allocations: 3.305 MB / 0.5877 GB, free: 7.398 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009735/0.5713, allocations: 3.683 MB / 0.5913 GB, free: 3.695 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02341/0.5948, allocations: 11.96 MB / 0.603 GB, free: 7.684 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.081e-05/0.5948, allocations: 8 kB / 0.603 GB, free: 7.676 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5948, allocations: 0 / 0.603 GB, free: 7.676 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005434/0.5954, allocations: 0 / 0.603 GB, free: 7.676 MB / 462.1 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.02651/0.6219, allocations: 8.084 MB / 0.6109 GB, free: 15.5 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/0.622, allocations: 8.031 kB / 0.6109 GB, free: 15.49 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01652/0.6385, allocations: 3.093 MB / 0.6139 GB, free: 12.39 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01523/0.6538, allocations: 5.059 MB / 0.6189 GB, free: 7.25 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006268/0.6545, allocations: 379 kB / 0.6193 GB, free: 6.879 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00348/0.658, allocations: 0.5114 MB / 0.6198 GB, free: 6.367 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03911/0.6971, allocations: 15.52 MB / 0.6349 GB, free: 5.945 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002646/0.6975, allocations: 75.41 kB / 0.635 GB, free: 5.871 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009974/0.6985, allocations: 243.8 kB / 0.6352 GB, free: 5.633 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004249/0.7027, allocations: 2.536 MB / 0.6377 GB, free: 3.09 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03327/0.736, allocations: 13.11 MB / 0.6505 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09063/0.8267, allocations: 57.41 MB / 0.7066 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01802/0.8448, allocations: 6.384 MB / 0.7128 GB, free: 4.43 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004963/0.8498, allocations: 3.447 MB / 0.7162 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3594/1.209, allocations: 11.66 MB / 0.7275 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.338e-05/1.209, allocations: 66.2 kB / 0.7276 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=248): time 5.109e-06/1.209, allocations: 1 kB / 0.7276 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=343): time 0.1234/1.333, allocations: 39.47 MB / 0.7662 GB, free: 129.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.475e-05/1.333, allocations: 243.9 kB / 0.7664 GB, free: 129.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006703/1.34, allocations: 5.711 MB / 0.772 GB, free: 123.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007016/1.34, allocations: 77.7 kB / 0.772 GB, free: 123.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002056/1.342, allocations: 4.504 MB / 0.7764 GB, free: 119.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001244/1.344, allocations: 1.325 MB / 0.7777 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002043/1.346, allocations: 1.758 MB / 0.7794 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.099e-05/1.346, allocations: 309 kB / 0.7797 GB, free: 116.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004979/1.351, allocations: 4.089 MB / 0.7837 GB, free: 112 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007075/1.358, allocations: 8.686 MB / 0.7922 GB, free: 101.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01312/1.371, allocations: 13.57 MB / 0.8055 GB, free: 85.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001355/1.371, allocations: 44 kB / 0.8055 GB, free: 85.26 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.02747/1.399, allocations: 16.42 MB / 0.8215 GB, free: 68.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.293e-05/1.399, allocations: 72 kB / 0.8216 GB, free: 68.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001241/1.399, allocations: 156 kB / 0.8218 GB, free: 68.57 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01195/1.411, allocations: 4.287 MB / 0.8259 GB, free: 64.28 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006398/1.417, allocations: 1.891 MB / 0.8278 GB, free: 62.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02549/1.443, allocations: 21.56 MB / 0.8489 GB, free: 40.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01178/1.455, allocations: 0.5111 MB / 0.8494 GB, free: 40.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002503/1.457, allocations: 480 kB / 0.8498 GB, free: 39.71 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,77,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006462/1.464, allocations: 3.123 MB / 0.8529 GB, free: 36.58 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001531/1.465, allocations: 0.5355 MB / 0.8534 GB, free: 36.04 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0186/1.484, allocations: 10.12 MB / 0.8633 GB, free: 25.86 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.701e-05/1.484, allocations: 36 kB / 0.8633 GB, free: 25.82 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.949e-05/1.484, allocations: 12 kB / 0.8633 GB, free: 25.81 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.883e-05/1.484, allocations: 23.94 kB / 0.8633 GB, free: 25.79 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03585/1.52, allocations: 20.05 MB / 0.8829 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.75e-05/1.52, allocations: 11.98 kB / 0.8829 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002334/1.522, allocations: 0.4914 MB / 0.8834 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0112/1.534, allocations: 3.841 MB / 0.8872 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007375/1.534, allocations: 63.98 kB / 0.8872 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02878/1.563, allocations: 19.1 MB / 0.9059 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.033e-05/1.563, allocations: 11.94 kB / 0.9059 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02976/1.593, allocations: 14.95 MB / 0.9205 GB, free: 14.74 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002344/1.595, allocations: 0.5988 MB / 0.9211 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002455/1.598, allocations: 60 kB / 0.9211 GB, free: 14.06 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004604/1.602, allocations: 235.7 kB / 0.9213 GB, free: 13.83 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001358/1.604, allocations: 226.2 kB / 0.9216 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007495/1.605, allocations: 99.73 kB / 0.9217 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.009252/1.614, allocations: 3.6 MB / 0.9252 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.2e-07/1.614, allocations: 0 / 0.9252 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01274/1.627, allocations: 1.765 MB / 0.9269 GB, free: 8.176 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,64,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001881/1.629, allocations: 253.6 kB / 0.9271 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02032/1.649, allocations: 9.865 MB / 0.9368 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.395e-05/1.649, allocations: 0 / 0.9368 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.007662/1.657, allocations: 3.792 MB / 0.9405 GB, free: 10.26 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008567/1.665, allocations: 0.7314 MB / 0.9412 GB, free: 9.543 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3911/2.056, allocations: 16.09 MB / 0.9569 GB, free: 204.6 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007744/2.064, allocations: 4.827 MB / 0.9616 GB, free: 203.7 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.006002/2.07, allocations: 2.578 MB / 0.9641 GB, free: 203.6 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001382/2.072, allocations: 351.7 kB / 0.9645 GB, free: 203.6 MB / 0.6231 GB Notification: Performance of SimCode: time 1.262e-06/2.072, allocations: 0 / 0.9645 GB, free: 203.6 MB / 0.6231 GB Notification: Performance of Templates: time 0.1141/2.186, allocations: 74.6 MB / 1.037 GB, free: 141.5 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches