Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.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.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001003, allocations: 202.1 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007335/0.0007335, allocations: 98.12 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1801/0.1801, allocations: 44.84 MB / 392 MB, free: 9.336 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002353/0.0002353, allocations: 8 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09486/0.09511, allocations: 62.95 MB / 0.5153 GB, free: 2.781 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.194/0.2891, allocations: 31.43 MB / 0.546 GB, free: 7.57 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01802/0.3072, allocations: 7.456 MB / 0.5533 GB, free: 2.508 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005808/0.3131, allocations: 147 kB / 0.5534 GB, free: 2.484 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004775/0.3179, allocations: 1.57 MB / 0.555 GB, free: 1.926 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01386/0.3318, allocations: 4.84 MB / 0.5597 GB, free: 14.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00242/0.3342, allocations: 0.5093 MB / 0.5602 GB, free: 14.45 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005536/0.3397, allocations: 3.831 MB / 0.5639 GB, free: 11.78 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004136/0.3439, allocations: 2.952 MB / 0.5668 GB, free: 8.793 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001652/0.3456, allocations: 1.043 MB / 0.5678 GB, free: 7.746 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001757/0.3473, allocations: 1.593 MB / 0.5694 GB, free: 6.148 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002935/0.3476, allocations: 120 kB / 0.5695 GB, free: 6.031 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001597/0.3493, allocations: 0.7918 MB / 0.5703 GB, free: 5.238 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001287/0.3506, allocations: 1.387 MB / 0.5716 GB, free: 3.848 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006735/0.3512, allocations: 0.7025 MB / 0.5723 GB, free: 3.137 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004599/0.3558, allocations: 4.425 MB / 0.5766 GB, free: 14.7 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3559, allocations: 0 / 0.5766 GB, free: 14.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3559, allocations: 0 / 0.5766 GB, free: 14.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001271/0.356, allocations: 0 / 0.5766 GB, free: 14.7 MB / 394.7 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.005487/0.3615, allocations: 3.363 MB / 0.5799 GB, free: 11.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.3616, allocations: 11.97 kB / 0.5799 GB, free: 11.26 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005509/0.3671, allocations: 1.832 MB / 0.5817 GB, free: 9.422 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003107/0.3702, allocations: 1.845 MB / 0.5835 GB, free: 7.516 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.3703, allocations: 188.8 kB / 0.5837 GB, free: 7.328 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004144/0.3708, allocations: 255.9 kB / 0.5839 GB, free: 7.078 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01237/0.3831, allocations: 8.428 MB / 0.5922 GB, free: 13.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.815e-05/0.3833, allocations: 39.67 kB / 0.5922 GB, free: 13.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003276/0.3836, allocations: 131.9 kB / 0.5923 GB, free: 13.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002578/0.3862, allocations: 1.692 MB / 0.594 GB, free: 12.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01205/0.3983, allocations: 7.075 MB / 0.6009 GB, free: 5.031 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03522/0.4335, allocations: 34.13 MB / 0.6342 GB, free: 1.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006648/0.4402, allocations: 3.259 MB / 0.6374 GB, free: 14.49 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001691/0.442, allocations: 1.468 MB / 0.6389 GB, free: 13.02 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005556/0.4475, allocations: 4.365 MB / 0.6431 GB, free: 8.445 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.4476, allocations: 51.12 kB / 0.6432 GB, free: 8.387 MB / 458.7 MB Notification: Performance of pre-optimization done (n=121): time 3.136e-06/0.4476, allocations: 4 kB / 0.6432 GB, free: 8.383 MB / 458.7 MB Notification: Performance of matching and sorting (n=129): time 0.02541/0.473, allocations: 11.48 MB / 0.6544 GB, free: 12.76 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.465e-05/0.4731, allocations: 170.8 kB / 0.6545 GB, free: 12.55 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004535/0.4776, allocations: 3.706 MB / 0.6582 GB, free: 8.855 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.4778, allocations: 41.98 kB / 0.6582 GB, free: 8.809 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001891/0.4797, allocations: 2.748 MB / 0.6609 GB, free: 6.02 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000459/0.4802, allocations: 0.5248 MB / 0.6614 GB, free: 5.488 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.4804, allocations: 111.9 kB / 0.6615 GB, free: 5.379 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002889/0.4807, allocations: 0.5253 MB / 0.662 GB, free: 4.848 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002222/0.4829, allocations: 1.681 MB / 0.6637 GB, free: 3.16 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004097/0.487, allocations: 5.104 MB / 0.6686 GB, free: 12.33 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003438/0.4904, allocations: 2.881 MB / 0.6715 GB, free: 9.445 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.874e-05/0.4905, allocations: 36 kB / 0.6715 GB, free: 9.41 MB / 490.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.008949/0.4994, allocations: 6.684 MB / 0.678 GB, free: 2.719 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.631e-05/0.4995, allocations: 56 kB / 0.6781 GB, free: 2.664 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.602e-05/0.4996, allocations: 128.8 kB / 0.6782 GB, free: 2.539 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005614/0.5002, allocations: 340.7 kB / 0.6785 GB, free: 2.203 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003251/0.5035, allocations: 1.244 MB / 0.6797 GB, free: 0.957 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002249/0.5057, allocations: 2.279 MB / 0.682 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003145/0.5089, allocations: 291.6 kB / 0.6822 GB, free: 14.26 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000403/0.5093, allocations: 336 kB / 0.6826 GB, free: 13.93 MB / 0.4948 GB 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 (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%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002263/0.5116, allocations: 1.795 MB / 0.6843 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004041/0.512, allocations: 308 kB / 0.6846 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00419/0.5162, allocations: 2.355 MB / 0.6869 GB, free: 9.441 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.107e-05/0.5162, allocations: 16 kB / 0.6869 GB, free: 9.426 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.5162, allocations: 4 kB / 0.6869 GB, free: 9.422 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.5162, allocations: 7.969 kB / 0.6869 GB, free: 9.414 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009456/0.5257, allocations: 5.915 MB / 0.6927 GB, free: 3.434 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.5257, allocations: 7.984 kB / 0.6927 GB, free: 3.426 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000739/0.5265, allocations: 171.7 kB / 0.6929 GB, free: 3.258 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002025/0.5285, allocations: 0.7108 MB / 0.6936 GB, free: 2.543 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.26e-05/0.5286, allocations: 27.97 kB / 0.6936 GB, free: 2.516 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005291/0.5339, allocations: 4.465 MB / 0.698 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.22e-05/0.5339, allocations: 8.016 kB / 0.698 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006152/0.5401, allocations: 4.305 MB / 0.7022 GB, free: 9.566 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006727/0.5408, allocations: 368.9 kB / 0.7025 GB, free: 9.184 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002785/0.541, allocations: 35.91 kB / 0.7026 GB, free: 9.152 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009906/0.542, allocations: 72.02 kB / 0.7026 GB, free: 9.082 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.5422, allocations: 76.44 kB / 0.7027 GB, free: 9.008 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.929e-05/0.5423, allocations: 32 kB / 0.7027 GB, free: 8.977 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002951/0.5452, allocations: 2.299 MB / 0.705 GB, free: 6.691 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5452, allocations: 0 / 0.705 GB, free: 6.691 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003351/0.5486, allocations: 0.8203 MB / 0.7058 GB, free: 5.871 MB / 0.5105 GB 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 (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%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003078/0.5489, allocations: 155 kB / 0.7059 GB, free: 5.711 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00528/0.5542, allocations: 4.007 MB / 0.7098 GB, free: 1.723 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5542, allocations: 0 / 0.7098 GB, free: 1.723 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001369/0.5556, allocations: 1.105 MB / 0.7109 GB, free: 0.6094 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.5575, allocations: 381.1 kB / 0.7113 GB, free: 240 kB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.18/0.7376, allocations: 9.01 MB / 0.7201 GB, free: 162.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002682/0.7403, allocations: 2.788 MB / 0.7228 GB, free: 161.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007783/0.7411, allocations: 250.4 kB / 0.723 GB, free: 161.9 MB / 0.5105 GB Notification: Performance of SimCode: time 8.01e-07/0.7411, allocations: 1.5 kB / 0.723 GB, free: 161.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.06679/0.8079, allocations: 63.47 MB / 0.785 GB, free: 113.6 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches