Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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) 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001347/0.001347, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001841/0.001841, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 64.5 kB / 307.1 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09731/0.0984, allocations: 50.52 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008927/0.1074, allocations: 7.082 MB / 364.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007132/0.1145, allocations: 3.181 MB / 367.8 MB, free: 3.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001324/0.1159, allocations: 31.94 kB / 367.9 MB, free: 3.621 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00242/0.1184, allocations: 0.7898 MB / 368.7 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005199/0.1236, allocations: 1.292 MB / 370 MB, free: 1.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001507/0.1252, allocations: 0.4912 MB / 370.4 MB, free: 1.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1811/0.3063, allocations: 2.542 MB / 373 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/0.3077, allocations: 1.16 MB / 374.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00086/0.3086, allocations: 0.7455 MB / 374.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001116/0.3097, allocations: 1.106 MB / 376 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002709/0.31, allocations: 133.8 kB / 376.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001365/0.3114, allocations: 0.8639 MB / 377 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008108/0.3122, allocations: 0.9793 MB / 378 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007656/0.313, allocations: 1.18 MB / 379.2 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00366/0.3166, allocations: 3.757 MB / 382.9 MB, free: 7.805 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3167, allocations: 0 / 382.9 MB, free: 7.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3167, allocations: 0 / 382.9 MB, free: 7.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.949e-05/0.3167, allocations: 1.125 kB / 382.9 MB, free: 7.805 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.004397/0.3211, allocations: 2.87 MB / 385.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.3212, allocations: 9.844 kB / 385.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004198/0.3216, allocations: 452.7 kB / 386.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005462/0.3271, allocations: 1.646 MB / 387.9 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002143/0.3292, allocations: 1.517 MB / 389.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-05/0.3293, allocations: 118.4 kB / 389.5 MB, free: 4.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002764/0.3296, allocations: 151 kB / 389.7 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008013/0.3376, allocations: 6.369 MB / 396 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.45e-05/0.3377, allocations: 32.22 kB / 396.1 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000252/0.338, allocations: 75.27 kB / 396.1 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002117/0.3401, allocations: 1.437 MB / 397.6 MB, free: 196 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01086/0.351, allocations: 5.676 MB / 403.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03067/0.3817, allocations: 26.29 MB / 429.5 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004214/0.386, allocations: 2.266 MB / 431.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001203/0.3872, allocations: 1.018 MB / 432.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.559e-05/0.3873, allocations: 14.64 kB / 432.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.3873, allocations: 46.56 kB / 432.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 3.556e-06/0.3873, allocations: 3.75 kB / 432.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02204/0.4093, allocations: 8.578 MB / 441.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.737e-05/0.4095, allocations: 144.4 kB / 441.6 MB, free: 4.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004573/0.414, allocations: 2.819 MB / 444.4 MB, free: 1.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001383/0.4142, allocations: 44.83 kB / 444.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001305/0.4155, allocations: 2.075 MB / 446.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004482/0.416, allocations: 439.5 kB / 447 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001188/0.4172, allocations: 0.8767 MB / 447.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.392e-05/0.4173, allocations: 305.1 kB / 448.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001944/0.4192, allocations: 1.406 MB / 449.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003452/0.4227, allocations: 4.237 MB / 453.8 MB, free: 6.453 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005886/0.4286, allocations: 6.113 MB / 459.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.3e-05/0.4286, allocations: 32 kB / 459.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009666/0.4383, allocations: 6.082 MB / 466 MB, free: 8.824 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.095e-05/0.4384, allocations: 52.06 kB / 466.1 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/0.4385, allocations: 104 kB / 466.2 MB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002204/0.4408, allocations: 0.7928 MB / 467 MB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00289/0.4437, allocations: 0.9825 MB / 467.9 MB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005742/0.4494, allocations: 4.467 MB / 472.4 MB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00309/0.4525, allocations: 255.5 kB / 472.7 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006643/0.4532, allocations: 283.9 kB / 472.9 MB, free: 1.762 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[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 (533): * Single equations (assignments): 529 * 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 {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002456/0.4557, allocations: 1.377 MB / 474.3 MB, free: 384 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004977/0.4562, allocations: 229 kB / 474.5 MB, free: 152 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004099/0.4603, allocations: 1.849 MB / 476.4 MB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.788e-05/0.4604, allocations: 16 kB / 476.4 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.4604, allocations: 0 / 476.4 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.02e-05/0.4604, allocations: 11.92 kB / 476.4 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01055/0.471, allocations: 4.808 MB / 481.2 MB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/0.471, allocations: 4 kB / 481.2 MB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006688/0.4717, allocations: 132.6 kB / 481.4 MB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002042/0.4738, allocations: 0.6444 MB / 482 MB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001515/0.4739, allocations: 23.94 kB / 482 MB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004721/0.4787, allocations: 3.956 MB / 486 MB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4787, allocations: 8 kB / 486 MB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00566/0.4844, allocations: 3.691 MB / 489.7 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006321/0.485, allocations: 293.9 kB / 490 MB, free: 472 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005325/0.4856, allocations: 12 kB / 490 MB, free: 460 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.4866, allocations: 63.91 kB / 490 MB, free: 396 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.4868, allocations: 63.8 kB / 490.1 MB, free: 332 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.568e-05/0.4869, allocations: 28 kB / 490.1 MB, free: 304 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003188/0.4901, allocations: 1.758 MB / 491.9 MB, free: 14.53 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4901, allocations: 0 / 491.9 MB, free: 14.53 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004046/0.4942, allocations: 0.6271 MB / 492.5 MB, free: 13.91 MB / 414.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 (75): * Single equations (assignments): 71 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005969/0.5001, allocations: 4.306 MB / 496.8 MB, free: 9.559 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005155/0.5053, allocations: 3.62 MB / 0.4887 GB, free: 5.945 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.5053, allocations: 0 / 0.4887 GB, free: 5.945 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.5065, allocations: 0.9404 MB / 0.4896 GB, free: 4.992 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001619/0.5081, allocations: 257.9 kB / 0.4899 GB, free: 4.742 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04587/0.554, allocations: 32.34 MB / 0.5215 GB, free: 15.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002859/0.5569, allocations: 2.184 MB / 0.5236 GB, free: 13.21 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003329/0.5602, allocations: 1.4 MB / 0.525 GB, free: 11.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001463/0.5617, allocations: 1.05 MB / 0.526 GB, free: 10.75 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5617, allocations: 0 / 0.526 GB, free: 10.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.313/3.875, allocations: 44.41 MB / 0.5693 GB, free: 147.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/17.78, allocations: 8.781 kB / 0.5694 GB, free: 147 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches