Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",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.002396/0.002396, allocations: 106.3 kB / 16.92 MB, free: 6.332 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.002744/0.002744, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.388/2.388, allocations: 222.9 MB / 241.5 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 51.19 kB / 300.7 MB, free: 5.719 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1608, allocations: 49.44 MB / 350.2 MB, free: 4.266 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.006654/0.1675, allocations: 2.345 MB / 352.5 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.1694, allocations: 0.5726 MB / 353.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003295/0.1697, allocations: 4 kB / 353.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002722/0.17, allocations: 39.58 kB / 353.1 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004286/0.1705, allocations: 83.33 kB / 353.2 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003891/0.1709, allocations: 55.88 kB / 353.3 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000584/0.1715, allocations: 270.7 kB / 353.5 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000371/0.1719, allocations: 98.73 kB / 353.6 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003465/0.1723, allocations: 107.6 kB / 353.7 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003239/0.1726, allocations: 119.5 kB / 353.8 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.427e-05/0.1727, allocations: 20 kB / 353.9 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.861e-05/0.1728, allocations: 20 kB / 353.9 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.346e-05/0.1729, allocations: 51.77 kB / 353.9 MB, free: 468 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000229/0.1731, allocations: 123.3 kB / 354 MB, free: 344 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004614/0.1736, allocations: 259.3 kB / 354.3 MB, free: 84 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.1736, allocations: 0 / 354.3 MB, free: 84 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1737, allocations: 0 / 354.3 MB, free: 84 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.1737, allocations: 0 / 354.3 MB, free: 84 kB / 286.1 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.001296/0.175, allocations: 0.5224 MB / 354.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.404e-05/0.1751, allocations: 15.89 kB / 354.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/0.1752, allocations: 62.72 kB / 354.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.731e-05/0.1753, allocations: 24.66 kB / 354.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004477/0.1757, allocations: 233.8 kB / 355.2 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.652e-05/0.1758, allocations: 20.81 kB / 355.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.814e-05/0.1759, allocations: 24.28 kB / 355.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005914/0.1765, allocations: 203.4 kB / 355.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.1765, allocations: 4 kB / 355.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.022e-05/0.1766, allocations: 4 kB / 355.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.1766, allocations: 4 kB / 355.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004623/0.1771, allocations: 137.7 kB / 355.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001567/0.1787, allocations: 0.6385 MB / 356.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004915/0.1792, allocations: 178.4 kB / 356.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002802/0.1795, allocations: 112.2 kB / 356.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.468e-05/0.1795, allocations: 4 kB / 356.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.1796, allocations: 34.56 kB / 356.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.865e-06/0.1796, allocations: 0 / 356.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003126/0.1827, allocations: 1.069 MB / 357.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/0.1828, allocations: 59.34 kB / 357.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003766/0.1832, allocations: 180 kB / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/0.1832, allocations: 33.7 kB / 357.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.1834, allocations: 140.7 kB / 358 MB, free: 12.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.1835, allocations: 118.3 kB / 358.1 MB, free: 12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.1837, allocations: 53.7 kB / 358.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002093/0.1839, allocations: 330.8 kB / 358.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.1841, allocations: 75.91 kB / 358.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/0.1844, allocations: 107.2 kB / 358.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004845/0.1849, allocations: 185.4 kB / 358.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.185, allocations: 4 kB / 358.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008676/0.1858, allocations: 302 kB / 359.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.1859, allocations: 8 kB / 359.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.1859, allocations: 0 / 359.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002756/0.1862, allocations: 52.89 kB / 359.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004123/0.1866, allocations: 55.91 kB / 359.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002353/0.189, allocations: 1.736 MB / 361 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.1892, allocations: 12.02 kB / 361 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.979e-05/0.1893, allocations: 8 kB / 361 MB, free: 8.918 MB / 302.1 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 (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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002167/0.1895, allocations: 141.8 kB / 361.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.418e-05/0.1896, allocations: 23.75 kB / 361.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.886e-05/0.1897, allocations: 30.64 kB / 361.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1897, allocations: 4 kB / 361.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.1897, allocations: 192 / 361.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.1898, allocations: 0 / 361.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001868/0.1916, allocations: 0.7902 MB / 362 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.1917, allocations: 96 / 362 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004288/0.1921, allocations: 63.91 kB / 362 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002026/0.1923, allocations: 36.83 kB / 362.1 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.66e-05/0.1924, allocations: 8 kB / 362.1 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/0.1943, allocations: 1.488 MB / 363.6 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.1943, allocations: 0 / 363.6 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.1954, allocations: 494.4 kB / 364.1 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.1955, allocations: 92.95 kB / 364.1 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.855e-05/0.1956, allocations: 8 kB / 364.2 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002427/0.1959, allocations: 15.94 kB / 364.2 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.482e-05/0.196, allocations: 27.91 kB / 364.2 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/0.196, allocations: 8 kB / 364.2 MB, free: 5.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001852/0.1962, allocations: 135.2 kB / 364.3 MB, free: 5.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1962, allocations: 0 / 364.3 MB, free: 5.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007339/0.197, allocations: 64 kB / 364.4 MB, free: 5.234 MB / 302.1 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 (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.001637/0.1986, allocations: 1.017 MB / 365.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001107/0.1997, allocations: 351.6 kB / 365.8 MB, free: 3.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.1998, allocations: 0 / 365.8 MB, free: 3.824 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005326/0.2003, allocations: 242.5 kB / 366 MB, free: 3.574 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008555/0.2012, allocations: 54.5 kB / 366.1 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005494/0.2067, allocations: 2.748 MB / 368.8 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2831/0.4899, allocations: 0.7491 MB / 369.5 MB, free: 24.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002734/0.4902, allocations: 23.44 kB / 369.6 MB, free: 24.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002503/0.4905, allocations: 73.2 kB / 369.6 MB, free: 24.85 MB / 302.1 MB Notification: Performance of SimCode: time 1.483e-06/0.4905, allocations: 1 kB / 369.6 MB, free: 24.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05207/0.5426, allocations: 5.116 MB / 374.8 MB, free: 24.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/15.47, allocations: 3.031 kB / 374.8 MB, free: 24.36 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches