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.001241/0.001241, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 71.88 kB / 358.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2177, allocations: 50.54 MB / 408.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01258/0.2303, allocations: 11.98 MB / 420.8 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007686/0.238, allocations: 4.207 MB / 425 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001282/0.2393, allocations: 67.81 kB / 425.1 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004844/0.2442, allocations: 2.749 MB / 427.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00453/0.2488, allocations: 1.93 MB / 429.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001698/0.2505, allocations: 0.815 MB / 430.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006057/0.2566, allocations: 4.679 MB / 435.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004192/0.2608, allocations: 3.543 MB / 438.8 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002307/0.2631, allocations: 1.682 MB / 440.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003003/0.2661, allocations: 2.332 MB / 442.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007721/0.2669, allocations: 352 kB / 443.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002274/0.2692, allocations: 1.256 MB / 444.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001926/0.2711, allocations: 2.069 MB / 446.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002594/0.2737, allocations: 2.415 MB / 448.9 MB, free: 9.207 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00805/0.2818, allocations: 7.52 MB / 456.4 MB, free: 1.656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2818, allocations: 0 / 456.4 MB, free: 1.656 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.2818, allocations: 0 / 456.4 MB, free: 1.656 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001625/0.282, allocations: 3.938 kB / 456.4 MB, free: 1.652 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.009643/0.2917, allocations: 5.396 MB / 461.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.2917, allocations: 12.03 kB / 461.8 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001032/0.2927, allocations: 0.7943 MB / 462.6 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007963/0.3007, allocations: 2.221 MB / 464.8 MB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005061/0.3058, allocations: 2.936 MB / 467.8 MB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002142/0.306, allocations: 274.8 kB / 468 MB, free: 5.867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009724/0.307, allocations: 435.6 kB / 468.5 MB, free: 5.441 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02126/0.3283, allocations: 12.26 MB / 480.7 MB, free: 8.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001164/0.3284, allocations: 51.58 kB / 480.8 MB, free: 8.316 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004537/0.3289, allocations: 171.8 kB / 480.9 MB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003152/0.3321, allocations: 2.162 MB / 483.1 MB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02079/0.3529, allocations: 10.25 MB / 493.4 MB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05024/0.4031, allocations: 44.16 MB / 0.5249 GB, free: 14.31 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01112/0.4143, allocations: 4.655 MB / 0.5295 GB, free: 9.457 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00243/0.4167, allocations: 1.724 MB / 0.5312 GB, free: 7.727 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1743/0.5911, allocations: 8.263 MB / 0.5392 GB, free: 123 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.5911, allocations: 53.34 kB / 0.5393 GB, free: 123 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 4.569e-06/0.5912, allocations: 5.344 kB / 0.5393 GB, free: 123 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.03318/0.6243, allocations: 16.33 MB / 0.5552 GB, free: 117.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008165/0.6252, allocations: 1.693 MB / 0.5569 GB, free: 116.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00394/0.6291, allocations: 4.218 MB / 0.561 GB, free: 113.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002301/0.6294, allocations: 57.7 kB / 0.5611 GB, free: 113.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/0.6306, allocations: 3.54 MB / 0.5645 GB, free: 110.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000528/0.6311, allocations: 0.8392 MB / 0.5653 GB, free: 109.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001157/0.6323, allocations: 1.357 MB / 0.5667 GB, free: 108.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.02e-05/0.6323, allocations: 301.1 kB / 0.5669 GB, free: 108.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002449/0.6348, allocations: 2.25 MB / 0.5691 GB, free: 106 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003454/0.6383, allocations: 6.375 MB / 0.5754 GB, free: 97.62 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006463/0.6447, allocations: 9.277 MB / 0.5844 GB, free: 86.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.156e-05/0.6448, allocations: 40 kB / 0.5845 GB, free: 86.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01175/0.6566, allocations: 9.145 MB / 0.5934 GB, free: 77.11 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.105e-05/0.6567, allocations: 68 kB / 0.5935 GB, free: 77.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004262/0.6609, allocations: 2.876 MB / 0.5963 GB, free: 74.15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002683/0.6636, allocations: 1.068 MB / 0.5973 GB, free: 73.08 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003779/0.6674, allocations: 1.583 MB / 0.5989 GB, free: 71.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003244/0.6707, allocations: 4.68 MB / 0.6034 GB, free: 66.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004132/0.6748, allocations: 427.4 kB / 0.6038 GB, free: 66.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005444/0.6754, allocations: 420 kB / 0.6042 GB, free: 65.71 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.002391/0.6778, allocations: 2.22 MB / 0.6064 GB, free: 63.48 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004809/0.6783, allocations: 393.4 kB / 0.6068 GB, free: 63.09 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005051/0.6833, allocations: 3.305 MB / 0.61 GB, free: 59.76 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004117/0.6875, allocations: 2.779 MB / 0.6127 GB, free: 56.96 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.6875, allocations: 7.938 kB / 0.6127 GB, free: 56.96 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.696e-05/0.6875, allocations: 11.95 kB / 0.6127 GB, free: 56.95 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0128/0.7003, allocations: 10.37 MB / 0.6229 GB, free: 46.33 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/0.7004, allocations: 12 kB / 0.6229 GB, free: 46.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.7016, allocations: 379.4 kB / 0.6232 GB, free: 45.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002469/0.7041, allocations: 0.9826 MB / 0.6242 GB, free: 44.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001543/0.7043, allocations: 63.8 kB / 0.6243 GB, free: 44.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003537/0.7078, allocations: 4.912 MB / 0.6291 GB, free: 39.71 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006017/0.7084, allocations: 1.569 MB / 0.6306 GB, free: 37.99 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006837/0.7153, allocations: 5.984 MB / 0.6364 GB, free: 31.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006999/0.716, allocations: 454.3 kB / 0.6369 GB, free: 31.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000369/0.7164, allocations: 59.98 kB / 0.6369 GB, free: 31.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001463/0.7179, allocations: 159.6 kB / 0.6371 GB, free: 31.12 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002705/0.7181, allocations: 172.4 kB / 0.6372 GB, free: 30.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/0.7183, allocations: 75.97 kB / 0.6373 GB, free: 30.88 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002825/0.7211, allocations: 2.594 MB / 0.6399 GB, free: 28.28 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.7211, allocations: 0 / 0.6399 GB, free: 28.28 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004127/0.7252, allocations: 1.121 MB / 0.6409 GB, free: 27.16 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.006953/0.7322, allocations: 6.675 MB / 0.6475 GB, free: 20.27 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007604/0.7398, allocations: 5.965 MB / 0.6533 GB, free: 14.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/0.7399, allocations: 4 kB / 0.6533 GB, free: 14.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003117/0.743, allocations: 2.217 MB / 0.6555 GB, free: 11.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002537/0.7455, allocations: 0.4932 MB / 0.6559 GB, free: 11.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06522/0.8108, allocations: 50.73 MB / 0.7055 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003912/0.8147, allocations: 3.454 MB / 0.7089 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004158/0.8189, allocations: 2.018 MB / 0.7108 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002595/0.8215, allocations: 2.093 MB / 0.7129 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of SimCode: time 7.32e-07/0.8215, allocations: 0 / 0.7129 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.971/3.793, allocations: 72.9 MB / 0.7841 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 56.75/60.54, allocations: 9.609 kB / 0.7841 GB, free: 157.1 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.1.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