Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.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.First,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009396/0.0009397, allocations: 191.6 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 226.5 MB / 244.7 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007199/0.0007199, allocations: 104.1 kB / 296.7 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001999/0.0001999, allocations: 11.98 kB / 356.8 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.1786, allocations: 51.29 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.001726/0.1804, allocations: 1.982 MB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006546/0.1811, allocations: 0.5871 MB / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.973e-05/0.1812, allocations: 7.938 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.1813, allocations: 28.53 kB / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.1814, allocations: 60.34 kB / 410.8 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001644/0.1816, allocations: 49.58 kB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000186/0.1818, allocations: 250.7 kB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.1819, allocations: 92.39 kB / 411.2 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.1821, allocations: 102.6 kB / 411.3 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.1822, allocations: 95.55 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.179e-05/0.1822, allocations: 12 kB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.306e-05/0.1823, allocations: 16 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.382e-05/0.1823, allocations: 39.83 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.601e-05/0.1824, allocations: 129.2 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.1825, allocations: 196.7 kB / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1825, allocations: 0 / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1826, allocations: 0.5 kB / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.1826, allocations: 1.469 kB / 411.7 MB, free: 24.02 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0004963/0.1831, allocations: 499 kB / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.1831, allocations: 8.031 kB / 412.2 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.334e-05/0.1832, allocations: 54.73 kB / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.1833, allocations: 36.64 kB / 412.3 MB, free: 23.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.1835, allocations: 248.5 kB / 412.6 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.1835, allocations: 16.81 kB / 412.6 MB, free: 23.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.1836, allocations: 28.28 kB / 412.6 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002913/0.1838, allocations: 195.4 kB / 412.8 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.1839, allocations: 0 / 412.8 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.1839, allocations: 11.98 kB / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.1839, allocations: 8 kB / 412.8 MB, free: 22.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000229/0.1841, allocations: 137.7 kB / 413 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007094/0.1849, allocations: 0.6346 MB / 413.6 MB, free: 22.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000231/0.1851, allocations: 184.1 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.1852, allocations: 99.64 kB / 413.9 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.1853, allocations: 4 kB / 413.9 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.631e-05/0.1853, allocations: 30.56 kB / 413.9 MB, free: 21.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.1853, allocations: 0 / 413.9 MB, free: 21.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001491/0.1868, allocations: 1.094 MB / 415 MB, free: 20.49 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.074e-05/0.1868, allocations: 63.28 kB / 415.1 MB, free: 20.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.1869, allocations: 180.5 kB / 415.2 MB, free: 20.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.187, allocations: 33.7 kB / 415.3 MB, free: 20.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.007e-05/0.187, allocations: 136.7 kB / 415.4 MB, free: 20.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.983e-05/0.1871, allocations: 110.3 kB / 415.5 MB, free: 19.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.07e-05/0.1871, allocations: 12 kB / 415.5 MB, free: 19.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.103e-05/0.1872, allocations: 334.8 kB / 415.9 MB, free: 19.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.1873, allocations: 75.72 kB / 415.9 MB, free: 19.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.1874, allocations: 107.4 kB / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.1877, allocations: 188.2 kB / 416.2 MB, free: 19.22 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.1877, allocations: 0 / 416.2 MB, free: 19.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004082/0.1881, allocations: 307.2 kB / 416.5 MB, free: 18.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.1881, allocations: 11.94 kB / 416.5 MB, free: 18.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.1881, allocations: 0 / 416.5 MB, free: 18.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001537/0.1883, allocations: 40.91 kB / 416.6 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.1885, allocations: 59.91 kB / 416.6 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009313/0.1895, allocations: 1.569 MB / 418.2 MB, free: 17.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.1896, allocations: 8.031 kB / 418.2 MB, free: 17.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.1896, allocations: 12 kB / 418.2 MB, free: 17.07 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.266e-05/0.1897, allocations: 141.6 kB / 418.4 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.685e-05/0.1897, allocations: 23.78 kB / 418.4 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.837e-05/0.1898, allocations: 38.58 kB / 418.4 MB, free: 16.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.1898, allocations: 4 kB / 418.4 MB, free: 16.87 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1898, allocations: 4 kB / 418.4 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1898, allocations: 192 / 418.4 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008149/0.1906, allocations: 0.7742 MB / 419.2 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1907, allocations: 3.938 kB / 419.2 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002301/0.1909, allocations: 63.91 kB / 419.3 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.594e-05/0.191, allocations: 36.92 kB / 419.3 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/0.191, allocations: 8 kB / 419.3 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000665/0.1917, allocations: 1.378 MB / 420.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1917, allocations: 0 / 420.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005065/0.1922, allocations: 495.3 kB / 421.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.247e-05/0.1923, allocations: 96.86 kB / 421.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.1923, allocations: 8 kB / 421.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.1924, allocations: 15.88 kB / 421.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.095e-05/0.1925, allocations: 27.91 kB / 421.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.1925, allocations: 8 kB / 421.3 MB, free: 13.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.641e-05/0.1926, allocations: 135.2 kB / 421.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1926, allocations: 0 / 421.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003104/0.1929, allocations: 68 kB / 421.5 MB, free: 13.5 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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.0006584/0.1936, allocations: 1.016 MB / 422.5 MB, free: 12.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004689/0.194, allocations: 343.7 kB / 422.9 MB, free: 12.1 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.194, allocations: 4 kB / 422.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.1943, allocations: 242.7 kB / 423.1 MB, free: 11.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004142/0.1947, allocations: 48.28 kB / 423.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001866/0.1966, allocations: 1.706 MB / 424.9 MB, free: 10.03 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001416/0.1968, allocations: 0.7679 MB / 425.6 MB, free: 9.234 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.572e-05/0.1969, allocations: 71.42 kB / 425.7 MB, free: 9.168 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1969, allocations: 0 / 425.7 MB, free: 9.168 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.954/3.151, allocations: 4.504 MB / 430.2 MB, free: 4.652 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.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(der(idealGear.phi_a)),der(der(idealGear.phi_b)),der(idealGear.phi_a),der(idealGear.phi_b),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.support.phi,idealGear.support.tau,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.support.phi,torque.support.tau,torque.tau,torque.useSupport