Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization") translateModel(ModelicaTest.MultiBody.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009633/0.0009632, allocations: 97.02 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001385, allocations: 186.5 kB / 16.92 MB, free: 6.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.715/1.715, allocations: 205.4 MB / 223.1 MB, free: 5.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3816/0.3816, allocations: 43.57 MB / 315 MB, free: 9.098 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005873/0.0005875, allocations: 20 kB / 384.6 MB, free: 7.879 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1333, allocations: 58.86 MB / 443.4 MB, free: 12.92 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.2402/0.3735, allocations: 33.74 MB / 477.2 MB, free: 28.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01417/0.3877, allocations: 7.833 MB / 485 MB, free: 25.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005372/0.3931, allocations: 146.8 kB / 485.2 MB, free: 25.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001407/0.3946, allocations: 370.8 kB / 485.5 MB, free: 25.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004092/0.3987, allocations: 1.556 MB / 487.1 MB, free: 24.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001338/0.4, allocations: 0.55 MB / 487.6 MB, free: 24.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004324/0.4044, allocations: 4.768 MB / 492.4 MB, free: 22.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003595/0.408, allocations: 3.285 MB / 495.7 MB, free: 21.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001448/0.4095, allocations: 0.9521 MB / 496.6 MB, free: 21.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002016/0.4115, allocations: 1.613 MB / 498.2 MB, free: 20.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003642/0.4119, allocations: 114.1 kB / 498.4 MB, free: 20.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001977/0.4139, allocations: 0.9436 MB / 499.3 MB, free: 20.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001985/0.4159, allocations: 1.435 MB / 0.489 GB, free: 20.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002697/0.4186, allocations: 1.685 MB / 0.4906 GB, free: 18.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008358/0.427, allocations: 5.433 MB / 0.496 GB, free: 17.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.427, allocations: 0 / 0.496 GB, free: 17.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.427, allocations: 1.406 kB / 0.496 GB, free: 17.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002237/0.4272, allocations: 0 / 0.496 GB, free: 17.34 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.008507/0.4358, allocations: 3.301 MB / 0.4992 GB, free: 15.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.4358, allocations: 9.312 kB / 0.4992 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007105/0.4429, allocations: 1.825 MB / 0.501 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004316/0.4473, allocations: 1.972 MB / 0.5029 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000156/0.4474, allocations: 192.4 kB / 0.5031 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006365/0.4481, allocations: 258.1 kB / 0.5033 GB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01302/0.4611, allocations: 8.443 MB / 0.5116 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.413e-05/0.4613, allocations: 39.84 kB / 0.5116 GB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000341/0.4616, allocations: 124.9 kB / 0.5117 GB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002527/0.4641, allocations: 1.7 MB / 0.5134 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01152/0.4757, allocations: 7.111 MB / 0.5203 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0431/0.5188, allocations: 34.17 MB / 0.5537 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007418/0.5263, allocations: 3.271 MB / 0.5569 GB, free: 9.922 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001992/0.5283, allocations: 1.458 MB / 0.5583 GB, free: 8.449 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006743/0.535, allocations: 4.377 MB / 0.5626 GB, free: 3.863 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.5351, allocations: 47.06 kB / 0.5626 GB, free: 3.809 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 3.917e-06/0.5351, allocations: 0 / 0.5626 GB, free: 3.809 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.02976/0.5649, allocations: 11.52 MB / 0.5739 GB, free: 8.145 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.719e-05/0.565, allocations: 166.9 kB / 0.574 GB, free: 7.945 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005366/0.5704, allocations: 3.726 MB / 0.5777 GB, free: 4.227 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003094/0.5707, allocations: 45.7 kB / 0.5777 GB, free: 4.176 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002582/0.5733, allocations: 2.759 MB / 0.5804 GB, free: 1.375 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008354/0.5742, allocations: 0.5249 MB / 0.5809 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006113/0.5748, allocations: 457.7 kB / 0.5814 GB, free: 400 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.5749, allocations: 309.1 kB / 0.5817 GB, free: 88 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002669/0.5776, allocations: 1.709 MB / 0.5833 GB, free: 14.37 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004774/0.5824, allocations: 5.124 MB / 0.5883 GB, free: 7.52 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008393/0.5908, allocations: 7.411 MB / 0.5956 GB, free: 14.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.801e-05/0.5909, allocations: 36 kB / 0.5956 GB, free: 14.37 MB / 478.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01203/0.6029, allocations: 6.725 MB / 0.6022 GB, free: 7.633 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.917e-05/0.603, allocations: 56 kB / 0.6022 GB, free: 7.578 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001445/0.6032, allocations: 123.9 kB / 0.6023 GB, free: 7.457 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006434/0.6038, allocations: 325.4 kB / 0.6027 GB, free: 7.137 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003953/0.6078, allocations: 1.244 MB / 0.6039 GB, free: 5.891 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002594/0.6104, allocations: 2.275 MB / 0.6061 GB, free: 3.477 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004349/0.6148, allocations: 299.5 kB / 0.6064 GB, free: 3.184 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009066/0.6157, allocations: 339.9 kB / 0.6067 GB, free: 2.852 MB / 478.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.003567/0.6193, allocations: 1.799 MB / 0.6085 GB, free: 1.039 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007149/0.62, allocations: 311.9 kB / 0.6088 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005321/0.6253, allocations: 2.359 MB / 0.6111 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.815e-05/0.6254, allocations: 16 kB / 0.6111 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.827e-05/0.6254, allocations: 7.938 kB / 0.6111 GB, free: 14.33 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.178e-05/0.6255, allocations: 7.969 kB / 0.6111 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01299/0.6385, allocations: 5.93 MB / 0.6169 GB, free: 8.324 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/0.6385, allocations: 0 / 0.6169 GB, free: 8.324 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000864/0.6394, allocations: 171.8 kB / 0.617 GB, free: 8.156 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002262/0.6417, allocations: 0.7147 MB / 0.6177 GB, free: 7.438 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001555/0.6418, allocations: 19.98 kB / 0.6178 GB, free: 7.418 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005785/0.6476, allocations: 4.485 MB / 0.6221 GB, free: 2.801 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6477, allocations: 0 / 0.6221 GB, free: 2.801 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007102/0.6548, allocations: 4.328 MB / 0.6264 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001371/0.6562, allocations: 0.5359 MB / 0.6269 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004033/0.6566, allocations: 24.06 kB / 0.6269 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.6577, allocations: 67.91 kB / 0.627 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/0.658, allocations: 64.56 kB / 0.627 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.502e-05/0.6581, allocations: 36 kB / 0.6271 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003894/0.662, allocations: 2.331 MB / 0.6294 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.61e-07/0.662, allocations: 0 / 0.6294 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004724/0.6667, allocations: 0.8241 MB / 0.6302 GB, free: 10.55 MB / 0.4981 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 (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.0004318/0.6672, allocations: 155 kB / 0.6303 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007259/0.6744, allocations: 4.029 MB / 0.6342 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.6745, allocations: 0 / 0.6342 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001588/0.6761, allocations: 1.113 MB / 0.6353 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003442/0.6795, allocations: 378.5 kB / 0.6357 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2617/0.9413, allocations: 9.026 MB / 0.6445 GB, free: 131 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003502/0.9449, allocations: 2.794 MB / 0.6472 GB, free: 130.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004888/0.9498, allocations: 1.664 MB / 0.6489 GB, free: 130.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009866/0.9508, allocations: 209 kB / 0.6491 GB, free: 130.2 MB / 0.4981 GB Notification: Performance of SimCode: time 2.244e-06/0.9508, allocations: 1.906 kB / 0.6491 GB, free: 130.2 MB / 0.4981 GB Notification: Performance of Templates: time 0.06399/1.015, allocations: 29.51 MB / 0.6779 GB, free: 122.4 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches