Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009155/0.0009156, allocations: 192 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.208/1.208, allocations: 226.5 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007258/0.0007257, allocations: 96.77 kB / 296.7 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002488/0.0002492, allocations: 4 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.188, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009837/0.1979, allocations: 16.11 MB / 424.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006909/0.2048, allocations: 4.693 MB / 428.9 MB, free: 6.824 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001642/0.2065, allocations: 75.81 kB / 429 MB, free: 6.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001203/0.2077, allocations: 0.7854 MB / 429.8 MB, free: 5.961 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00415/0.2119, allocations: 2.674 MB / 432.5 MB, free: 3.277 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007382/0.2126, allocations: 411.3 kB / 432.9 MB, free: 2.875 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002182/0.2148, allocations: 2.934 MB / 435.8 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002028/0.2168, allocations: 1.977 MB / 437.8 MB, free: 13.9 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000704/0.2176, allocations: 0.7355 MB / 438.5 MB, free: 13.16 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001153/0.2187, allocations: 1.207 MB / 439.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001812/0.2189, allocations: 87.94 kB / 439.8 MB, free: 11.87 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001354/0.2203, allocations: 0.9827 MB / 440.8 MB, free: 10.88 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007612/0.221, allocations: 1.017 MB / 441.8 MB, free: 9.863 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009124/0.222, allocations: 1.174 MB / 443 MB, free: 8.676 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002716/0.2247, allocations: 3.275 MB / 446.3 MB, free: 5.395 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2247, allocations: 4 kB / 446.3 MB, free: 5.391 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2247, allocations: 0 / 446.3 MB, free: 5.391 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.326e-05/0.2248, allocations: 0 / 446.3 MB, free: 5.391 MB / 314.7 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.004203/0.229, allocations: 2.536 MB / 448.8 MB, free: 2.797 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.229, allocations: 12.03 kB / 448.8 MB, free: 2.785 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004974/0.2295, allocations: 470.9 kB / 449.3 MB, free: 2.316 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006307/0.2358, allocations: 1.842 MB / 451.1 MB, free: 480 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002727/0.2386, allocations: 1.593 MB / 452.7 MB, free: 14.83 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.815e-05/0.2387, allocations: 135.2 kB / 452.8 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005667/0.2393, allocations: 255.7 kB / 453.1 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009207/0.2485, allocations: 6.656 MB / 459.8 MB, free: 7.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.874e-05/0.2486, allocations: 31.66 kB / 459.8 MB, free: 7.289 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002274/0.2488, allocations: 87.89 kB / 459.9 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001949/0.2508, allocations: 1.363 MB / 461.2 MB, free: 5.832 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009848/0.2606, allocations: 6.029 MB / 467.3 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02906/0.2897, allocations: 25.57 MB / 492.8 MB, free: 5.469 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006861/0.2966, allocations: 2.668 MB / 495.5 MB, free: 2.652 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/0.2981, allocations: 1.032 MB / 496.5 MB, free: 1.609 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005753/0.3038, allocations: 3.865 MB / 0.4887 GB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.3039, allocations: 39.12 kB / 0.4887 GB, free: 13.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 3.647e-06/0.3039, allocations: 0 / 0.4887 GB, free: 13.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.02744/0.3314, allocations: 10.32 MB / 0.4988 GB, free: 2.965 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001234/0.3326, allocations: 1.58 MB / 0.5003 GB, free: 1.211 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1615/0.4941, allocations: 2.722 MB / 0.503 GB, free: 92.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002274/0.4944, allocations: 40.7 kB / 0.503 GB, free: 92.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001119/0.4955, allocations: 2.087 MB / 0.5051 GB, free: 91.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004207/0.496, allocations: 0.506 MB / 0.5055 GB, free: 91.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000178/0.4961, allocations: 86.28 kB / 0.5056 GB, free: 91.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.4963, allocations: 0.4992 MB / 0.5061 GB, free: 90.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002048/0.4984, allocations: 1.604 MB / 0.5077 GB, free: 90.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002943/0.5013, allocations: 4.408 MB / 0.512 GB, free: 86.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004734/0.5061, allocations: 6.479 MB / 0.5183 GB, free: 80.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.935e-05/0.5061, allocations: 26.88 kB / 0.5183 GB, free: 80.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01039/0.5165, allocations: 7.001 MB / 0.5252 GB, free: 77.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.329e-05/0.5166, allocations: 49.86 kB / 0.5252 GB, free: 76.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004905/0.5215, allocations: 2.539 MB / 0.5277 GB, free: 74.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004352/0.5259, allocations: 1.49 MB / 0.5292 GB, free: 73.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002331/0.5282, allocations: 1.002 MB / 0.5301 GB, free: 72.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007063/0.5353, allocations: 7.194 MB / 0.5372 GB, free: 64.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002771/0.5381, allocations: 319.6 kB / 0.5375 GB, free: 64.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002607/0.5384, allocations: 287.5 kB / 0.5377 GB, free: 64.09 MB / 378.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001364/0.5397, allocations: 1.42 MB / 0.5391 GB, free: 62.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/0.54, allocations: 236.8 kB / 0.5394 GB, free: 62.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005424/0.5454, allocations: 2.847 MB / 0.5421 GB, free: 59.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004879/0.5503, allocations: 2.513 MB / 0.5446 GB, free: 57.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.5503, allocations: 5.75 kB / 0.5446 GB, free: 57.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.5504, allocations: 7.5 kB / 0.5446 GB, free: 57.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009836/0.5602, allocations: 6.876 MB / 0.5513 GB, free: 50.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/0.5602, allocations: 4 kB / 0.5513 GB, free: 50.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000695/0.5609, allocations: 171.7 kB / 0.5515 GB, free: 49.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004233/0.5652, allocations: 1.438 MB / 0.5529 GB, free: 48.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.791e-05/0.5653, allocations: 31.97 kB / 0.5529 GB, free: 48.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007527/0.5728, allocations: 7.334 MB / 0.5601 GB, free: 40.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006075/0.5734, allocations: 1.443 MB / 0.5615 GB, free: 39.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007046/0.5805, allocations: 4.851 MB / 0.5662 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005572/0.5811, allocations: 298 kB / 0.5665 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002235/0.5813, allocations: 23.98 kB / 0.5665 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.5824, allocations: 111.8 kB / 0.5666 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003364/0.5828, allocations: 86.34 kB / 0.5667 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.712e-05/0.5829, allocations: 31.98 kB / 0.5668 GB, free: 33.83 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001768/0.5846, allocations: 1.686 MB / 0.5684 GB, free: 32.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5846, allocations: 0 / 0.5684 GB, free: 32.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002901/0.5875, allocations: 0.7637 MB / 0.5691 GB, free: 31.38 MB / 378.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007262/0.5948, allocations: 5.492 MB / 0.5745 GB, free: 25.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005835/0.6007, allocations: 4.309 MB / 0.5787 GB, free: 21.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.6007, allocations: 0 / 0.5787 GB, free: 21.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002674/0.6034, allocations: 1.724 MB / 0.5804 GB, free: 19.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00204/0.6054, allocations: 265.7 kB / 0.5807 GB, free: 19.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0322/0.6377, allocations: 23.99 MB / 0.6041 GB, free: 8.914 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002253/0.6399, allocations: 2.301 MB / 0.6063 GB, free: 6.582 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001453/0.6414, allocations: 1.151 MB / 0.6075 GB, free: 5.43 MB / 394.7 MB Notification: Performance of SimCode: time 5.21e-07/0.6414, allocations: 0 / 0.6075 GB, free: 5.43 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.012/6.653, allocations: 84.2 MB / 0.6897 GB, free: 155.6 MB / 458.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches