Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00146/0.00146, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001728/0.001728, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3132, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01464/0.3279, allocations: 11.96 MB / 420.7 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.3381, allocations: 4.219 MB / 424.9 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002423/0.3406, allocations: 67.81 kB / 425 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005795/0.3465, allocations: 2.749 MB / 427.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005686/0.3522, allocations: 1.922 MB / 429.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002184/0.3544, allocations: 0.815 MB / 430.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006911/0.3614, allocations: 4.69 MB / 435.2 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005768/0.3672, allocations: 3.542 MB / 438.7 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003791/0.371, allocations: 1.674 MB / 440.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004045/0.3751, allocations: 2.336 MB / 442.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001476/0.3766, allocations: 352 kB / 443.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00346/0.3801, allocations: 1.26 MB / 444.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002781/0.3829, allocations: 2.088 MB / 446.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004416/0.3873, allocations: 2.415 MB / 448.8 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01102/0.3984, allocations: 7.474 MB / 456.3 MB, free: 1.785 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.3985, allocations: 4 kB / 456.3 MB, free: 1.781 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3985, allocations: 0 / 456.3 MB, free: 1.781 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003124/0.3988, allocations: 0 / 456.3 MB, free: 1.781 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01195/0.4107, allocations: 5.266 MB / 461.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.4108, allocations: 8.031 kB / 461.6 MB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00139/0.4122, allocations: 0.8021 MB / 462.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008373/0.4206, allocations: 2.186 MB / 464.6 MB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006194/0.4268, allocations: 2.933 MB / 467.5 MB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002867/0.4272, allocations: 274.8 kB / 467.8 MB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001516/0.4287, allocations: 427.7 kB / 468.2 MB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02653/0.4552, allocations: 12.26 MB / 480.5 MB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003507/0.4556, allocations: 51.52 kB / 480.5 MB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001447/0.4571, allocations: 175.8 kB / 480.7 MB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003634/0.4608, allocations: 2.154 MB / 482.8 MB, free: 6.289 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02243/0.4832, allocations: 10.25 MB / 493.1 MB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05732/0.5406, allocations: 44.09 MB / 0.5246 GB, free: 14.69 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01251/0.5532, allocations: 4.647 MB / 0.5291 GB, free: 9.836 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002906/0.5561, allocations: 1.721 MB / 0.5308 GB, free: 8.109 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2194/0.7755, allocations: 8.256 MB / 0.5389 GB, free: 124.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.451e-05/0.7756, allocations: 55.47 kB / 0.5389 GB, free: 124.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 5.099e-06/0.7756, allocations: 1.688 kB / 0.5389 GB, free: 124.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.03709/0.8127, allocations: 16.08 MB / 0.5546 GB, free: 119.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009526/0.8137, allocations: 1.69 MB / 0.5563 GB, free: 118.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004719/0.8184, allocations: 4.199 MB / 0.5604 GB, free: 115.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003684/0.8188, allocations: 57.7 kB / 0.5604 GB, free: 115.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00143/0.8203, allocations: 3.399 MB / 0.5638 GB, free: 112.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006951/0.821, allocations: 0.8067 MB / 0.5645 GB, free: 111.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001346/0.8223, allocations: 1.344 MB / 0.5659 GB, free: 110 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.706e-05/0.8224, allocations: 304.9 kB / 0.5661 GB, free: 109.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002662/0.8251, allocations: 2.246 MB / 0.5683 GB, free: 107.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004357/0.8295, allocations: 6.382 MB / 0.5746 GB, free: 99.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007637/0.8371, allocations: 9.287 MB / 0.5836 GB, free: 87.78 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-05/0.8372, allocations: 43.94 kB / 0.5837 GB, free: 87.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01578/0.853, allocations: 9.115 MB / 0.5926 GB, free: 78.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.8532, allocations: 71.98 kB / 0.5927 GB, free: 78.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004855/0.858, allocations: 2.868 MB / 0.5955 GB, free: 75.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003036/0.8611, allocations: 1.076 MB / 0.5965 GB, free: 74.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004455/0.8656, allocations: 1.575 MB / 0.598 GB, free: 72.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003806/0.8694, allocations: 4.676 MB / 0.6026 GB, free: 68.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005233/0.8747, allocations: 431.5 kB / 0.603 GB, free: 67.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009355/0.8757, allocations: 416 kB / 0.6034 GB, free: 67.21 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003143/0.8788, allocations: 2.212 MB / 0.6056 GB, free: 64.99 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007342/0.8796, allocations: 375.1 kB / 0.6059 GB, free: 64.62 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005686/0.8853, allocations: 3.317 MB / 0.6092 GB, free: 61.27 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004492/0.8898, allocations: 2.776 MB / 0.6119 GB, free: 58.48 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.938e-05/0.8899, allocations: 3.938 kB / 0.6119 GB, free: 58.47 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.718e-05/0.8899, allocations: 15.97 kB / 0.6119 GB, free: 58.46 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01664/0.9065, allocations: 10.37 MB / 0.622 GB, free: 47.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-05/0.9066, allocations: 16.06 kB / 0.622 GB, free: 47.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001505/0.9081, allocations: 380.2 kB / 0.6224 GB, free: 47.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002687/0.9108, allocations: 0.9863 MB / 0.6234 GB, free: 46.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002665/0.9111, allocations: 63.98 kB / 0.6234 GB, free: 46.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003767/0.9149, allocations: 4.913 MB / 0.6282 GB, free: 41.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006729/0.9156, allocations: 1.557 MB / 0.6297 GB, free: 39.52 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00771/0.9233, allocations: 5.966 MB / 0.6356 GB, free: 33.35 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/0.9246, allocations: 448 kB / 0.636 GB, free: 32.89 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005737/0.9252, allocations: 55.98 kB / 0.6361 GB, free: 32.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001653/0.9269, allocations: 147.8 kB / 0.6362 GB, free: 32.69 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002732/0.9271, allocations: 180.4 kB / 0.6364 GB, free: 32.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/0.9273, allocations: 75.97 kB / 0.6364 GB, free: 32.44 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003621/0.9309, allocations: 2.59 MB / 0.639 GB, free: 29.84 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.9309, allocations: 4 kB / 0.639 GB, free: 29.84 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005514/0.9365, allocations: 1.115 MB / 0.6401 GB, free: 28.73 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008053/0.9445, allocations: 6.67 MB / 0.6466 GB, free: 21.85 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00884/0.9534, allocations: 5.956 MB / 0.6524 GB, free: 15.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-05/0.9535, allocations: 0 / 0.6524 GB, free: 15.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003486/0.957, allocations: 2.218 MB / 0.6546 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003207/0.9602, allocations: 0.4954 MB / 0.655 GB, free: 13.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09038/1.051, allocations: 50.54 MB / 0.7044 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00619/1.057, allocations: 3.451 MB / 0.7078 GB, free: 220 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005557/1.062, allocations: 2.014 MB / 0.7097 GB, free: 14.2 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004757/1.067, allocations: 2.096 MB / 0.7118 GB, free: 12.1 MB / 0.5138 GB Notification: Performance of SimCode: time 2.355e-06/1.067, allocations: 0 / 0.7118 GB, free: 12.1 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3423/1.41, allocations: 74.05 MB / 0.7841 GB, free: 161 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 57.21/58.62, allocations: 11.36 kB / 0.7841 GB, free: 161 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches