Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.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.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization") translateModel(ModelicaTest.MultiBody.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001687/0.001688, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001957/0.001957, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.547/1.547, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2965/0.2965, allocations: 46.12 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002349/0.002349, allocations: 77.69 kB / 417.7 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1465, allocations: 62.46 MB / 480.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.01278/0.1594, allocations: 10.21 MB / 490.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00934/0.1688, allocations: 3.806 MB / 494.1 MB, free: 7.152 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00245/0.1713, allocations: 59.81 kB / 494.2 MB, free: 7.094 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004588/0.1759, allocations: 1.942 MB / 496.1 MB, free: 5.145 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005156/0.1811, allocations: 1.63 MB / 497.8 MB, free: 3.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001704/0.1829, allocations: 0.616 MB / 498.4 MB, free: 2.895 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005149/0.188, allocations: 3.35 MB / 0.49 GB, free: 15.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003506/0.1916, allocations: 2.58 MB / 0.4925 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002315/0.1939, allocations: 1.238 MB / 0.4937 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002321/0.1962, allocations: 1.662 MB / 0.4953 GB, free: 9.992 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000464/0.1967, allocations: 252 kB / 0.4956 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002022/0.1987, allocations: 1.022 MB / 0.4966 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001649/0.2004, allocations: 1.539 MB / 0.4981 GB, free: 7.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001788/0.2022, allocations: 1.809 MB / 0.4998 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2106/0.4128, allocations: 5.566 MB / 0.5053 GB, free: 20.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.4128, allocations: 1.719 kB / 0.5053 GB, free: 20.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4128, allocations: 0 / 0.5053 GB, free: 20.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002031/0.4131, allocations: 0 / 0.5053 GB, free: 20.25 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.008876/0.4219, allocations: 3.997 MB / 0.5092 GB, free: 18.65 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.422, allocations: 12.25 kB / 0.5092 GB, free: 18.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006534/0.4285, allocations: 1.772 MB / 0.5109 GB, free: 18.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004266/0.4328, allocations: 1.887 MB / 0.5128 GB, free: 17.9 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.433, allocations: 196.4 kB / 0.513 GB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005769/0.4336, allocations: 247.2 kB / 0.5132 GB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01451/0.4481, allocations: 8.453 MB / 0.5214 GB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001055/0.4482, allocations: 39.94 kB / 0.5215 GB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003438/0.4486, allocations: 123.2 kB / 0.5216 GB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002596/0.4512, allocations: 1.701 MB / 0.5233 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01217/0.4634, allocations: 7.115 MB / 0.5302 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03404/0.4974, allocations: 34.16 MB / 0.5636 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007686/0.5051, allocations: 3.293 MB / 0.5668 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001965/0.5071, allocations: 1.464 MB / 0.5682 GB, free: 9.125 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006763/0.5139, allocations: 4.441 MB / 0.5725 GB, free: 4.484 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/0.514, allocations: 46.77 kB / 0.5726 GB, free: 4.434 MB / 414.1 MB Notification: Performance of pre-optimization done (n=121): time 3.105e-06/0.514, allocations: 4 kB / 0.5726 GB, free: 4.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=129): time 0.0295/0.5435, allocations: 11.55 MB / 0.5839 GB, free: 8.766 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/0.5436, allocations: 174.2 kB / 0.584 GB, free: 8.562 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005023/0.5487, allocations: 3.713 MB / 0.5877 GB, free: 4.859 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002615/0.5489, allocations: 46.97 kB / 0.5877 GB, free: 4.812 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002223/0.5512, allocations: 2.742 MB / 0.5904 GB, free: 2.082 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006688/0.5519, allocations: 0.5304 MB / 0.5909 GB, free: 1.559 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001335/0.5532, allocations: 1.078 MB / 0.592 GB, free: 484 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.5533, allocations: 305.1 kB / 0.5923 GB, free: 176 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002516/0.5559, allocations: 1.709 MB / 0.5939 GB, free: 14.46 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005253/0.5611, allocations: 5.135 MB / 0.5989 GB, free: 7.652 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/0.5716, allocations: 7.431 MB / 0.6062 GB, free: 15.01 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001173/0.5718, allocations: 36 kB / 0.6062 GB, free: 14.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01162/0.5834, allocations: 6.721 MB / 0.6128 GB, free: 8.367 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.56e-05/0.5835, allocations: 56 kB / 0.6128 GB, free: 8.312 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001255/0.5836, allocations: 124 kB / 0.613 GB, free: 8.191 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000627/0.5843, allocations: 329.2 kB / 0.6133 GB, free: 7.867 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003563/0.5878, allocations: 1.249 MB / 0.6145 GB, free: 6.617 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/0.5906, allocations: 2.494 MB / 0.6169 GB, free: 3.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003161/0.5937, allocations: 287.6 kB / 0.6172 GB, free: 3.699 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004307/0.5942, allocations: 335.9 kB / 0.6175 GB, free: 3.375 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (668): * Single equations (assignments): 664 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002477/0.5967, allocations: 1.791 MB / 0.6193 GB, free: 1.57 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005359/0.5972, allocations: 308 kB / 0.6196 GB, free: 1.266 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004844/0.6021, allocations: 2.369 MB / 0.6219 GB, free: 14.89 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.701e-05/0.6021, allocations: 23.55 kB / 0.6219 GB, free: 14.87 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.6021, allocations: 4 kB / 0.6219 GB, free: 14.86 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.6021, allocations: 7.984 kB / 0.6219 GB, free: 14.86 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/0.6138, allocations: 5.927 MB / 0.6277 GB, free: 8.891 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.751e-05/0.6138, allocations: 7.938 kB / 0.6277 GB, free: 8.883 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008315/0.6147, allocations: 171.8 kB / 0.6279 GB, free: 8.715 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002177/0.6169, allocations: 0.7225 MB / 0.6286 GB, free: 7.988 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001174/0.617, allocations: 16 kB / 0.6286 GB, free: 7.973 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006131/0.6231, allocations: 4.834 MB / 0.6333 GB, free: 3.012 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.6232, allocations: 3.938 kB / 0.6333 GB, free: 3.008 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007109/0.6303, allocations: 4.329 MB / 0.6375 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.6314, allocations: 364.9 kB / 0.6379 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007596/0.6321, allocations: 23.98 kB / 0.6379 GB, free: 14.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001513/0.6336, allocations: 71.97 kB / 0.638 GB, free: 14.17 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.6339, allocations: 76.44 kB / 0.6381 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.634, allocations: 34.27 kB / 0.6381 GB, free: 14.07 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003765/0.6378, allocations: 2.319 MB / 0.6404 GB, free: 11.76 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6378, allocations: 0 / 0.6404 GB, free: 11.76 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004183/0.642, allocations: 0.8008 MB / 0.6411 GB, free: 10.96 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (96): * Single equations (assignments): 92 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004253/0.6424, allocations: 146.1 kB / 0.6413 GB, free: 10.81 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007853/0.6503, allocations: 4.425 MB / 0.6456 GB, free: 6.398 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/0.6503, allocations: 0 / 0.6456 GB, free: 6.398 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.652, allocations: 1.127 MB / 0.6467 GB, free: 5.266 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002395/0.6544, allocations: 400 kB / 0.6471 GB, free: 4.883 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/0.6666, allocations: 7.341 MB / 0.6543 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003069/0.6697, allocations: 2.785 MB / 0.657 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003954/0.6736, allocations: 1.656 MB / 0.6586 GB, free: 9.043 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006247/0.6743, allocations: 207.4 kB / 0.6588 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of SimCode: time 2.785e-06/0.6743, allocations: 0 / 0.6588 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of Templates: time 0.06435/0.7386, allocations: 30.91 MB / 0.689 GB, free: 10.11 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches