Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008424/0.0008424, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.167/1.167, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007098/0.0007098, allocations: 98.33 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002791/0.0002791, allocations: 12 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.1855, allocations: 47.58 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.00182/0.1874, allocations: 1.969 MB / 377.2 MB, free: 43.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000675/0.1881, allocations: 0.5973 MB / 377.7 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.662e-05/0.1882, allocations: 4.438 kB / 377.8 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.713e-05/0.1883, allocations: 22.91 kB / 377.8 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.537e-05/0.1884, allocations: 67.38 kB / 377.8 MB, free: 43.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001454/0.1885, allocations: 38.7 kB / 377.9 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002047/0.1887, allocations: 240.3 kB / 378.1 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.1889, allocations: 78.09 kB / 378.2 MB, free: 43.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001113/0.189, allocations: 79.56 kB / 378.3 MB, free: 43.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.1891, allocations: 96.45 kB / 378.4 MB, free: 43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.865e-05/0.1892, allocations: 9.688 kB / 378.4 MB, free: 43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.235e-05/0.1892, allocations: 10.94 kB / 378.4 MB, free: 43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.628e-05/0.1892, allocations: 33.69 kB / 378.4 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.1893, allocations: 123.8 kB / 378.5 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.1895, allocations: 177.3 kB / 378.7 MB, free: 42.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1895, allocations: 4 kB / 378.7 MB, free: 42.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1895, allocations: 0 / 378.7 MB, free: 42.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.1895, allocations: 0 / 378.7 MB, free: 42.75 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000515/0.19, allocations: 486.5 kB / 379.2 MB, free: 42.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1901, allocations: 13.61 kB / 379.2 MB, free: 42.29 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.919e-05/0.1901, allocations: 52.17 kB / 379.3 MB, free: 42.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.926e-05/0.1902, allocations: 26 kB / 379.3 MB, free: 42.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.1904, allocations: 238.3 kB / 379.5 MB, free: 41.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.1904, allocations: 12.25 kB / 379.5 MB, free: 41.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.1904, allocations: 21.94 kB / 379.5 MB, free: 41.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003185/0.1907, allocations: 216 kB / 379.8 MB, free: 41.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.1908, allocations: 9.109 kB / 379.8 MB, free: 41.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.1908, allocations: 13.38 kB / 379.8 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.1908, allocations: 5.25 kB / 379.8 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002296/0.191, allocations: 125.1 kB / 379.9 MB, free: 41.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000784/0.1918, allocations: 0.7139 MB / 380.6 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002239/0.1921, allocations: 153.7 kB / 380.8 MB, free: 41.03 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.1922, allocations: 70.17 kB / 380.8 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.1922, allocations: 5.094 kB / 380.8 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.1922, allocations: 36.09 kB / 380.9 MB, free: 40.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.232e-06/0.1922, allocations: 4 kB / 380.9 MB, free: 40.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001293/0.1935, allocations: 0.8927 MB / 381.8 MB, free: 40.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.018e-05/0.1936, allocations: 54.16 kB / 381.8 MB, free: 40.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/0.1937, allocations: 179.9 kB / 382 MB, free: 40.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.1937, allocations: 31.05 kB / 382 MB, free: 40 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.718e-05/0.1938, allocations: 141.9 kB / 382.2 MB, free: 39.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.193e-05/0.1938, allocations: 93.17 kB / 382.3 MB, free: 39.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.1938, allocations: 1.594 kB / 382.3 MB, free: 39.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.402e-05/0.1939, allocations: 338.5 kB / 382.6 MB, free: 39.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.194, allocations: 56.22 kB / 382.6 MB, free: 39.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.1941, allocations: 95.62 kB / 382.7 MB, free: 39.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.1944, allocations: 174 kB / 382.9 MB, free: 39.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-06/0.1944, allocations: 0 / 382.9 MB, free: 39.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003759/0.1947, allocations: 253.3 kB / 383.2 MB, free: 39.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.1948, allocations: 5.312 kB / 383.2 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1948, allocations: 1.344 kB / 383.2 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001421/0.1949, allocations: 37.83 kB / 383.2 MB, free: 39.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.1951, allocations: 52.5 kB / 383.3 MB, free: 39.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007961/0.1959, allocations: 1.375 MB / 384.6 MB, free: 37.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.1961, allocations: 17.56 kB / 384.6 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.1961, allocations: 6.844 kB / 384.7 MB, free: 37.66 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.365e-05/0.1962, allocations: 139.3 kB / 384.8 MB, free: 37.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.588e-05/0.1962, allocations: 20.83 kB / 384.8 MB, free: 37.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.945e-05/0.1963, allocations: 21.19 kB / 384.8 MB, free: 37.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1963, allocations: 2.156 kB / 384.8 MB, free: 37.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.1963, allocations: 5.172 kB / 384.8 MB, free: 37.49 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.1963, allocations: 5.312 kB / 384.8 MB, free: 37.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006851/0.197, allocations: 0.6612 MB / 385.5 MB, free: 36.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.197, allocations: 0 / 385.5 MB, free: 36.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001992/0.1972, allocations: 48.12 kB / 385.6 MB, free: 36.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001181/0.1973, allocations: 32.75 kB / 385.6 MB, free: 36.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.1973, allocations: 10.59 kB / 385.6 MB, free: 36.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006978/0.198, allocations: 1.374 MB / 387 MB, free: 35.49 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1981, allocations: 4.906 kB / 387 MB, free: 35.49 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004783/0.1985, allocations: 409.6 kB / 387.4 MB, free: 35.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.289e-05/0.1986, allocations: 93.33 kB / 387.5 MB, free: 35.1 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.1986, allocations: 15.38 kB / 387.5 MB, free: 35.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.1987, allocations: 7.672 kB / 387.5 MB, free: 35.08 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.414e-05/0.1988, allocations: 12.64 kB / 387.5 MB, free: 35.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.1988, allocations: 12.67 kB / 387.5 MB, free: 35.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.158e-05/0.1989, allocations: 127.3 kB / 387.6 MB, free: 34.97 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1989, allocations: 0 / 387.6 MB, free: 34.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00029/0.1992, allocations: 58.12 kB / 387.7 MB, free: 34.96 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006266/0.1998, allocations: 0.9479 MB / 388.6 MB, free: 34.13 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004449/0.2003, allocations: 299 kB / 388.9 MB, free: 33.94 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2003, allocations: 3.938 kB / 388.9 MB, free: 33.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.2006, allocations: 206.9 kB / 389.1 MB, free: 33.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003978/0.201, allocations: 39.52 kB / 389.2 MB, free: 33.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.2027, allocations: 1.569 MB / 390.7 MB, free: 32.26 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001272/0.2029, allocations: 0.748 MB / 391.5 MB, free: 31.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.638e-05/0.203, allocations: 67.41 kB / 391.6 MB, free: 31.42 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.203, allocations: 0 / 391.6 MB, free: 31.42 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.952/3.155, allocations: 4.108 MB / 395.7 MB, free: 27.3 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,damper.phi_rel,damper.w_rel,inertia3.phi,inertia3.w Variables in the result:Jload,Jmotor,amplitude,damper.a_rel,damper.d,damper.flange_a.phi,damper.flange_a.tau,damper.flange_b.phi,damper.flange_b.tau,damper.lossPower,damper.phi_nominal,damper.phi_rel,damper.stateSelect,damper.tau,damper.useHeatPort,damper.w_rel,damping,der(damper.phi_rel),der(damper.w_rel),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),fixed.flange.phi,fixed.flange.tau,fixed.phi0,freqHz,idealGear.flange_a.phi,idealGear.flange_a.tau,idealGear.flange_b.phi,idealGear.flange_b.tau,idealGear.phi_a,idealGear.phi_b,idealGear.phi_support,idealGear.ratio,idealGear.useSupport,inertia1.J,inertia1.a,inertia1.flange_a.phi,inertia1.flange_a.tau,inertia1.flange_b.phi,inertia1.flange_b.tau,inertia1.phi,inertia1.stateSelect,inertia1.w,inertia2.J,inertia2.a,inertia2.flange_a.phi,inertia2.flange_a.tau,inertia2.flange_b.phi,inertia2.flange_b.tau,inertia2.phi,inertia2.stateSelect,inertia2.w,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,ratio,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,spring.c,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.phi_rel,spring.phi_rel0,spring.tau,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.tau,torque.useSupport