Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001204/0.001204, allocations: 118.7 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 210.5 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 230.2 MB / 254.5 MB, free: 15.22 MB / 206.1 MB " [Timeout remaining time 178] 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.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 68.02 kB / 373.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1179, allocations: 53.32 MB / 426.7 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.2925/0.4103, allocations: 7.448 MB / 434.1 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006351/0.4167, allocations: 3.276 MB / 437.4 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001495/0.4182, allocations: 36.38 kB / 437.4 MB, free: 6.414 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00276/0.4209, allocations: 1.046 MB / 438.5 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00381/0.4247, allocations: 1.367 MB / 439.8 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009937/0.4257, allocations: 448.7 kB / 440.3 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004065/0.4298, allocations: 2.665 MB / 442.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002085/0.4319, allocations: 1.319 MB / 444.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001235/0.4331, allocations: 0.8373 MB / 445.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002086/0.4352, allocations: 1.338 MB / 446.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003258/0.4355, allocations: 169.3 kB / 446.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002075/0.4376, allocations: 1.047 MB / 447.6 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0014/0.439, allocations: 1.114 MB / 448.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001004/0.44, allocations: 1.298 MB / 450.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005124/0.4451, allocations: 4.34 MB / 454.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.4451, allocations: 3.984 kB / 454.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4451, allocations: 0 / 454.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.414e-05/0.4452, allocations: 0 / 454.4 MB, free: 15.09 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.007635/0.4529, allocations: 3.113 MB / 457.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.4529, allocations: 9.844 kB / 457.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006009/0.4535, allocations: 480.7 kB / 458 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006802/0.4603, allocations: 1.81 MB / 459.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004531/0.4648, allocations: 1.608 MB / 461.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.4649, allocations: 133.3 kB / 461.5 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006398/0.4656, allocations: 254.7 kB / 461.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01314/0.4787, allocations: 6.679 MB / 468.5 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-05/0.4788, allocations: 26.8 kB / 468.5 MB, free: 6.281 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000246/0.479, allocations: 87.39 kB / 468.6 MB, free: 6.223 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002056/0.4811, allocations: 1.365 MB / 469.9 MB, free: 5.215 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01206/0.4932, allocations: 6.052 MB / 476 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03713/0.5303, allocations: 25.55 MB / 0.4898 GB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007449/0.5377, allocations: 2.599 MB / 0.4923 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.5392, allocations: 0.9888 MB / 0.4933 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007881/0.5471, allocations: 3.958 MB / 0.4972 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.892e-05/0.5471, allocations: 47.06 kB / 0.4972 GB, free: 12.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 4.238e-06/0.5471, allocations: 0 / 0.4972 GB, free: 12.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02854/0.5757, allocations: 10.44 MB / 0.5074 GB, free: 2.242 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001716/0.5774, allocations: 1.677 MB / 0.509 GB, free: 400 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004194/0.5816, allocations: 2.73 MB / 0.5117 GB, free: 13.64 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001704/0.5817, allocations: 41.7 kB / 0.5117 GB, free: 13.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00163/0.5834, allocations: 2.175 MB / 0.5139 GB, free: 11.39 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005532/0.5839, allocations: 0.5195 MB / 0.5144 GB, free: 10.87 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001778/0.5857, allocations: 0.921 MB / 0.5153 GB, free: 9.938 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.5858, allocations: 305.1 kB / 0.5156 GB, free: 9.637 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002832/0.5887, allocations: 1.637 MB / 0.5172 GB, free: 7.992 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005631/0.5943, allocations: 4.428 MB / 0.5215 GB, free: 2.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008647/0.6029, allocations: 6.495 MB / 0.5278 GB, free: 10.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.537e-05/0.603, allocations: 28 kB / 0.5279 GB, free: 10.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01499/0.618, allocations: 7.047 MB / 0.5347 GB, free: 3.184 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.044e-05/0.618, allocations: 50.28 kB / 0.5348 GB, free: 3.137 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006455/0.6245, allocations: 2.536 MB / 0.5373 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005151/0.6296, allocations: 1.487 MB / 0.5387 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003205/0.6328, allocations: 1.01 MB / 0.5397 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/0.6446, allocations: 7.788 MB / 0.5473 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003706/0.6483, allocations: 327.7 kB / 0.5476 GB, free: 5.703 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004602/0.6487, allocations: 280 kB / 0.5479 GB, free: 5.43 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002869/0.6516, allocations: 1.415 MB / 0.5493 GB, free: 4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004611/0.6521, allocations: 246.3 kB / 0.5495 GB, free: 3.758 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005758/0.6526, allocations: 333.8 kB / 0.5498 GB, free: 3.422 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006452/0.6591, allocations: 2.505 MB / 0.5523 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.944e-05/0.6591, allocations: 4 kB / 0.5523 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.235e-05/0.6592, allocations: 7.922 kB / 0.5523 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01586/0.675, allocations: 6.865 MB / 0.559 GB, free: 9.93 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.565e-05/0.6751, allocations: 4 kB / 0.559 GB, free: 9.926 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009389/0.676, allocations: 179.7 kB / 0.5592 GB, free: 9.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004907/0.6809, allocations: 1.426 MB / 0.5606 GB, free: 8.312 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002096/0.6811, allocations: 39.59 kB / 0.5606 GB, free: 8.277 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01213/0.6933, allocations: 7.919 MB / 0.5683 GB, free: 88 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001267/0.6945, allocations: 1.548 MB / 0.5698 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/0.7046, allocations: 4.856 MB / 0.5746 GB, free: 9.492 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008557/0.7054, allocations: 311.3 kB / 0.5749 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002802/0.7057, allocations: 25.06 kB / 0.5749 GB, free: 9.145 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/0.7072, allocations: 119.8 kB / 0.575 GB, free: 9.027 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003215/0.7075, allocations: 76.38 kB / 0.5751 GB, free: 8.953 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.92e-05/0.7076, allocations: 35.98 kB / 0.5751 GB, free: 8.918 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002829/0.7104, allocations: 1.689 MB / 0.5768 GB, free: 7.219 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.7104, allocations: 4 kB / 0.5768 GB, free: 7.215 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00434/0.7148, allocations: 0.7577 MB / 0.5775 GB, free: 6.457 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01007/0.7248, allocations: 5.502 MB / 0.5829 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008124/0.733, allocations: 4.197 MB / 0.587 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.733, allocations: 4 kB / 0.587 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003511/0.7365, allocations: 1.663 MB / 0.5886 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.7382, allocations: 265.1 kB / 0.5889 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05403/0.7922, allocations: 33.75 MB / 0.6218 GB, free: 4.996 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003122/0.7953, allocations: 2.293 MB / 0.6241 GB, free: 2.668 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003087/0.7984, allocations: 1.408 MB / 0.6254 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001984/0.8004, allocations: 1.112 MB / 0.6265 GB, free: 144 kB / 0.5294 GB Notification: Performance of SimCode: time 7.61e-07/0.8004, allocations: 4 kB / 0.6265 GB, free: 140 kB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.687/2.487, allocations: 48.84 MB / 0.6742 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.29/22.78, allocations: 9.562 kB / 0.6742 GB, free: 159.8 MB / 0.5294 GB " [Timeout remaining time 637] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 25.89023692905903]