Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 102.9 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 191.9 kB / 18.51 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.837/2.837, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002244/0.002245, allocations: 48.14 kB / 280.7 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1601, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.007402/0.1676, allocations: 2.341 MB / 329.7 MB, free: 2.012 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.1701, allocations: 0.6241 MB / 330.3 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000315/0.1705, allocations: 7.938 kB / 330.3 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002784/0.1709, allocations: 31.66 kB / 330.4 MB, free: 1.34 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002574/0.1711, allocations: 75.33 kB / 330.5 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003334/0.1715, allocations: 47.94 kB / 330.5 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004766/0.172, allocations: 254.8 kB / 330.7 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003492/0.1723, allocations: 92.31 kB / 330.8 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.1726, allocations: 107.6 kB / 330.9 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002555/0.1729, allocations: 99.56 kB / 331 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.378e-05/0.1729, allocations: 20 kB / 331.1 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.536e-05/0.173, allocations: 20 kB / 331.1 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.95e-05/0.1731, allocations: 47.77 kB / 331.1 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002228/0.1733, allocations: 115.4 kB / 331.2 MB, free: 488 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004482/0.1738, allocations: 243.4 kB / 331.5 MB, free: 244 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.1738, allocations: 0 / 331.5 MB, free: 244 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1738, allocations: 7.938 kB / 331.5 MB, free: 236 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.1739, allocations: 4 kB / 331.5 MB, free: 232 kB / 270.1 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.001156/0.175, allocations: 0.5029 MB / 332 MB, free: 15.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.215e-05/0.1751, allocations: 8.031 kB / 332 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001158/0.1752, allocations: 66.66 kB / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.199e-05/0.1753, allocations: 24.66 kB / 332.1 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004654/0.1758, allocations: 232.6 kB / 332.3 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.699e-05/0.1758, allocations: 20.81 kB / 332.3 MB, free: 15.28 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-05/0.1759, allocations: 24.38 kB / 332.4 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005784/0.1765, allocations: 206 kB / 332.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.1766, allocations: 7.906 kB / 332.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.601e-05/0.1766, allocations: 11.98 kB / 332.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.1766, allocations: 7.984 kB / 332.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003969/0.177, allocations: 129.6 kB / 332.7 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.1787, allocations: 0.6977 MB / 333.4 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004466/0.1792, allocations: 150.5 kB / 333.6 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001951/0.1794, allocations: 76.77 kB / 333.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.1794, allocations: 0 / 333.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.1795, allocations: 34.56 kB / 333.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 2.354e-06/0.1795, allocations: 0 / 333.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.002364/0.1819, allocations: 0.8854 MB / 334.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/0.182, allocations: 51.41 kB / 334.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002343/0.1822, allocations: 178.7 kB / 334.8 MB, free: 12.64 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.1823, allocations: 33.7 kB / 334.8 MB, free: 12.6 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.1824, allocations: 140.3 kB / 334.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.024e-05/0.1825, allocations: 86.66 kB / 335 MB, free: 12.37 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.1826, allocations: 45.7 kB / 335.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.1828, allocations: 330.8 kB / 335.4 MB, free: 11.99 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.183, allocations: 59.97 kB / 335.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.1832, allocations: 104.2 kB / 335.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004148/0.1836, allocations: 168.1 kB / 335.7 MB, free: 11.63 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1837, allocations: 0 / 335.7 MB, free: 11.63 MB / 286.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006875/0.1844, allocations: 254 kB / 336 MB, free: 11.38 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.1844, allocations: 4 kB / 336 MB, free: 11.37 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.1844, allocations: 3.938 kB / 336 MB, free: 11.37 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002686/0.1847, allocations: 40.81 kB / 336 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003328/0.185, allocations: 51.91 kB / 336.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00244/0.1875, allocations: 1.484 MB / 337.6 MB, free: 9.645 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.1877, allocations: 12.02 kB / 337.6 MB, free: 9.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.22e-05/0.1878, allocations: 16 kB / 337.6 MB, free: 9.617 MB / 286.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002369/0.188, allocations: 129.8 kB / 337.7 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.351e-05/0.1881, allocations: 19.81 kB / 337.7 MB, free: 9.461 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.507e-05/0.1882, allocations: 25.86 kB / 337.8 MB, free: 9.438 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.1882, allocations: 12 kB / 337.8 MB, free: 9.426 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.1882, allocations: 0 / 337.8 MB, free: 9.426 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.1883, allocations: 0 / 337.8 MB, free: 9.426 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.1898, allocations: 0.648 MB / 338.4 MB, free: 8.703 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.1898, allocations: 4 kB / 338.4 MB, free: 8.699 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003147/0.1902, allocations: 43.91 kB / 338.5 MB, free: 8.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001907/0.1904, allocations: 32.98 kB / 338.5 MB, free: 8.621 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-05/0.1904, allocations: 15.97 kB / 338.5 MB, free: 8.605 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001998/0.1924, allocations: 1.481 MB / 340 MB, free: 6.984 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1925, allocations: 0 / 340 MB, free: 6.984 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009657/0.1934, allocations: 402 kB / 340.4 MB, free: 6.566 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.1936, allocations: 88.92 kB / 340.5 MB, free: 6.461 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.195e-05/0.1936, allocations: 12.06 kB / 340.5 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.1938, allocations: 8 kB / 340.5 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.194, allocations: 19.95 kB / 340.5 MB, free: 6.422 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.194, allocations: 8 kB / 340.5 MB, free: 6.414 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001913/0.1942, allocations: 132.8 kB / 340.6 MB, free: 6.285 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1942, allocations: 0 / 340.6 MB, free: 6.285 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006992/0.1949, allocations: 56 kB / 340.7 MB, free: 6.23 MB / 286.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001949/0.1969, allocations: 0.9492 MB / 341.6 MB, free: 5.242 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.1981, allocations: 302.5 kB / 341.9 MB, free: 4.934 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.1981, allocations: 0 / 341.9 MB, free: 4.934 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004943/0.1986, allocations: 214.9 kB / 342.2 MB, free: 4.711 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007935/0.1994, allocations: 48.22 kB / 342.2 MB, free: 4.664 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006199/0.2056, allocations: 2.535 MB / 344.7 MB, free: 2.012 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006198/0.2063, allocations: 0.7481 MB / 345.5 MB, free: 1.238 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.2065, allocations: 21.94 kB / 345.5 MB, free: 1.219 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.2066, allocations: 59.42 kB / 345.6 MB, free: 1.16 MB / 286.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2066, allocations: 0 / 345.6 MB, free: 1.16 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1054/0.3121, allocations: 4.619 MB / 350.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.09/15.4, allocations: 16.23 kB / 350.2 MB, free: 12.46 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches