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.001016/0.001016, allocations: 195.8 kB / 16.1 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 226.5 MB / 243.4 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007342/0.0007342, allocations: 100.7 kB / 295.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3063/0.3063, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002983/0.0002984, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3094, allocations: 62.96 MB / 0.5159 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.02095/0.3304, allocations: 31.43 MB / 0.5466 GB, free: 14.64 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01508/0.3456, allocations: 7.451 MB / 0.5539 GB, free: 9.574 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005942/0.3516, allocations: 145.6 kB / 0.554 GB, free: 9.551 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00634/0.358, allocations: 1.579 MB / 0.5555 GB, free: 8.984 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01508/0.3731, allocations: 4.867 MB / 0.5603 GB, free: 6.957 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002966/0.3761, allocations: 0.5466 MB / 0.5608 GB, free: 6.746 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006295/0.3824, allocations: 3.86 MB / 0.5646 GB, free: 5.141 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005184/0.3876, allocations: 3.176 MB / 0.5677 GB, free: 3.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00273/0.3904, allocations: 1.042 MB / 0.5687 GB, free: 2.754 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002947/0.3934, allocations: 1.59 MB / 0.5703 GB, free: 1.555 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005905/0.394, allocations: 112 kB / 0.5704 GB, free: 1.445 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002682/0.3967, allocations: 0.936 MB / 0.5713 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002381/0.3991, allocations: 1.395 MB / 0.5726 GB, free: 15.11 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002823/0.402, allocations: 1.578 MB / 0.5742 GB, free: 13.52 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007324/0.4093, allocations: 4.424 MB / 0.5785 GB, free: 9.082 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.385e-06/0.4094, allocations: 0 / 0.5785 GB, free: 9.082 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.4094, allocations: 4 kB / 0.5785 GB, free: 9.078 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002028/0.4096, allocations: 0 / 0.5785 GB, free: 9.078 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.01139/0.421, allocations: 3.309 MB / 0.5817 GB, free: 5.703 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.643e-05/0.4211, allocations: 12.03 kB / 0.5818 GB, free: 5.691 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01122/0.4324, allocations: 1.829 MB / 0.5835 GB, free: 3.855 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006643/0.4391, allocations: 1.889 MB / 0.5854 GB, free: 1.906 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003061/0.4394, allocations: 193.2 kB / 0.5856 GB, free: 1.715 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001363/0.4408, allocations: 263.7 kB / 0.5858 GB, free: 1.457 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.024/0.4649, allocations: 8.42 MB / 0.594 GB, free: 8.367 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00023/0.4652, allocations: 43.59 kB / 0.5941 GB, free: 8.324 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001015/0.4662, allocations: 123.9 kB / 0.5942 GB, free: 8.203 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004376/0.4706, allocations: 1.695 MB / 0.5959 GB, free: 6.508 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02211/0.4927, allocations: 7.075 MB / 0.6028 GB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06367/0.5565, allocations: 34.15 MB / 0.6361 GB, free: 12.27 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007627/0.5642, allocations: 3.275 MB / 0.6393 GB, free: 8.848 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002121/0.5663, allocations: 1.453 MB / 0.6407 GB, free: 7.383 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007259/0.5736, allocations: 4.373 MB / 0.645 GB, free: 2.801 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/0.5737, allocations: 43.12 kB / 0.645 GB, free: 2.75 MB / 458.7 MB Notification: Performance of pre-optimization done (n=121): time 3.978e-06/0.5737, allocations: 0 / 0.645 GB, free: 2.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=129): time 0.02853/0.6023, allocations: 11.48 MB / 0.6563 GB, free: 7.121 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.402e-05/0.6024, allocations: 174.8 kB / 0.6564 GB, free: 6.914 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005773/0.6082, allocations: 3.698 MB / 0.66 GB, free: 3.223 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002132/0.6084, allocations: 45.7 kB / 0.6601 GB, free: 3.172 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002065/0.6105, allocations: 2.748 MB / 0.6628 GB, free: 392 kB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006989/0.6112, allocations: 0.5248 MB / 0.6633 GB, free: 15.85 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003577/0.6116, allocations: 104 kB / 0.6634 GB, free: 15.75 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003925/0.612, allocations: 0.5331 MB / 0.6639 GB, free: 15.21 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/0.6149, allocations: 1.681 MB / 0.6655 GB, free: 13.52 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005274/0.6202, allocations: 5.104 MB / 0.6705 GB, free: 6.691 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2535/0.8737, allocations: 7.393 MB / 0.6777 GB, free: 124.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001307/0.8739, allocations: 35.38 kB / 0.6778 GB, free: 124.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01206/0.886, allocations: 6.682 MB / 0.6843 GB, free: 122.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.246e-05/0.8861, allocations: 66.69 kB / 0.6844 GB, free: 122.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001448/0.8863, allocations: 122.6 kB / 0.6845 GB, free: 122.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006459/0.8869, allocations: 319 kB / 0.6848 GB, free: 122.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003865/0.8908, allocations: 1.248 MB / 0.686 GB, free: 122.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00208/0.8929, allocations: 2.285 MB / 0.6882 GB, free: 120.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003687/0.8966, allocations: 291.7 kB / 0.6885 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007732/0.8974, allocations: 335.6 kB / 0.6888 GB, free: 120.7 MB / 490.7 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 (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.002997/0.9004, allocations: 1.791 MB / 0.6906 GB, free: 119.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006005/0.901, allocations: 312.4 kB / 0.6909 GB, free: 119.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004418/0.9055, allocations: 2.352 MB / 0.6932 GB, free: 119.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.202e-05/0.9055, allocations: 20.47 kB / 0.6932 GB, free: 119.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.9055, allocations: 6.906 kB / 0.6932 GB, free: 119.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.448e-05/0.9056, allocations: 10.27 kB / 0.6932 GB, free: 119.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01142/0.917, allocations: 5.915 MB / 0.699 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-05/0.9171, allocations: 2.391 kB / 0.699 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008271/0.9179, allocations: 173.3 kB / 0.6992 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002194/0.9201, allocations: 0.7164 MB / 0.6999 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001454/0.9203, allocations: 21.83 kB / 0.6999 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005667/0.926, allocations: 4.459 MB / 0.7042 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.926, allocations: 1.688 kB / 0.7042 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007039/0.933, allocations: 4.319 MB / 0.7085 GB, free: 112.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009837/0.9341, allocations: 373.1 kB / 0.7088 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004138/0.9345, allocations: 21.95 kB / 0.7088 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.9356, allocations: 71.42 kB / 0.7089 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002318/0.9358, allocations: 63.91 kB / 0.709 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.9359, allocations: 39.64 kB / 0.709 GB, free: 112.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0046/0.9406, allocations: 2.305 MB / 0.7112 GB, free: 111.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.9406, allocations: 3.891 kB / 0.7112 GB, free: 111.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005519/0.9461, allocations: 0.8238 MB / 0.7121 GB, free: 111.5 MB / 490.7 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 (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.0004713/0.9466, allocations: 153.2 kB / 0.7122 GB, free: 111.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006081/0.9527, allocations: 4.007 MB / 0.7161 GB, free: 110 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.9528, allocations: 3.938 kB / 0.7161 GB, free: 110 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.9542, allocations: 1.11 MB / 0.7172 GB, free: 109.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00284/0.957, allocations: 367.4 kB / 0.7175 GB, free: 109.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.9691, allocations: 9.015 MB / 0.7264 GB, free: 103.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002325/0.9715, allocations: 2.786 MB / 0.7291 GB, free: 101.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000919/0.9724, allocations: 250.6 kB / 0.7293 GB, free: 101.1 MB / 490.7 MB Notification: Performance of SimCode: time 6.31e-07/0.9724, allocations: 0 / 0.7293 GB, free: 101.1 MB / 490.7 MB Notification: Performance of Templates: time 0.07109/1.044, allocations: 63.38 MB / 0.7912 GB, free: 38.37 MB / 490.7 MB 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