Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009187/0.0009188, allocations: 197.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.174/1.174, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008094/0.0008094, allocations: 95.55 kB / 296.7 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002141/0.0002142, allocations: 4 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1991/0.1993, allocations: 51.3 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.001971/0.2013, allocations: 1.982 MB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008059/0.2022, allocations: 0.5925 MB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.2023, allocations: 4 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.2024, allocations: 27.72 kB / 410.7 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001105/0.2025, allocations: 61.39 kB / 410.8 MB, free: 25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001822/0.2027, allocations: 47.91 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002097/0.203, allocations: 242.8 kB / 411.1 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.2031, allocations: 64.89 kB / 411.1 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.2033, allocations: 91.64 kB / 411.2 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.2034, allocations: 91.56 kB / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.2034, allocations: 8 kB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.955e-05/0.2035, allocations: 16 kB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.611e-05/0.2035, allocations: 35.83 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.333e-05/0.2036, allocations: 129.2 kB / 411.5 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001618/0.2038, allocations: 184.8 kB / 411.7 MB, free: 24.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2038, allocations: 0 / 411.7 MB, free: 24.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2038, allocations: 0 / 411.7 MB, free: 24.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.2038, allocations: 0 / 411.7 MB, free: 24.1 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.0005817/0.2044, allocations: 483 kB / 412.2 MB, free: 23.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.2045, allocations: 8.031 kB / 412.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.045e-05/0.2045, allocations: 58.73 kB / 412.2 MB, free: 23.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000237/0.2048, allocations: 40.64 kB / 412.3 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000268/0.2051, allocations: 236.6 kB / 412.5 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.2051, allocations: 12.81 kB / 412.5 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.26e-05/0.2052, allocations: 24.36 kB / 412.5 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003591/0.2055, allocations: 206 kB / 412.7 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.2056, allocations: 11.89 kB / 412.7 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.2056, allocations: 12 kB / 412.8 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.525e-06/0.2056, allocations: 4 kB / 412.8 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.2058, allocations: 133.6 kB / 412.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000737/0.2066, allocations: 0.7055 MB / 413.6 MB, free: 22.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/0.2068, allocations: 154.3 kB / 413.7 MB, free: 21.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.99e-05/0.2069, allocations: 68.83 kB / 413.8 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.2069, allocations: 4 kB / 413.8 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.498e-05/0.2069, allocations: 34.56 kB / 413.9 MB, free: 21.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.723e-06/0.207, allocations: 0 / 413.9 MB, free: 21.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001174/0.2081, allocations: 0.902 MB / 414.8 MB, free: 20.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.363e-05/0.2082, allocations: 55.41 kB / 414.8 MB, free: 20.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.2083, allocations: 183.1 kB / 415 MB, free: 20.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.2083, allocations: 29.7 kB / 415 MB, free: 20.47 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.601e-05/0.2084, allocations: 144.2 kB / 415.2 MB, free: 20.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.2084, allocations: 90.66 kB / 415.2 MB, free: 20.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.156e-06/0.2084, allocations: 4 kB / 415.3 MB, free: 20.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.081e-05/0.2085, allocations: 326.8 kB / 415.6 MB, free: 19.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.516e-05/0.2086, allocations: 55.97 kB / 415.6 MB, free: 19.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.2087, allocations: 113.2 kB / 415.7 MB, free: 19.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.2089, allocations: 164.2 kB / 415.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.2089, allocations: 3.938 kB / 415.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003318/0.2092, allocations: 254 kB / 416.1 MB, free: 19.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.2093, allocations: 4 kB / 416.2 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.2093, allocations: 128 / 416.2 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001329/0.2094, allocations: 40.83 kB / 416.2 MB, free: 19.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.2096, allocations: 51.91 kB / 416.2 MB, free: 19.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007492/0.2103, allocations: 1.374 MB / 417.6 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.978e-05/0.2105, allocations: 15.95 kB / 417.6 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.2105, allocations: 12 kB / 417.6 MB, free: 17.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.594e-05/0.2106, allocations: 129.8 kB / 417.8 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.308e-05/0.2106, allocations: 19.72 kB / 417.8 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.028e-05/0.2107, allocations: 29.94 kB / 417.8 MB, free: 17.47 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.2107, allocations: 0 / 417.8 MB, free: 17.47 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2107, allocations: 7.984 kB / 417.8 MB, free: 17.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2107, allocations: 7.938 kB / 417.8 MB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006423/0.2113, allocations: 0.648 MB / 418.5 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2113, allocations: 0 / 418.5 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001856/0.2115, allocations: 43.97 kB / 418.5 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.483e-05/0.2116, allocations: 36.78 kB / 418.6 MB, free: 16.65 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.2117, allocations: 4 kB / 418.6 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000657/0.2123, allocations: 1.375 MB / 419.9 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2123, allocations: 7.875 kB / 419.9 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004458/0.2128, allocations: 414.1 kB / 420.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.036e-05/0.2128, allocations: 88.92 kB / 420.4 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.165e-05/0.2129, allocations: 16.03 kB / 420.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.213, allocations: 8 kB / 420.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.098e-05/0.213, allocations: 23.91 kB / 420.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.996e-06/0.213, allocations: 4 kB / 420.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.929e-05/0.2131, allocations: 123.2 kB / 420.6 MB, free: 14.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2131, allocations: 0 / 420.6 MB, free: 14.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002749/0.2134, allocations: 56 kB / 420.7 MB, free: 14.37 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.0005599/0.214, allocations: 0.949 MB / 421.6 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003964/0.2144, allocations: 290.7 kB / 421.9 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2144, allocations: 4 kB / 421.9 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002203/0.2146, allocations: 215 kB / 422.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.215, allocations: 46.14 kB / 422.2 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.2167, allocations: 1.571 MB / 423.7 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001363/0.2168, allocations: 0.7523 MB / 424.5 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.647e-05/0.2169, allocations: 71.41 kB / 424.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2169, allocations: 3.938 kB / 424.6 MB, free: 10.33 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.893/3.11, allocations: 4.095 MB / 428.6 MB, free: 6.227 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","../files/Modelica_trunk_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),f,fixed.flange.phi,fixed.flange.tau,fixed.phi0,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.f,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