Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.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.First,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001077/0.001077, allocations: 174.7 kB / 16.72 MB, free: 4.957 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.18/1.18, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007416/0.0007417, allocations: 84.16 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002712, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.186, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.001832/0.1879, allocations: 1.973 MB / 377.2 MB, free: 43.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007312/0.1886, allocations: 0.5935 MB / 377.7 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.1887, allocations: 8 kB / 377.8 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.1888, allocations: 24.09 kB / 377.8 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.189, allocations: 59.09 kB / 377.8 MB, free: 43.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001498/0.1891, allocations: 47.31 kB / 377.9 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002233/0.1894, allocations: 252.8 kB / 378.1 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.1895, allocations: 88.39 kB / 378.2 MB, free: 43.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.1897, allocations: 85.66 kB / 378.3 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.1898, allocations: 101.1 kB / 378.4 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.111e-05/0.1898, allocations: 10.81 kB / 378.4 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.67e-05/0.1899, allocations: 11.41 kB / 378.4 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.752e-05/0.1899, allocations: 42.81 kB / 378.5 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.19, allocations: 128.4 kB / 378.6 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001501/0.1902, allocations: 190.5 kB / 378.8 MB, free: 42.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1902, allocations: 0.9375 kB / 378.8 MB, free: 42.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1902, allocations: 0 / 378.8 MB, free: 42.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.1902, allocations: 0 / 378.8 MB, free: 42.71 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.0005332/0.1907, allocations: 493.1 kB / 379.3 MB, free: 42.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.1908, allocations: 14.06 kB / 379.3 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.822e-05/0.1908, allocations: 53.67 kB / 379.3 MB, free: 42.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.659e-05/0.1909, allocations: 29.47 kB / 379.4 MB, free: 42.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.1911, allocations: 242.1 kB / 379.6 MB, free: 41.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.1911, allocations: 18.03 kB / 379.6 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.837e-05/0.1912, allocations: 18.88 kB / 379.6 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003212/0.1915, allocations: 199.5 kB / 379.8 MB, free: 41.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.1915, allocations: 4.969 kB / 379.8 MB, free: 41.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.1915, allocations: 10.81 kB / 379.8 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1916, allocations: 8.062 kB / 379.8 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002545/0.1918, allocations: 147.5 kB / 380 MB, free: 41.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007403/0.1926, allocations: 0.6348 MB / 380.6 MB, free: 41.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002644/0.1928, allocations: 180.1 kB / 380.8 MB, free: 41.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.193, allocations: 109.7 kB / 380.9 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.193, allocations: 1.375 kB / 380.9 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.159e-05/0.193, allocations: 33.38 kB / 380.9 MB, free: 40.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.223e-06/0.1931, allocations: 0 / 380.9 MB, free: 40.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001599/0.1947, allocations: 1.088 MB / 382 MB, free: 40.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.292e-05/0.1947, allocations: 59.16 kB / 382.1 MB, free: 40.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.1948, allocations: 183.1 kB / 382.3 MB, free: 39.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.1948, allocations: 30.86 kB / 382.3 MB, free: 39.92 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.064e-05/0.1949, allocations: 142.3 kB / 382.4 MB, free: 39.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.289e-05/0.195, allocations: 111.5 kB / 382.5 MB, free: 39.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.016e-05/0.195, allocations: 5.594 kB / 382.5 MB, free: 39.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.06e-05/0.195, allocations: 335.6 kB / 382.9 MB, free: 39.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.1952, allocations: 66.72 kB / 382.9 MB, free: 39.33 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.1953, allocations: 114.6 kB / 383.1 MB, free: 39.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.1956, allocations: 198.3 kB / 383.2 MB, free: 39.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.1956, allocations: 0 / 383.2 MB, free: 39.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004234/0.196, allocations: 299 kB / 383.5 MB, free: 38.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.1961, allocations: 8.688 kB / 383.5 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/0.1961, allocations: 5.547 kB / 383.5 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001497/0.1962, allocations: 37.72 kB / 383.6 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002267/0.1965, allocations: 65.83 kB / 383.7 MB, free: 38.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009898/0.1975, allocations: 1.57 MB / 385.2 MB, free: 37.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.1976, allocations: 13.02 kB / 385.2 MB, free: 37.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.1976, allocations: 11.53 kB / 385.2 MB, free: 37.38 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.611e-05/0.1977, allocations: 140.2 kB / 385.4 MB, free: 37.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.154e-05/0.1978, allocations: 22.28 kB / 385.4 MB, free: 37.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.818e-05/0.1978, allocations: 33.7 kB / 385.4 MB, free: 37.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1978, allocations: 3.5 kB / 385.4 MB, free: 37.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1978, allocations: 5.125 kB / 385.4 MB, free: 37.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.1979, allocations: 1.406 kB / 385.4 MB, free: 37.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009134/0.1988, allocations: 0.7873 MB / 386.2 MB, free: 36.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1988, allocations: 5 kB / 386.2 MB, free: 36.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002458/0.199, allocations: 57.28 kB / 386.3 MB, free: 36.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001016/0.1991, allocations: 41.55 kB / 386.3 MB, free: 36.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.1992, allocations: 7.344 kB / 386.3 MB, free: 36.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007181/0.1999, allocations: 1.378 MB / 387.7 MB, free: 35.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.1999, allocations: 5.203 kB / 387.7 MB, free: 35.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000587/0.2005, allocations: 498.9 kB / 388.2 MB, free: 34.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.475e-05/0.2006, allocations: 95.2 kB / 388.3 MB, free: 34.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.2006, allocations: 11.28 kB / 388.3 MB, free: 34.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.2007, allocations: 12.12 kB / 388.3 MB, free: 34.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.199e-05/0.2008, allocations: 22.69 kB / 388.4 MB, free: 34.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.2008, allocations: 6.281 kB / 388.4 MB, free: 34.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.573e-05/0.2009, allocations: 133 kB / 388.5 MB, free: 34.53 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2009, allocations: 0 / 388.5 MB, free: 34.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003371/0.2012, allocations: 72.44 kB / 388.6 MB, free: 34.52 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.0006992/0.2019, allocations: 1.012 MB / 389.6 MB, free: 33.53 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004639/0.2024, allocations: 347.9 kB / 389.9 MB, free: 33.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2024, allocations: 4.125 kB / 389.9 MB, free: 33.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002497/0.2027, allocations: 242.5 kB / 390.2 MB, free: 32.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.2031, allocations: 31.98 kB / 390.2 MB, free: 32.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.205, allocations: 1.73 MB / 391.9 MB, free: 31.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001409/0.2051, allocations: 0.7561 MB / 392.7 MB, free: 30.31 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.661e-05/0.2052, allocations: 71.42 kB / 392.7 MB, free: 30.24 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2052, allocations: 3.938 kB / 392.7 MB, free: 30.24 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.918/3.123, allocations: 4.51 MB / 397.3 MB, free: 25.71 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_3.2.3_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),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.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.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.support.phi,torque.support.tau,torque.tau,torque.useSupport